diff options
author | Alejandro Lucero <alejandro.lucero-palau@amd.com> | 2023-02-15 12:08:25 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-02-16 14:03:12 +0300 |
commit | 25414b2a64ae7ea8742933bd7b1d056e069b15a7 (patch) | |
tree | 99f1d9537482c12d95655a8d2cd655da2b72e4e3 /drivers/net/ethernet/sfc/efx_devlink.h | |
parent | 5227adff37af35fdc3c6f029737708c2d0921618 (diff) | |
download | linux-25414b2a64ae7ea8742933bd7b1d056e069b15a7.tar.xz |
sfc: add devlink port support for ef100
Using the data when enumerating mports, create devlink ports just before
netdevs are registered and remove those devlink ports after netdev has
been unregistered.
Signed-off-by: Alejandro Lucero <alejandro.lucero-palau@amd.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/efx_devlink.h')
-rw-r--r-- | drivers/net/ethernet/sfc/efx_devlink.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/efx_devlink.h b/drivers/net/ethernet/sfc/efx_devlink.h index a5269361c3e0..e5fd5e1dcc27 100644 --- a/drivers/net/ethernet/sfc/efx_devlink.h +++ b/drivers/net/ethernet/sfc/efx_devlink.h @@ -36,4 +36,12 @@ void efx_probe_devlink_unlock(struct efx_nic *efx); void efx_fini_devlink_lock(struct efx_nic *efx); void efx_fini_devlink_and_unlock(struct efx_nic *efx); +#ifdef CONFIG_SFC_SRIOV +struct efx_rep; + +void ef100_pf_set_devlink_port(struct efx_nic *efx); +void ef100_rep_set_devlink_port(struct efx_rep *efv); +void ef100_pf_unset_devlink_port(struct efx_nic *efx); +void ef100_rep_unset_devlink_port(struct efx_rep *efv); +#endif #endif /* _EFX_DEVLINK_H */ |