Skip to content

Commit 307f73d

Browse files
Wei Yongjundavem330
authored andcommitted
vlan: fix typo in vlan_dev_hard_start_xmit()
commit 4af429d (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>
1 parent d0733d2 commit 307f73d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/8021q/vlan_dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static netdev_tx_t vlan_dev_hard_start_xmit(struct sk_buff *skb,
165165
u64_stats_update_begin(&stats->syncp);
166166
stats->tx_packets++;
167167
stats->tx_bytes += len;
168-
u64_stats_update_begin(&stats->syncp);
168+
u64_stats_update_end(&stats->syncp);
169169
} else {
170170
this_cpu_inc(vlan_dev_info(dev)->vlan_pcpu_stats->tx_dropped);
171171
}

0 commit comments

Comments
 (0)