Skip to content

Commit 70e5824

Browse files
Dr. David Alan Gilbertkuba-moo
authored andcommitted
sfc: Remove unused efx_mae_mport_vf
efx_mae_mport_vf() has been unused since commit 5227adf ("sfc: add mport lookup based on driver's mport data") Remove it. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Acked-by: Martin Habets <habetsm.xilinx@gmail.com> Link: https://patch.msgid.link/20241102151625.39535-3-linux@treblig.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent cc4914d commit 70e5824

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

drivers/net/ethernet/sfc/mae.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,6 @@ void efx_mae_mport_uplink(struct efx_nic *efx __always_unused, u32 *out)
7676
*out = EFX_DWORD_VAL(mport);
7777
}
7878

79-
void efx_mae_mport_vf(struct efx_nic *efx __always_unused, u32 vf_id, u32 *out)
80-
{
81-
efx_dword_t mport;
82-
83-
EFX_POPULATE_DWORD_3(mport,
84-
MAE_MPORT_SELECTOR_TYPE, MAE_MPORT_SELECTOR_TYPE_FUNC,
85-
MAE_MPORT_SELECTOR_FUNC_PF_ID, MAE_MPORT_SELECTOR_FUNC_PF_ID_CALLER,
86-
MAE_MPORT_SELECTOR_FUNC_VF_ID, vf_id);
87-
*out = EFX_DWORD_VAL(mport);
88-
}
89-
9079
/* Constructs an mport selector from an mport ID, because they're not the same */
9180
void efx_mae_mport_mport(struct efx_nic *efx __always_unused, u32 mport_id, u32 *out)
9281
{

drivers/net/ethernet/sfc/mae.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ int efx_mae_free_mport(struct efx_nic *efx, u32 id);
2323

2424
void efx_mae_mport_wire(struct efx_nic *efx, u32 *out);
2525
void efx_mae_mport_uplink(struct efx_nic *efx, u32 *out);
26-
void efx_mae_mport_vf(struct efx_nic *efx, u32 vf_id, u32 *out);
2726
void efx_mae_mport_mport(struct efx_nic *efx, u32 mport_id, u32 *out);
2827

2928
int efx_mae_lookup_mport(struct efx_nic *efx, u32 selector, u32 *id);

0 commit comments

Comments
 (0)