OSDN Git Service

net/mlx5: Push out SF devlink port init and cleanup code to separate helpers
authorJiri Pirko <jiri@nvidia.com>
Thu, 25 May 2023 08:30:45 +0000 (10:30 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 23 Aug 2023 04:34:16 +0000 (21:34 -0700)
commit638002252544a20f3f62ffb2cadbfa70207bd9b8
tree0cf0dcf04129cd202c3d6c6330a06a35c562f017
parent4c0dac1ef8abc6295a91197884f5ceb5d11c2bd9
net/mlx5: Push out SF devlink port init and cleanup code to separate helpers

Similar to what was done for PFs/VFs, introduce devlink port init and
cleanup helpers for SFs and manage the vport->dl_port pointer there.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c