]> git.baikalelectronics.ru Git - kernel.git/commit
net: switchdev: Add extack to struct switchdev_notifier_info
authorPetr Machata <petrm@mellanox.com>
Wed, 12 Dec 2018 17:02:54 +0000 (17:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Dec 2018 00:34:22 +0000 (16:34 -0800)
commita40182f8b11fb839dd0cb1502f4d947e74e79239
treeecd13ac6dcb54e24d367e781fd5c7bb600804ee7
parent368a4640c44a862be384076bef0c99ecf08d8c90
net: switchdev: Add extack to struct switchdev_notifier_info

In order to pass extack to the drivers that need it, add an extack field
to struct switchdev_notifier_info, and an extack argument to the
function call_switchdev_blocking_notifiers(). Also add a helper function
switchdev_notifier_info_to_extack().

Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/switchdev.h
net/switchdev/switchdev.c