sfc: Preserve rx_frm_trunc counters when resizing DMA rings
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 12 Feb 2014 18:59:28 +0000 (18:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Feb 2014 22:53:34 +0000 (17:53 -0500)
commit2fa25cf1e1cad74df4b465710e55a62386743614
tree8f87acdd3330878b0cd3269c976791858329b68b
parentaa3930ee8cc7ab56f8a62d4e80e178ab520dca87
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>
drivers/net/ethernet/sfc/efx.c