]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Include frame priority in fragment header
authorAndrew Lunn <andrew@lunn.ch>
Mon, 9 May 2016 18:03:36 +0000 (20:03 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Thu, 30 Jun 2016 08:29:43 +0000 (10:29 +0200)
commit0382e780d16188fff57fe395bfeda255fffdf9ee
treef27c5176ee6786757fb43e522ed45d230bbfce60
parentf4a7c8d8c7d6cf8a9c4c45cc3b56396dcdf46874
batman-adv: Include frame priority in fragment header

Unfragmented frames which traverse a node have their skb->priority set
by looking at the IP ToS byte, or the 802.1p header. However for
fragments this is not possible, only one of the fragments will contain
the headers. Instead, place the priority into the fragment header and
on receiving a fragment, use this information to set the skb->priority
for when the fragment is forwarded.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/fragmentation.c
net/batman-adv/packet.h
net/batman-adv/routing.c