diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2013-07-26 11:05:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-28 14:13:55 -0400 |
commit | 9d4a0314642918cbda9ed4012df51e8df608fce6 (patch) | |
tree | 721b3fad6c1b19258416962ca9846bde797a4e60 /net/ipv4/igmp.c | |
parent | dcfe8048de66c3468060c8a2ec2c04ae3725d002 (diff) |
ipv4, ipv6: send igmpv3/mld packets with TC_PRIO_CONTROL
v2:
a) Also send ipv4 igmp messages with TC_PRIO_CONTROL
Cc: William Manley <william.manley@youview.com>
Cc: Lukas Tribus <luky-37@hotmail.com>
Acked-by: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/igmp.c')
-rw-r--r-- | net/ipv4/igmp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 375aca372250..ef7618630f36 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c | |||
@@ -88,6 +88,7 @@ | |||
88 | #include <linux/if_arp.h> | 88 | #include <linux/if_arp.h> |
89 | #include <linux/rtnetlink.h> | 89 | #include <linux/rtnetlink.h> |
90 | #include <linux/times.h> | 90 | #include <linux/times.h> |
91 | #include <linux/pkt_sched.h> | ||
91 | 92 | ||
92 | #include <net/net_namespace.h> | 93 | #include <net/net_namespace.h> |
93 | #include <net/arp.h> | 94 | #include <net/arp.h> |
@@ -315,6 +316,7 @@ static struct sk_buff *igmpv3_newpack(struct net_device *dev, int size) | |||
315 | if (size < 256) | 316 | if (size < 256) |
316 | return NULL; | 317 | return NULL; |
317 | } | 318 | } |
319 | skb->priority = TC_PRIO_CONTROL; | ||
318 | igmp_skb_size(skb) = size; | 320 | igmp_skb_size(skb) = size; |
319 | 321 | ||
320 | rt = ip_route_output_ports(net, &fl4, NULL, IGMPV3_ALL_MCR, 0, | 322 | rt = ip_route_output_ports(net, &fl4, NULL, IGMPV3_ALL_MCR, 0, |
@@ -670,6 +672,7 @@ static int igmp_send_report(struct in_device *in_dev, struct ip_mc_list *pmc, | |||
670 | ip_rt_put(rt); | 672 | ip_rt_put(rt); |
671 | return -1; | 673 | return -1; |
672 | } | 674 | } |
675 | skb->priority = TC_PRIO_CONTROL; | ||
673 | 676 | ||
674 | skb_dst_set(skb, &rt->dst); | 677 | skb_dst_set(skb, &rt->dst); |
675 | 678 | ||