diff options
author | Roopa Prabhu <roopa@cumulusnetworks.com> | 2017-02-10 21:38:36 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-11 21:25:50 -0500 |
commit | 98eb253cbde7e860fad83fa759058269ca69916d (patch) | |
tree | 8fba7743bd6a36e2e816910d9dd06a52b0cd5e2c /drivers | |
parent | c16ec18599c8c1722d476011786fd9e2529888f7 (diff) | |
download | linux-98eb253cbde7e860fad83fa759058269ca69916d.tar.bz2 |
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')
-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; |