Patch "vxlan: Add missing VNI filter counter update in arp_reduce()." has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    vxlan: Add missing VNI filter counter update in arp_reduce().

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     vxlan-add-missing-vni-filter-counter-update-in-arp_r.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit fe8564d5f2c32689ba949aef8f8743ca0fe9a624
Author: Guillaume Nault <gnault@xxxxxxxxxx>
Date:   Fri Apr 26 17:27:19 2024 +0200

    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@xxxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c
index 3d3c11e61f9de..7e5e60318045a 100644
--- a/drivers/net/vxlan/vxlan_core.c
+++ b/drivers/net/vxlan/vxlan_core.c
@@ -1838,6 +1838,8 @@ static int arp_reduce(struct net_device *dev, struct sk_buff *skb, __be32 vni)
 
 	if (!pskb_may_pull(skb, arp_hdr_len(dev))) {
 		dev_core_stats_tx_dropped_inc(dev);
+		vxlan_vnifilter_count(vxlan, vni, NULL,
+				      VXLAN_VNI_STATS_TX_DROPS, 0);
 		goto out;
 	}
 	parp = arp_hdr(skb);




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux