diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 5cbc950b34dfd3c6fad61982fd64179ff324d0f2..5ab2d1917ca147c310f3eefcaffc9092744c2a75 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -4114,7 +4114,7 @@ static __always_inline int ____dev_forward_skb(struct net_device *dev, return NET_RX_DROP; } - skb_scrub_packet(skb, true); + skb_scrub_packet(skb, !net_eq(dev_net(dev), dev_net(skb->dev))); skb->priority = 0; return 0; }