diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-01-05 07:05:18 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-06 09:12:01 +0300 |
commit | e50ef40f9a9a35d8526d38e6b5a165178fa1857f (patch) | |
tree | 7af7151f83dd55be08c6045612c7938fe2d18585 | |
parent | f05bd8ebeb69c803efd6d8a76d96b7fcd7011094 (diff) | |
download | linux-e50ef40f9a9a35d8526d38e6b5a165178fa1857f.tar.xz |
devlink: rename devlink_netdevice_event -> devlink_port_netdevice_event
To make the upcoming change a pure(er?) code move rename
devlink_netdevice_event -> devlink_port_netdevice_event.
This makes it clear that it only touches ports and doesn't
belong cleanly in the core.
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | net/devlink/leftover.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/devlink/leftover.c b/net/devlink/leftover.c index 032d6d0a5ce6..1221c7277c0b 100644 --- a/net/devlink/leftover.c +++ b/net/devlink/leftover.c @@ -9942,8 +9942,8 @@ void devlink_set_features(struct devlink *devlink, u64 features) } EXPORT_SYMBOL_GPL(devlink_set_features); -static int devlink_netdevice_event(struct notifier_block *nb, - unsigned long event, void *ptr); +static int devlink_port_netdevice_event(struct notifier_block *nb, + unsigned long event, void *ptr); /** * devlink_alloc_ns - Allocate new devlink instance resources @@ -9978,7 +9978,7 @@ struct devlink *devlink_alloc_ns(const struct devlink_ops *ops, if (ret < 0) goto err_xa_alloc; - devlink->netdevice_nb.notifier_call = devlink_netdevice_event; + devlink->netdevice_nb.notifier_call = devlink_port_netdevice_event; ret = register_netdevice_notifier_net(net, &devlink->netdevice_nb); if (ret) goto err_register_netdevice_notifier; @@ -10480,8 +10480,8 @@ void devlink_port_type_clear(struct devlink_port *devlink_port) } EXPORT_SYMBOL_GPL(devlink_port_type_clear); -static int devlink_netdevice_event(struct notifier_block *nb, - unsigned long event, void *ptr) +static int devlink_port_netdevice_event(struct notifier_block *nb, + unsigned long event, void *ptr) { struct net_device *netdev = netdev_notifier_info_to_dev(ptr); struct devlink_port *devlink_port = netdev->devlink_port; |