]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: Avoid creating fdb entry with NULL destination
authorSridhar Samudrala <sri@us.ibm.com>
Tue, 17 Sep 2013 19:12:40 +0000 (12:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Sep 2013 00:19:18 +0000 (20:19 -0400)
commit269237d8764e91293fcf5ab358d1aaf35a0a9561
tree836490da421f6242c89d12b05e038e417de8f0b2
parentd599a309cc329239b691c13a698984644ab57594
vxlan: Avoid creating fdb entry with NULL destination

Commit a762d3d70d3eb5bbd6f1f09e31888bd5d9b3c55a
   vxlan: add implicit fdb entry for default destination
creates an implicit fdb entry for default destination. This results
in an invalid fdb entry if default destination is not specified.
For ex:
  ip link add vxlan1 type vxlan id 100
creates the following fdb entry
  00:00:00:00:00:00 dev vxlan1 dst 0.0.0.0 self permanent

This patch fixes this issue by creating an fdb entry only if a
valid default destination is specified.

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c