wireless: Treat IPv6 diffserv the same as IPv4 for 802.11e
Wireless will select a different hardware queue based on the top 3 bits of the diffserv field, for ipv4. Extend that queue selection mechanism to ipv6, and make the calls orthogonal. Signed-off-by: Dave Täht <dave.taht@bufferbloat.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
288e0713f4
commit
b156579b14
1 changed files with 5 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <net/cfg80211.h>
|
#include <net/cfg80211.h>
|
||||||
#include <net/ip.h>
|
#include <net/ip.h>
|
||||||
|
#include <net/dsfield.h>
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
|
|
||||||
struct ieee80211_rate *
|
struct ieee80211_rate *
|
||||||
|
@ -650,7 +651,10 @@ unsigned int cfg80211_classify8021d(struct sk_buff *skb)
|
||||||
|
|
||||||
switch (skb->protocol) {
|
switch (skb->protocol) {
|
||||||
case htons(ETH_P_IP):
|
case htons(ETH_P_IP):
|
||||||
dscp = ip_hdr(skb)->tos & 0xfc;
|
dscp = ipv4_get_dsfield(ip_hdr(skb)) & 0xfc;
|
||||||
|
break;
|
||||||
|
case htons(ETH_P_IPV6):
|
||||||
|
dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & 0xfc;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue