]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net: vxlan: rename SKB_DROP_REASON_VXLAN_NO_REMOTE
authorRadu Rendec <rrendec@redhat.com>
Thu, 19 Dec 2024 16:36:05 +0000 (11:36 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2025 16:58:11 +0000 (18:58 +0200)
[ Upstream commit 46e0ccfb88f02ab2eb20a41d519d6e4c028652f2 ]

The SKB_DROP_REASON_VXLAN_NO_REMOTE skb drop reason was introduced in
the specific context of vxlan. As it turns out, there are similar cases
when a packet needs to be dropped in other parts of the network stack,
such as the bridge module.

Rename SKB_DROP_REASON_VXLAN_NO_REMOTE and give it a more generic name,
so that it can be used in other parts of the network stack. This is not
a functional change, and the numeric value of the drop reason even
remains unchanged.

Signed-off-by: Radu Rendec <rrendec@redhat.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/20241219163606.717758-2-rrendec@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 1f5d2fd1ca04 ("vxlan: Fix NPD in {arp,neigh}_reduce() when using nexthop objects")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/vxlan/vxlan_core.c
drivers/net/vxlan/vxlan_mdb.c
include/net/dropreason-core.h

index 40f01a6aaed38e616d2359fc018facc6d1203698..ce9dcd8e74a9397350282228181361661d7c3010 100644 (file)
@@ -2787,7 +2787,7 @@ static netdev_tx_t vxlan_xmit(struct sk_buff *skb, struct net_device *dev)
                        dev_core_stats_tx_dropped_inc(dev);
                        vxlan_vnifilter_count(vxlan, vni, NULL,
                                              VXLAN_VNI_STATS_TX_DROPS, 0);
-                       kfree_skb_reason(skb, SKB_DROP_REASON_VXLAN_NO_REMOTE);
+                       kfree_skb_reason(skb, SKB_DROP_REASON_NO_TX_TARGET);
                        return NETDEV_TX_OK;
                }
        }
@@ -2810,7 +2810,7 @@ static netdev_tx_t vxlan_xmit(struct sk_buff *skb, struct net_device *dev)
                if (fdst)
                        vxlan_xmit_one(skb, dev, vni, fdst, did_rsc);
                else
-                       kfree_skb_reason(skb, SKB_DROP_REASON_VXLAN_NO_REMOTE);
+                       kfree_skb_reason(skb, SKB_DROP_REASON_NO_TX_TARGET);
        }
 
        return NETDEV_TX_OK;
index e1173ae134284ef0dfe48d595fb82720828e99ae..ec86d1c024834d1231adc2030931788696d069cb 100644 (file)
@@ -1712,7 +1712,7 @@ netdev_tx_t vxlan_mdb_xmit(struct vxlan_dev *vxlan,
                vxlan_xmit_one(skb, vxlan->dev, src_vni,
                               rcu_dereference(fremote->rd), false);
        else
-               kfree_skb_reason(skb, SKB_DROP_REASON_VXLAN_NO_REMOTE);
+               kfree_skb_reason(skb, SKB_DROP_REASON_NO_TX_TARGET);
 
        return NETDEV_TX_OK;
 }
index d59bb96c5a02c63c20cf24e6174e82dd787f4b7e..02e7be19b0428f5143d63f5dc6ddc9a2d19c8be3 100644 (file)
@@ -96,7 +96,7 @@
        FN(VXLAN_VNI_NOT_FOUND)         \
        FN(MAC_INVALID_SOURCE)          \
        FN(VXLAN_ENTRY_EXISTS)          \
-       FN(VXLAN_NO_REMOTE)             \
+       FN(NO_TX_TARGET)                \
        FN(IP_TUNNEL_ECN)               \
        FN(TUNNEL_TXINFO)               \
        FN(LOCAL_MAC)                   \
@@ -441,8 +441,8 @@ enum skb_drop_reason {
         * entry or an entry pointing to a nexthop.
         */
        SKB_DROP_REASON_VXLAN_ENTRY_EXISTS,
-       /** @SKB_DROP_REASON_VXLAN_NO_REMOTE: no remote found for xmit */
-       SKB_DROP_REASON_VXLAN_NO_REMOTE,
+       /** @SKB_DROP_REASON_NO_TX_TARGET: no target found for xmit */
+       SKB_DROP_REASON_NO_TX_TARGET,
        /**
         * @SKB_DROP_REASON_IP_TUNNEL_ECN: skb is dropped according to
         * RFC 6040 4.2, see __INET_ECN_decapsulate() for detail.