bareudp: Fix device stats updates.
authorGuillaume Nault <gnault@redhat.com>
Fri, 30 Aug 2024 15:31:07 +0000 (17:31 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 4 Sep 2024 21:50:03 +0000 (14:50 -0700)
commit4963d2343af81f493519f9c3ea9f2169eaa7353a
treeaa6d1a707c2cca6aacc8b961408a6a2cc005b451
parentb6ecc662037694488bfff7c9fd21c405df8411f2
bareudp: Fix device stats updates.

Bareudp devices update their stats concurrently.
Therefore they need proper atomic increments.

Fixes: 571912c69f0e ("net: UDP tunnel encapsulation module for tunnelling different protocols like MPLS, IP, NSH etc.")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/04b7b9d0b480158eb3ab4366ec80aa2ab7e41fcb.1725031794.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bareudp.c