Skip to content

Commit b22ea4e

Browse files
Guillaume Naultdavem330
authored andcommitted
vxlan: Add missing VNI filter counter update in arp_reduce().
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: 4095e0e ("drivers: vxlan: vnifilter: per vni stats") Signed-off-by: Guillaume Nault <gnault@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6dee402 commit b22ea4e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/net/vxlan/vxlan_core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,6 +1838,8 @@ static int arp_reduce(struct net_device *dev, struct sk_buff *skb, __be32 vni)
18381838

18391839
if (!pskb_may_pull(skb, arp_hdr_len(dev))) {
18401840
dev_core_stats_tx_dropped_inc(dev);
1841+
vxlan_vnifilter_count(vxlan, vni, NULL,
1842+
VXLAN_VNI_STATS_TX_DROPS, 0);
18411843
goto out;
18421844
}
18431845
parp = arp_hdr(skb);

0 commit comments

Comments
 (0)