Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98eb253c authored by Roopa Prabhu's avatar Roopa Prabhu Committed by David S. Miller
Browse files

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: 3ad7a4b1 ("vxlan: support fdb and learning in COLLECT_METADATA mode"
Reported-by: default avatarJoe Stringer <joe@ovn.org>
Signed-off-by: default avatarRoopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c16ec185
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;