From: Ben Hutchings Date: Wed, 12 Feb 2014 18:59:28 +0000 (+0000) Subject: sfc: Preserve rx_frm_trunc counters when resizing DMA rings X-Git-Tag: v4.14-rc1~7785^2~384^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2fa25cf1e1cad74df4b465710e55a62386743614;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Shradha Shah Signed-off-by: David S. Miller --- 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: