]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d863a8daa7f6a31268f8ac4164d9a8f43f92e5b
treee12190c69088c2fee771a49e94c5ab6619ec3817
parent7a1327e3e3f219fb4f09c7e3a54977458bd9dde3
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