diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2014-02-12 18:59:28 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-12 17:53:34 -0500 |
commit | 2fa25cf1e1cad74df4b465710e55a62386743614 (patch) | |
tree | 8f87acdd3330878b0cd3269c976791858329b68b /drivers/net/ethernet/sfc | |
parent | aa3930ee8cc7ab56f8a62d4e80e178ab520dca87 (diff) | |
download | op-kernel-dev-2fa25cf1e1cad74df4b465710e55a62386743614.zip op-kernel-dev-2fa25cf1e1cad74df4b465710e55a62386743614.tar.gz |
sfc: Preserve rx_frm_trunc counters when resizing DMA rings
We allocate efx_channel structures with kzalloc() so we don't need to
zero-initialise individual fields in efx_probe_channel(). Further,
this function will be called again during DMA ring resizing and we
should not reset any statistics then.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc')
-rw-r--r-- | drivers/net/ethernet/sfc/efx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 83d4643..84a1e11 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c @@ -503,8 +503,6 @@ static int efx_probe_channel(struct efx_channel *channel) goto fail; } - channel->n_rx_frm_trunc = 0; - return 0; fail: |