sfc: move channel alloc/removal code
Reallocation and copying code is included, as well as some housekeeping code. Other files have been patched up a bit to accommodate the changes. Small code styling fixes included. Signed-off-by: Alexandru-Mihai Maftei <amaftei@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e20ba5b1d1
commit
8397548507
@@ -884,17 +884,6 @@ fail:
|
||||
return rc;
|
||||
}
|
||||
|
||||
void efx_fini_channels(struct efx_nic *efx)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < EFX_MAX_CHANNELS; i++)
|
||||
if (efx->channel[i]) {
|
||||
kfree(efx->channel[i]);
|
||||
efx->channel[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void efx_fini_struct(struct efx_nic *efx)
|
||||
{
|
||||
#ifdef CONFIG_RFS_ACCEL
|
||||
|
Reference in New Issue
Block a user