diff options
author | Alex Maftei (amaftei) <amaftei@solarflare.com> | 2020-01-08 16:12:56 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-08 13:28:03 -0800 |
commit | 83975485077dda755a8db7dde30c80fd9cd182e5 (patch) | |
tree | 71d60538ff09bf790a1d31e81ab957c5e4c10bc9 /drivers/net/ethernet/sfc/efx_common.c | |
parent | e20ba5b1d13fbe558cf1f654eaef347f17a36f7a (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/efx_common.c')
-rw-r--r-- | drivers/net/ethernet/sfc/efx_common.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/ethernet/sfc/efx_common.c b/drivers/net/ethernet/sfc/efx_common.c index d0fc51a108bf..fe74c66c8ec6 100644 --- a/drivers/net/ethernet/sfc/efx_common.c +++ b/drivers/net/ethernet/sfc/efx_common.c @@ -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 |