summaryrefslogtreecommitdiff
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorShmulik Ladkani <shmulik.ladkani@gmail.com>2013-03-27 23:13:26 +0000
committerDavid S. Miller <davem@davemloft.net>2013-03-29 15:25:28 -0400
commita561cf7edf9863198bfccecfc5cfe26d951ebd20 (patch)
tree80707ffeeeade08a287b1b2f506f85b9ed449815 /net/core/dev.c
parent4c51e53689569398d656e631c17308d9b8e84650 (diff)
downloadlwn-a561cf7edf9863198bfccecfc5cfe26d951ebd20.tar.gz
lwn-a561cf7edf9863198bfccecfc5cfe26d951ebd20.zip
net: core: Remove redundant call to 'nf_reset' in 'dev_forward_skb'
'nf_reset' is called just prior calling 'netif_rx'. No need to call it twice. Reported-by: Igor Michailov <rgohita@gmail.com> Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index b13e5c766c11..6591440cc03d 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1624,7 +1624,6 @@ int dev_forward_skb(struct net_device *dev, struct sk_buff *skb)
}
skb_orphan(skb);
- nf_reset(skb);
if (unlikely(!is_skb_forwardable(dev, skb))) {
atomic_long_inc(&dev->rx_dropped);