]> git.baikalelectronics.ru Git - kernel.git/commit
switchdev: allow caller to explicitly request attr_set as deferred
authorJiri Pirko <jiri@mellanox.com>
Wed, 14 Oct 2015 17:40:50 +0000 (19:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Oct 2015 13:09:48 +0000 (06:09 -0700)
commit1083cfd625987de53542f78e60a2cb2705e7c63e
tree67c6871b0b123fe73507273b9a50a53f0e0e1010
parente9c866723517cc3608831ee2ef7f29a7a9d03c09
switchdev: allow caller to explicitly request attr_set as deferred

Caller should know if he can call attr_set directly (when holding RTNL)
or if he has to defer the att_set processing for later.

This also allows drivers to sleep inside attr_set and report operation
status back to switchdev core. Switchdev core then warns if status is
not ok, instead of silent errors happening in drivers.

Benefit from newly introduced switchdev deferred ops infrastructure.

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