diff options
author | Patrick McHardy <kaber@trash.net> | 2007-04-16 20:07:08 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:29:08 -0400 |
commit | fd44de7cc1d430caef91ad9aecec9ff000fe86f8 (patch) | |
tree | 7b86a2e8623400c290c886ef83c573cdf49da3e8 /net/core | |
parent | 0463d4ae25771aaf3379bb6b2392f6edf23c2828 (diff) |
[NET_SCHED]: ingress: switch back to using ingress_lock
Switch ingress queueing back to use ingress_lock. qdisc_lock_tree now locks
both the ingress and egress qdiscs on the device. All changes to data that
might be used on both ingress and egress needs to be protected by using
qdisc_lock_tree instead of manually taking dev->queue_lock. Additionally
the qdisc stats_lock needs to be initialized to ingress_lock for ingress
qdiscs.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 7f31d0f88424..c8f5ea9aea81 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1747,10 +1747,10 @@ static int ing_filter(struct sk_buff *skb) | |||
1747 | 1747 | ||
1748 | skb->tc_verd = SET_TC_AT(skb->tc_verd,AT_INGRESS); | 1748 | skb->tc_verd = SET_TC_AT(skb->tc_verd,AT_INGRESS); |
1749 | 1749 | ||
1750 | spin_lock(&dev->queue_lock); | 1750 | spin_lock(&dev->ingress_lock); |
1751 | if ((q = dev->qdisc_ingress) != NULL) | 1751 | if ((q = dev->qdisc_ingress) != NULL) |
1752 | result = q->enqueue(skb, q); | 1752 | result = q->enqueue(skb, q); |
1753 | spin_unlock(&dev->queue_lock); | 1753 | spin_unlock(&dev->ingress_lock); |
1754 | 1754 | ||
1755 | } | 1755 | } |
1756 | 1756 | ||