diff options
author | Elad Raz <eladr@mellanox.com> | 2016-04-21 10:52:43 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-24 18:23:32 (GMT) |
commit | 7ceb2afbd6aee4643056b47156baad6841db8e78 (patch) | |
tree | 036274876d95f82a6f64d2fb35409987522951e3 /net/bridge | |
parent | f75cfbaddeef943aed479b80415c3dcc63ff4247 (diff) | |
download | linux-7ceb2afbd6aee4643056b47156baad6841db8e78.tar.xz |
switchdev: Adding complete operation to deferred switchdev ops
When using switchdev deferred operation (SWITCHDEV_F_DEFER), the operation
is executed in different context and the application doesn't have any way
to get the operation real status.
Adding a completion callback fixes that. This patch adds fields to
switchdev_attr and switchdev_obj "complete_priv" field which is used by
the "complete" callback.
Application can set a complete function which will be called once the
operation executed.
Signed-off-by: Elad Raz <eladr@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
0 files changed, 0 insertions, 0 deletions