提交 2fa25cf1 编写于 作者: B Ben Hutchings 提交者: David S. Miller

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: NBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: NShradha Shah <sshah@solarflare.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 aa3930ee
...@@ -503,8 +503,6 @@ static int efx_probe_channel(struct efx_channel *channel) ...@@ -503,8 +503,6 @@ static int efx_probe_channel(struct efx_channel *channel)
goto fail; goto fail;
} }
channel->n_rx_frm_trunc = 0;
return 0; return 0;
fail: fail:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册