sfc_ef100: helper function to set default RSS table of given size
Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b3007dfd5b
commit
b6d02dd2ff
@@ -2276,3 +2276,24 @@ int efx_mcdi_vf_rx_push_rss_config(struct efx_nic *efx, bool user,
|
|||||||
return 0;
|
return 0;
|
||||||
return efx_mcdi_filter_rx_push_shared_rss_config(efx, NULL);
|
return efx_mcdi_filter_rx_push_shared_rss_config(efx, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int efx_mcdi_push_default_indir_table(struct efx_nic *efx,
|
||||||
|
unsigned int rss_spread)
|
||||||
|
{
|
||||||
|
int rc = 0;
|
||||||
|
|
||||||
|
if (efx->rss_spread == rss_spread)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
efx->rss_spread = rss_spread;
|
||||||
|
if (!efx->filter_state)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
efx_mcdi_rx_free_indir_table(efx);
|
||||||
|
if (rss_spread > 1) {
|
||||||
|
efx_set_default_rx_indir_table(efx, &efx->rss_context);
|
||||||
|
rc = efx->type->rx_push_rss_config(efx, false,
|
||||||
|
efx->rss_context.rx_indir_table, NULL);
|
||||||
|
}
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|||||||
@@ -155,6 +155,8 @@ int efx_mcdi_vf_rx_push_rss_config(struct efx_nic *efx, bool user,
|
|||||||
__attribute__ ((unused)),
|
__attribute__ ((unused)),
|
||||||
const u8 *key
|
const u8 *key
|
||||||
__attribute__ ((unused)));
|
__attribute__ ((unused)));
|
||||||
|
int efx_mcdi_push_default_indir_table(struct efx_nic *efx,
|
||||||
|
unsigned int rss_spread);
|
||||||
int efx_mcdi_rx_pull_rss_config(struct efx_nic *efx);
|
int efx_mcdi_rx_pull_rss_config(struct efx_nic *efx);
|
||||||
int efx_mcdi_rx_pull_rss_context_config(struct efx_nic *efx,
|
int efx_mcdi_rx_pull_rss_context_config(struct efx_nic *efx,
|
||||||
struct efx_rss_context *ctx);
|
struct efx_rss_context *ctx);
|
||||||
|
|||||||
Reference in New Issue
Block a user