Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9865249f authored by Eric W. Biederman's avatar Eric W. Biederman Committed by David S. Miller
Browse files

ipv6: Don't recompute net in ip6_rcv



Avoid silly redundant code

Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2b4aa3ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));