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

Commit c3ac17cd authored by Li RongQing's avatar Li RongQing Committed by David S. Miller
Browse files

ipv6: fix the use of pcpu_tstats in sit



when read/write the 64bit data, the correct lock should be hold.

Signed-off-by: default avatarLi RongQing <roy.qing.li@gmail.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7e030963
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -702,8 +702,10 @@ static int ipip6_rcv(struct sk_buff *skb)
		}

		tstats = this_cpu_ptr(tunnel->dev->tstats);
		u64_stats_update_begin(&tstats->syncp);
		tstats->rx_packets++;
		tstats->rx_bytes += skb->len;
		u64_stats_update_end(&tstats->syncp);

		netif_rx(skb);