OSDN Git Service

devlink: Simplify devlink port API calls
authorLeon Romanovsky <leonro@nvidia.com>
Sun, 8 Aug 2021 11:41:21 +0000 (14:41 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Aug 2021 11:54:12 +0000 (12:54 +0100)
commit82564f6c706a37e5f7dec962375581cc9f8fca5d
tree5ea3055cca5a6588045e1b46321dd2df2a811e8a
parent39f32101543be35c60dd984b44c620d565083d33
devlink: Simplify devlink port API calls

Devlink port already has pointer to the devlink instance and all API
calls that forward these devlink ports to the drivers perform same
"devlink_port->devlink" assignment before actual call.

This patch removes useless parameter and allows us in the future
to create specific devlink_port_ops to manage user space access with
reliable ops assignment.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c
drivers/net/ethernet/mellanox/mlx5/core/sf/sf.h
include/net/devlink.h
net/core/devlink.c