Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vlan: fix typo in vlan_dev_hard_start_xmit()

commit 4af429d29b341bb1735f04c2fb960178ed5d52e7 (vlan: lockless
transmit path) have a typo in vlan_dev_hard_start_xmit(), using
u64_stats_update_begin() to end the stat update, it should be
u64_stats_update_end().

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Wei Yongjun and committed by
David S. Miller
307f73df d0733d2e

+1 -1
+1 -1
net/8021q/vlan_dev.c
··· 165 165 u64_stats_update_begin(&stats->syncp); 166 166 stats->tx_packets++; 167 167 stats->tx_bytes += len; 168 - u64_stats_update_begin(&stats->syncp); 168 + u64_stats_update_end(&stats->syncp); 169 169 } else { 170 170 this_cpu_inc(vlan_dev_info(dev)->vlan_pcpu_stats->tx_dropped); 171 171 }