]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb7832c6c35b09ea2765e7aab5c3c3a514d1e2e26
tree5ea3055cca5a6588045e1b46321dd2df2a811e8a
parent0498473448b2c26b58fa87322744576d9fb88c83
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