Skip to content

Commit

Permalink
vxlan: remove vni zero check and drop for COLLECT_METADATA
Browse files Browse the repository at this point in the history
This patch drops the vni zero check for COLLECT_METADATA mode.
It is not really needed, vni zero is a valid vni.

Fixes: 3ad7a4b ("vxlan: support fdb and learning in COLLECT_METADATA mode"
Reported-by: Joe Stringer <[email protected]>
Signed-off-by: Roopa Prabhu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
roopa-prabhu authored and davem330 committed Feb 12, 2017
1 parent c16ec18 commit 98eb253
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/vxlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 98eb253

Please sign in to comment.