net: vxlan: replace VXLAN_INVALID_HDR with VNI_NOT_FOUND
Subsystems (2)
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.
--- drivers/net/vxlan/vxlan_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/vxlan/vxlan_core.c +1 -1
@@ -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
Quoted 6 lines · Menglong Dong
Replace the drop reason "
SKB_DROP_REASON_VXLAN_INVALID_HDR" with "SKB_DROP_REASON_VXLAN_VNI_NOT_FOUND" inencap_bypass_if_local(), as the latter is more accurate.Fixes 790961d88b0e ("net: vxlan: use kfree_skb_reason() in encap_bypass_if_local()")Signed-off-by Menglong Dong <[email protected]>
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" inencap_bypass_if_local(), as the latter is more accurate.Fixes 790961d88b0e ("net: vxlan: use kfree_skb_reason() in encap_bypass_if_local()")Signed-off-by Menglong Dong <[email protected]>[...]
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