diff options
author | Roopa Prabhu <roopa@cumulusnetworks.com> | 2017-02-11 06:38:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-12 03:25:50 +0100 |
commit | 98eb253cbde7e860fad83fa759058269ca69916d (patch) | |
tree | 8fba7743bd6a36e2e816910d9dd06a52b0cd5e2c /drivers/net/vxlan.c | |
parent | net: rename dst_neigh_output back to neigh_output (diff) | |
download | linux-98eb253cbde7e860fad83fa759058269ca69916d.tar.xz linux-98eb253cbde7e860fad83fa759058269ca69916d.zip |
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 <joe@ovn.org>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r-- | drivers/net/vxlan.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 2374a75dcb55..4e27c5b09600 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; |