summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorShmulik Ladkani <shmulik.ladkani@gmail.com>2013-03-28 03:13:26 +0400
committerDavid S. Miller <davem@davemloft.net>2013-03-29 23:25:28 +0400
commita561cf7edf9863198bfccecfc5cfe26d951ebd20 (patch)
tree80707ffeeeade08a287b1b2f506f85b9ed449815 /net/core
parent4c51e53689569398d656e631c17308d9b8e84650 (diff)
downloadlinux-a561cf7edf9863198bfccecfc5cfe26d951ebd20.tar.xz
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')
-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);