From: Roopa Prabhu Date: Sat, 11 Feb 2017 05:38:36 +0000 (-0800) Subject: vxlan: remove vni zero check and drop for COLLECT_METADATA X-Git-Tag: v4.14-rc1~1463^2~140 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98eb253cbde7e860fad83fa759058269ca69916d;p=platform%2Fkernel%2Flinux-rpi3.git 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: 3ad7a4b141eb ("vxlan: support fdb and learning in COLLECT_METADATA mode" Reported-by: Joe Stringer Signed-off-by: Roopa Prabhu Signed-off-by: David S. Miller --- diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 2374a75..4e27c5b 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -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;