]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
vxlan: remove vni zero check and drop for COLLECT_METADATA
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Sat, 11 Feb 2017 05:38:36 +0000 (21:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Feb 2017 02:25:50 +0000 (21:25 -0500)
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 <joe@ovn.org>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c

index 2374a75dcb55e89ccd33a82332b01a58b960afe8..4e27c5b096007e595f8f32d99eb3ef33e11641ba 100644 (file)
@@ -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;