Commit 73bf0d0e authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

ifb: dont hard code inet_net use

ifb should lookup devices in the appropriate namespace.
Signed-off-by: default avatarEric Dumazet <>
Acked-by: default avatarJamal Hadi Salim <>
Cc: Benjamin LaHaise <>
Signed-off-by: default avatarDavid S. Miller <>
parent f9a8f83b
...@@ -90,7 +90,7 @@ static void ri_tasklet(unsigned long dev) ...@@ -90,7 +90,7 @@ static void ri_tasklet(unsigned long dev)
u64_stats_update_end(&dp->tsync); u64_stats_update_end(&dp->tsync);
rcu_read_lock(); rcu_read_lock();
skb->dev = dev_get_by_index_rcu(&init_net, skb->skb_iif); skb->dev = dev_get_by_index_rcu(dev_net(_dev), skb->skb_iif);
if (!skb->dev) { if (!skb->dev) {
rcu_read_unlock(); rcu_read_unlock();
dev_kfree_skb(skb); dev_kfree_skb(skb);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment