vxlan: remove vni zero check and drop for COLLECT_METADATA
Subsystems (2)
PATCH 1/1 vxlan: remove vni zero check and drop for COLLECT_METADATA
From: Roopa Prabhu <[email protected]>
This patch drops the vni zero check for COLLECT_METADATA mode. It is not really needed, vni zero is a valid vni.
Fixes 3ad7a4b141eb ("vxlan: support fdb and learning in COLLECT_METADATA mode"
Reported-by Joe Stringer <[email protected]>
Signed-off-by Roopa Prabhu <[email protected]>
--- drivers/net/vxlan.c | 3 --- 1 file changed, 3 deletions(-)
drivers/net/vxlan.c +0 -3
@@ -1333,9 +1333,6 @@ static int vxlan_rcv(struct sock *sk, struct sk_buff *skb) vni =vxlan_vni (vxlan_hdr (skb)->vx_vni); -if ((vs->flags &VXLAN_F_COLLECT_METADATA ) && !vni) - goto drop; - vxlan =vxlan_vs_find_vni (vs, vni);if (!vxlan) goto drop;
Signature · 1 line
1.7.10.4
Quoted 8 lines · Roopa Prabhu
From: Roopa Prabhu <[email protected]>
This patch drops the vni zero check for
COLLECT_METADATAmode. It is not really needed, vni zero is a valid vni.Fixes 3ad7a4b141eb ("vxlan: support fdb and learning in COLLECT_METADATA mode"Reported-by Joe Stringer <[email protected]>Signed-off-by Roopa Prabhu <[email protected]>
Thanks, I tried this out and it fixes the issue.
From: Roopa Prabhu <[email protected]>
Date: Fri, 10 Feb 2017 21:38:36 -0800
Quoted 8 lines
From: Roopa Prabhu <[email protected]>
This patch drops the vni zero check for
COLLECT_METADATAmode. It is not really needed, vni zero is a valid vni.Fixes 3ad7a4b141eb ("vxlan: support fdb and learning in COLLECT_METADATA mode"Reported-by Joe Stringer <[email protected]>Signed-off-by Roopa Prabhu <[email protected]>
Applied.