mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2025-01-10 06:10:47 +00:00
[PKT_SCHED]: Pass real namespace in net scheduler classifiers.
Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2d38f9a4f8
commit
09382bac66
@ -353,7 +353,7 @@ tcf_match_indev(struct sk_buff *skb, char *indev)
|
|||||||
if (indev[0]) {
|
if (indev[0]) {
|
||||||
if (!skb->iif)
|
if (!skb->iif)
|
||||||
return 0;
|
return 0;
|
||||||
dev = __dev_get_by_index(&init_net, skb->iif);
|
dev = __dev_get_by_index(dev_net(skb->dev), skb->iif);
|
||||||
if (!dev || strcmp(indev, dev->name))
|
if (!dev || strcmp(indev, dev->name))
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user