Skip to contentSkip to conversation

net: vxlan: replace VXLAN_INVALID_HDR with VNI_NOT_FOUND

PATCH Applied Menglong Dong 3 participants 3 messages Oct 15, 2024 – Oct 18, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: vxlan: replace VXLAN_INVALID_HDR with VNI_NOT_FOUND

Replace the drop reason "SKB_DROP_REASON_VXLAN_INVALID_HDR" with "SKB_DROP_REASON_VXLAN_VNI_NOT_FOUND" in encap_bypass_if_local(), as the latter is more accurate.

Fixes 790961d88b0e ("net: vxlan: use kfree_skb_reason() in encap_bypass_if_local()")
---
 drivers/net/vxlan/vxlan_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/vxlan/vxlan_core.c +1 -1
index fd21a063db4e..841b59d1c1c2 100644
@@ -2340,7 +2340,7 @@ static int encap_bypass_if_local(struct sk_buff *skb, struct net_device *dev,
 			DEV_STATS_INC(dev, tx_errors);
 			vxlan_vnifilter_count(vxlan, vni, NULL,
 					      VXLAN_VNI_STATS_TX_ERRORS, 0);
-			kfree_skb_reason(skb, SKB_DROP_REASON_VXLAN_INVALID_HDR);
+			kfree_skb_reason(skb, SKB_DROP_REASON_VXLAN_VNI_NOT_FOUND);
 
 			return -ENOENT;
 		}
Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Menglong Dong

Replace the drop reason "SKB_DROP_REASON_VXLAN_INVALID_HDR" with "SKB_DROP_REASON_VXLAN_VNI_NOT_FOUND" in encap_bypass_if_local(), as the latter is more accurate.

Fixes 790961d88b0e ("net: vxlan: use kfree_skb_reason() in encap_bypass_if_local()")
#2 lore raw
In reply to Menglong Dong
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Quoted 8 lines · On Tue, 15 Oct 2024 16:28:30 +0800 you wrote:

Replace the drop reason "SKB_DROP_REASON_VXLAN_INVALID_HDR" with "SKB_DROP_REASON_VXLAN_VNI_NOT_FOUND" in encap_bypass_if_local(), as the latter is more accurate.

Fixes 790961d88b0e ("net: vxlan: use kfree_skb_reason() in encap_bypass_if_local()")

[...]

Here is the summary with links:
- [net-next] net: vxlan: replace VXLAN_INVALID_HDR with VNI_NOT_FOUND

    https://git.kernel.org/netdev/net-next/c/eb4f99c56ad3

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html