Skip to content

Commit 98eb253

Browse files
roopa-prabhudavem330
authored andcommitted
vxlan: remove vni zero check and drop for COLLECT_METADATA
This patch drops the vni zero check for COLLECT_METADATA mode. It is not really needed, vni zero is a valid vni. Fixes: 3ad7a4b ("vxlan: support fdb and learning in COLLECT_METADATA mode" Reported-by: Joe Stringer <[email protected]> Signed-off-by: Roopa Prabhu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c16ec18 commit 98eb253

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/net/vxlan.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,9 +1333,6 @@ static int vxlan_rcv(struct sock *sk, struct sk_buff *skb)
13331333

13341334
vni = vxlan_vni(vxlan_hdr(skb)->vx_vni);
13351335

1336-
if ((vs->flags & VXLAN_F_COLLECT_METADATA) && !vni)
1337-
goto drop;
1338-
13391336
vxlan = vxlan_vs_find_vni(vs, vni);
13401337
if (!vxlan)
13411338
goto drop;

0 commit comments

Comments
 (0)