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)
commitc0f25c802b3300b28d1e67c58c702d29555838de
treef27c5176ee6786757fb43e522ed45d230bbfce60
parent1914848e0d641f8d6173bb53b6a4a392468ac725
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