zephyr/include/net
Tomasz Gorochowik 3da4d37003 net: Implement VLAN priority to packet priority conversion
According to IEEE 802.1Q the VLAN priority (PCP) is not directly mapped
to the network packet priority. The Best Effort priority has a PCP value
of 0. The lowest priority (Background) has a PCP value of 1.

All the values are mapped according to the following table:

  +-----+-----+---------+
  | PCP | PRI | Acronym |
  +-----+-----+---------+
  |  1  |  0  |    BK   |
  |  0  |  1  |    BE   |
  |  2  |  2  |    EE   |
  |  3  |  3  |    CA   |
  |  4  |  4  |    VI   |
  |  5  |  5  |    VO   |
  |  6  |  6  |    IC   |
  |  7  |  7  |    NC   |
  +-----+-----+---------+

Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
2018-05-02 13:40:32 +03:00
..
arp.h doc: net: group all networking APIs in doxygen 2017-11-17 17:14:18 -05:00
bt.h net: bt: Add advertise management command 2017-08-04 18:18:40 +03:00
buf.h doc: misspellings in public API doxygen comments 2018-04-05 19:16:24 -04:00
coap.h doc: net: group all networking APIs in doxygen 2017-11-17 17:14:18 -05:00
coap_link_format.h net: coap: Add multi fragment support to CoAP library 2017-10-06 22:07:37 -04:00
dhcpv4.h doc: net: group all networking APIs in doxygen 2017-11-17 17:14:18 -05:00
dns_resolve.h net: dns: Allow to initialize DNS servers from struct sockaddr[] 2018-01-18 17:30:40 +02:00
ethernet.h net: stats: Add infrastructure for collecting ethernet stats 2018-04-11 16:49:48 +03:00
ethernet_mgmt.h net/ethernet: Add a management interface 2018-04-10 14:45:37 +03:00
ethernet_vlan.h net: if: vlan: Add virtual lan support 2018-04-05 08:54:19 -04:00
hostname.h doc: net: group all networking APIs in doxygen 2017-11-17 17:14:18 -05:00
http.h net: http: Fix client compilation if HTTPS is enabled 2018-04-26 12:35:05 +03:00
http_parser.h net: http: Provide destination address in http replies 2018-03-05 10:23:17 +01:00
http_parser_state.h net: lib: http: split out URL parsing as a separate CONFIG 2017-10-17 08:08:16 -04:00
http_parser_url.h net: lib: http: split out URL parsing as a separate CONFIG 2017-10-17 08:08:16 -04:00
ieee802154.h net/ieee802154: Do not set the device UP by default 2018-01-15 15:15:38 +02:00
ieee802154_mgmt.h net/ieee802154: Split the net mgmt part from the L2 specific header 2017-12-12 09:29:48 -05:00
ieee802154_radio.h ieee802154: Make AR flag check generic and not tight to L2 2018-03-16 13:57:55 -07:00
lwm2m.h net: lwm2m: add support for DTLS 2017-12-15 16:46:48 -05:00
mii.h net: doc: Add missing defgroups to network header files 2017-07-31 20:59:09 +03:00
mqtt.h doc: net: group all networking APIs in doxygen 2017-11-17 17:14:18 -05:00
mqtt_types.h doc: do not show undocumented members 2018-03-20 14:01:30 -04:00
net_app.h net: app: Add a new API to get net pkt based on dst 2018-02-09 14:45:53 +02:00
net_context.h net: context: Add PRIORITY option support 2018-03-27 10:06:54 -04:00
net_core.h net: Align the stack infos in net_stack linker section 2018-03-27 10:06:54 -04:00
net_event.h net/mgmt: Move NET_EVENT_INFO_MAX_SIZE into net core's private header 2018-04-12 09:56:07 -04:00
net_if.h net: if: Add helper to select src interface for a IPv4 dst addr 2018-04-13 08:29:44 -04:00
net_ip.h net: Implement VLAN priority to packet priority conversion 2018-05-02 13:40:32 +03:00
net_l2.h net: Remove the need for an l2 on offloaded drivers 2018-04-12 09:56:07 -04:00
net_linkaddr.h doc: net: group all networking APIs in doxygen 2017-11-17 17:14:18 -05:00
net_mgmt.h net/mgmt: Fix how event_mask is handled on layer and layer code part 2018-03-02 16:50:21 +01:00
net_offload.h net: if: Separate IP address configuration from net_if 2018-03-27 10:06:54 -04:00
net_pkt.h net: if: vlan: Add virtual lan support 2018-04-05 08:54:19 -04:00
net_stats.h net: stats: Add infrastructure for collecting ethernet stats 2018-04-11 16:49:48 +03:00
openthread.h include: net: net_l2: Add OpenThread L2 2018-01-29 22:42:03 -05:00
sntp.h net: sntp: Implement SNTP client library 2017-10-03 15:29:27 -04:00
socket.h net: sockets: Add freeaddrinfo() 2018-03-21 10:00:05 +02:00
trickle.h doc: net: group all networking APIs in doxygen 2017-11-17 17:14:18 -05:00
udp.h doc: net: group all networking APIs in doxygen 2017-11-17 17:14:18 -05:00
websocket.h net: websocket: Initial support for server websocket 2018-03-15 15:17:36 +02:00
websocket_console.h net: websocket: Add console support 2018-03-15 15:17:36 +02:00
wifi.h net/mgmt/wifi: Add dedicated net mgmt hooks for WiFi offload devices 2018-04-12 09:56:07 -04:00
wifi_mgmt.h net/mgmt/wifi: Add dedicated net mgmt hooks for WiFi offload devices 2018-04-12 09:56:07 -04:00