OSDN Git Service

devlink: remove duplicate port notification
authorJiri Pirko <jiri@nvidia.com>
Tue, 23 May 2023 12:37:59 +0000 (14:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 May 2023 09:34:26 +0000 (10:34 +0100)
commitc496daeb863093a046e0bb8db7265bf45d91775a
tree1520e52a6b4b72add47087c31ce3f5b9648e5806
parent47469d2d5913af91f21316230f066692cb6a4c9f
devlink: remove duplicate port notification

The notification about created port is send from devl_port_register()
function called from ops->port_new(). No need to send it again here,
so remove the call and the helper function.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c
drivers/net/ethernet/mellanox/mlx5/core/sf/sf.h
include/net/devlink.h
net/devlink/leftover.c