]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f58cc7a87e6e9d485e8bc0a41bf4927c0f54bb5
tree11d784d679c390b957e440bb5b3d243631942487
parentd00fa731cb781c1f31599ddd942082b092344e39
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