Re: [PATCH v2 03/13] net: ethernet: aquantia: Add ring support code

2017-01-09 Thread Stephen Hemminger
On Mon, 9 Jan 2017 14:16:01 -0800 Alexander Loktionov wrote: > ++self->stats.rx_packets; > + ++ndev->stats.rx_packets; > + ndev->stats.rx_bytes += buff->len; Why keep two sets of statistics (self->stats and ndev->stats); seems redundant. Could also use per-

[PATCH v2 03/13] net: ethernet: aquantia: Add ring support code

2017-01-09 Thread Alexander Loktionov
From: David VomLehn Add code to support the transmit and receive ring buffers. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: David M. VomLehn --- drivers/net/ethernet/aquantia/aq_ring.c | 344