]> git.baikalelectronics.ru Git - kernel.git/commit
switchdev: introduce possibility to defer obj_add/del
authorJiri Pirko <jiri@mellanox.com>
Wed, 14 Oct 2015 17:40:52 +0000 (19:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Oct 2015 13:09:49 +0000 (06:09 -0700)
commit2a7e6f9c3121e486f9b86fc76d2b7bee0592549e
tree9e0b41720f38dd4a716b42545711067d24f1838b
parent1ef8df8469d2c2faf79cf9f6c7bd008ac9001d8d
switchdev: introduce possibility to defer obj_add/del

Similar to the attr usecase, the caller knows if he is holding RTNL and is
in atomic section. So let the called to decide the correct call variant.

This allows drivers to sleep inside their ops and wait for hw to get the
operation status. Then the status is propagated into switchdev core.
This avoids silent errors in drivers.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/switchdev.h
net/switchdev/switchdev.c