]> 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)
commitd3f5dd82c25b2bdeb55127d3b3d270d418ca454b
treef27c5176ee6786757fb43e522ed45d230bbfce60
parent8843283ff1b779a5361f8b67d73f639769fb2845
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