diff options
author | Simon Wunderlich <simon@open-mesh.com> | 2013-07-29 11:56:44 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2013-08-28 05:31:50 -0400 |
commit | c54f38c9aa22ff65ca9f4c1bdbf2a11d017205f3 (patch) | |
tree | e12190c69088c2fee771a49e94c5ab6619ec3817 /net/batman-adv/bat_iv_ogm.c | |
parent | 5b2941b18dc5f60a5c14a5c15693f9c58b0dd922 (diff) |
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>
Diffstat (limited to 'net/batman-adv/bat_iv_ogm.c')
-rw-r--r-- | net/batman-adv/bat_iv_ogm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c index 62da5278014a..9886a2f804fc 100644 --- a/net/batman-adv/bat_iv_ogm.c +++ b/net/batman-adv/bat_iv_ogm.c | |||
@@ -478,6 +478,7 @@ static void batadv_iv_ogm_aggregate_new(const unsigned char *packet_buff, | |||
478 | kfree(forw_packet_aggr); | 478 | kfree(forw_packet_aggr); |
479 | goto out; | 479 | goto out; |
480 | } | 480 | } |
481 | forw_packet_aggr->skb->priority = TC_PRIO_CONTROL; | ||
481 | skb_reserve(forw_packet_aggr->skb, ETH_HLEN); | 482 | skb_reserve(forw_packet_aggr->skb, ETH_HLEN); |
482 | 483 | ||
483 | skb_buff = skb_put(forw_packet_aggr->skb, packet_len); | 484 | skb_buff = skb_put(forw_packet_aggr->skb, packet_len); |