diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-09-16 03:04:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-18 02:18:35 +0200 |
commit | 9865249fd19d1416f70aa73ac7f214cbee4f6b51 (patch) | |
tree | 297bcb2e1e5664ba8ad7c0264ca2c8d36cb80f4e /net/ipv6/ip6_input.c | |
parent | net: Remove dev_queue_xmit_sk (diff) | |
download | linux-9865249fd19d1416f70aa73ac7f214cbee4f6b51.tar.xz linux-9865249fd19d1416f70aa73ac7f214cbee4f6b51.zip |
ipv6: Don't recompute net in ip6_rcv
Avoid silly redundant code
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_input.c')
-rw-r--r-- | net/ipv6/ip6_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_input.c b/net/ipv6/ip6_input.c index adba03ac7ce9..c628dba477d4 100644 --- a/net/ipv6/ip6_input.c +++ b/net/ipv6/ip6_input.c @@ -109,7 +109,7 @@ int ipv6_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt if (hdr->version != 6) goto err; - IP6_ADD_STATS_BH(dev_net(dev), idev, + IP6_ADD_STATS_BH(net, idev, IPSTATS_MIB_NOECTPKTS + (ipv6_get_dsfield(hdr) & INET_ECN_MASK), max_t(unsigned short, 1, skb_shinfo(skb)->gso_segs)); |