diff mbox series

[SRU,N/J,2/2] UBUNTU: SAUCE: fan: fix racy device stat update

Message ID 20240906211114.285725-3-aleksandr.mikhalitsyn@canonical.com
State New
Headers show
Series UBUNTU: SAUCE: fan: fixes | expand

Commit Message

Aleksandr Mikhalitsyn Sept. 6, 2024, 9:11 p.m. UTC
See also upstream commit 6dee402daba4eb ("vxlan: Fix racy device stats updates.").

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
---
 drivers/net/vxlan/vxlan_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c
index d19c1900e52b..9c9ad01e6027 100644
--- a/drivers/net/vxlan/vxlan_core.c
+++ b/drivers/net/vxlan/vxlan_core.c
@@ -2916,7 +2916,7 @@  static netdev_tx_t vxlan_xmit(struct sk_buff *skb, struct net_device *dev)
 		netdev_dbg(vxlan->dev, "vxlan_xmit p %x d %pM\n",
 			   eth->h_proto, eth->h_dest);
 		if (vxlan_fan_build_rdst(vxlan, skb, &fan_rdst)) {
-			dev->stats.tx_dropped++;
+			dev_core_stats_tx_dropped_inc(dev);
 			kfree_skb(skb);
 			return NETDEV_TX_OK;
 		}