summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-07-05 10:40:09 +0200
committerPatrick McHardy <kaber@trash.net>2010-07-05 10:40:09 +0200
commitb13b7125e4d10ce39818eec1bcb2d9777d29475f (patch)
tree926c636e985bc64ed8b5480dc91bab52916a4010 /net/ipv4
parent98b0e84aaaf2be6c40998d011c9db96ea6498e20 (diff)
downloadop-kernel-dev-b13b7125e4d10ce39818eec1bcb2d9777d29475f.zip
op-kernel-dev-b13b7125e4d10ce39818eec1bcb2d9777d29475f.tar.gz
netfilter: ipt_REJECT: avoid touching dst ref
We can avoid a pair of atomic ops in ipt_REJECT send_reset() Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/ipt_REJECT.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ipt_REJECT.c b/net/ipv4/netfilter/ipt_REJECT.c
index 3d0e064..b254daf 100644
--- a/net/ipv4/netfilter/ipt_REJECT.c
+++ b/net/ipv4/netfilter/ipt_REJECT.c
@@ -110,7 +110,7 @@ static void send_reset(struct sk_buff *oldskb, int hook)
addr_type = RTN_LOCAL;
/* ip_route_me_harder expects skb->dst to be set */
- skb_dst_set(nskb, dst_clone(skb_dst(oldskb)));
+ skb_dst_set_noref(nskb, skb_dst(oldskb));
if (ip_route_me_harder(nskb, addr_type))
goto free_nskb;
OpenPOWER on IntegriCloud