batman-adv: set skb priority according to content
authorSimon Wunderlich <simon@open-mesh.com>
Mon, 29 Jul 2013 15:56:44 +0000 (17:56 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 28 Aug 2013 09:31:50 +0000 (11:31 +0200)
commitc54f38c9aa22ff65ca9f4c1bdbf2a11d017205f3
treee12190c69088c2fee771a49e94c5ab6619ec3817
parent5b2941b18dc5f60a5c14a5c15693f9c58b0dd922
batman-adv: set skb priority according to content

The skb priority field may help the wireless driver to choose the right
queue (e.g. WMM queues). This should be set in batman-adv, as this
information is only available here.

This patch adds support for IPv4/IPv6 DS fields and VLAN PCP. Note that
only VLAN PCP is used if a VLAN header is present. Also initially set
TC_PRIO_CONTROL only for self-generated packets, and keep the priority
set by higher layers.

Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/icmp_socket.c
net/batman-adv/main.c
net/batman-adv/main.h
net/batman-adv/routing.c
net/batman-adv/send.c
net/batman-adv/soft-interface.c
net/batman-adv/translation-table.c
net/batman-adv/unicast.c
net/batman-adv/vis.c