OSDN Git Service

vxlan: Allow vetoing of FDB notifications
authorPetr Machata <petrm@mellanox.com>
Wed, 16 Jan 2019 23:06:38 +0000 (23:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2019 23:18:46 +0000 (15:18 -0800)
commit61f46fe8c646c1cc7810ee0963d7870b6d901a96
tree11d784d679c390b957e440bb5b3d243631942487
parentccdfd4f71d10937504cac8663cb1782063319e39
vxlan: Allow vetoing of FDB notifications

Change vxlan_fdb_switchdev_call_notifiers() to return the result from
calling switchdev notifiers. Propagate the error number up the stack.

In vxlan_fdb_update_existing() and vxlan_fdb_update_create() add
rollbacks to clean up the work that was done before the veto.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c