Home
last modified time | relevance | path

Searched hist:84321030 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/vxlan/
H A Dvxlan_core.c84321030 Fri Apr 26 10:27:17 CDT 2024 Guillaume Nault <gnault@redhat.com> vxlan: Fix racy device stats updates.

[ Upstream commit 6dee402daba4eb8677a9438ebdcd8fe90ddd4326 ]

VXLAN devices update their stats locklessly. Therefore these counters
should either be stored in per-cpu data structures or the updates
should be done using atomic increments.

Since the net_device_core_stats infrastructure is already used in
vxlan_rcv(), use it for the other rx_dropped and tx_dropped counter
updates. Update the other counters atomically using DEV_STATS_INC().

Fixes: d342894c5d2f ("vxlan: virtual extensible lan")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>