]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vxlan: Add missing VNI filter counter update in arp_reduce().
authorGuillaume Nault <gnault@redhat.com>
Fri, 26 Apr 2024 15:27:19 +0000 (17:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:14:31 +0000 (12:14 +0200)
commit63cafcde0a4bb3f5cbd4f67a8c96c645a126769e
tree2a6daa1d4c3682f05167ae194e1a6c971ffa1dd8
parent2c5445e1742cbae86e9594e60c94b9aba9a16093
vxlan: Add missing VNI filter counter update in arp_reduce().

[ Upstream commit b22ea4ef4c3438817fcb604255b55b0058ed8c64 ]

VXLAN stores per-VNI statistics using vxlan_vnifilter_count().
These statistics were not updated when arp_reduce() failed its
pskb_may_pull() call.

Use vxlan_vnifilter_count() to update the VNI counter when that
happens.

Fixes: 4095e0e1328a ("drivers: vxlan: vnifilter: per vni stats")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/vxlan/vxlan_core.c