projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa3930e
)
sfc: Preserve rx_frm_trunc counters when resizing DMA rings
author
Ben Hutchings
<
[email protected]
>
Wed, 12 Feb 2014 18:59:28 +0000
(18:59 +0000)
committer
David S. Miller
<
[email protected]
>
Wed, 12 Feb 2014 22:53:34 +0000
(17:53 -0500)
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 <
[email protected]
>
Signed-off-by: Shradha Shah <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/sfc/efx.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/sfc/efx.c
b/drivers/net/ethernet/sfc/efx.c
index 83d4643470213b7f2380b2fcaadb8404f6d08dc4..84a1e11ddd79196aff21796ebb80c0545cf099a1 100644
(file)
--- 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: