]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: fix check for migration of static entry
authorstephen hemminger <stephen@networkplumber.org>
Tue, 18 Jun 2013 21:27:01 +0000 (14:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2013 07:50:58 +0000 (00:50 -0700)
commit5f0770de05a5d28dd13eb07b67b89786c2615ae7
treee1e8b73daadc0efa33f4993192faa555344d4c75
parentf4d3544c2f09004a786bfc0a31579d98e1542882
vxlan: fix check for migration of static entry

The check introduced by:
commit dcc5867f81f69dac5d714063e1cf95e008899820
Author: stephen hemminger <stephen@networkplumber.org>
Date:   Mon Jun 17 12:09:58 2013 -0700

    vxlan: only migrate dynamic FDB entries

was not correct because it is checking flag about type of FDB
entry, rather than the state (dynamic versus static). The confusion
arises because vxlan is reusing values from bridge, and bridge is
reusing values from neighbour table, and easy to get lost in translation.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c