diff options
author | Petr Machata <petrm@mellanox.com> | 2018-12-18 13:15:59 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-18 21:18:25 -0800 |
commit | 6ad0b5a4e03dc5cc0c1ed6be093bdcefdc794a6f (patch) | |
tree | 54458b6017cdbb3d64d8893f90794895e9d449e1 /drivers | |
parent | a9d6d897f3999e613dfacd4efbf63057f30ad7b3 (diff) | |
download | linux-6ad0b5a4e03dc5cc0c1ed6be093bdcefdc794a6f.tar.bz2 |
vxlan: Unmark offloaded bit on replaced FDB entries
When rdst of an offloaded FDB entry is replaced, it certainly isn't
offloaded anymore. Drivers are notified about such replacements, and can
re-mark the entry as offloaded again if they so wish. However until a
driver does so explicitly, assume a replaced FDB entry is not offloaded.
Note that replaces coming via vxlan_fdb_external_learn_add() are always
immediately followed by an explicit offload marking.
Fixes: 0efe11733356 ("vxlan: Support marking RDSTs as offloaded")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/vxlan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 297cdeaef479..c9956c08edf5 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -568,6 +568,7 @@ static int vxlan_fdb_replace(struct vxlan_fdb *f, rd->remote_port = port; rd->remote_vni = vni; rd->remote_ifindex = ifindex; + rd->offloaded = false; return 1; } |