OSDN Git Service

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)
commit479c86dc551c9720765ed19433990eae6a1f899f
treeecd13ac6dcb54e24d367e781fd5c7bb600804ee7
parent69b7320e14e6e8c7a77fa5803cecc86434a1162d
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