mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-15 12:20:15 -04:00
sfc: initialise RSS context ID to 'no RSS context' in efx_init_struct()
Previously this was only happening in ef10-specific code. 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
d700fe014e
commit
31f4cbd401
@@ -552,8 +552,6 @@ static int efx_ef10_probe(struct efx_nic *efx)
|
||||
}
|
||||
nic_data->warm_boot_count = rc;
|
||||
|
||||
efx->rss_context.context_id = EFX_MCDI_RSS_CONTEXT_INVALID;
|
||||
|
||||
/* In case we're recovering from a crash (kexec), we want to
|
||||
* cancel any outstanding request by the previous user of this
|
||||
* function. We send a special message using the least
|
||||
|
||||
@@ -1017,6 +1017,7 @@ int efx_init_struct(struct efx_nic *efx,
|
||||
efx->rx_packet_ts_offset =
|
||||
efx->type->rx_ts_offset - efx->type->rx_prefix_size;
|
||||
INIT_LIST_HEAD(&efx->rss_context.list);
|
||||
efx->rss_context.context_id = EFX_MCDI_RSS_CONTEXT_INVALID;
|
||||
mutex_init(&efx->rss_lock);
|
||||
efx->vport_id = EVB_PORT_ID_ASSIGNED;
|
||||
spin_lock_init(&efx->stats_lock);
|
||||
|
||||
Reference in New Issue
Block a user