]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: expose CTPIO stats on NICs that support them
authorBert Kenward <bkenward@solarflare.com>
Thu, 21 Dec 2017 09:00:41 +0000 (09:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Dec 2017 20:14:27 +0000 (15:14 -0500)
commit944ce997b653e922bd02c189680e4b244e41039d
tree6054998edf5c1ef86ff1b36c3a8100d4086d685e
parent64129992329ae8082f315d8e04f04e91fbbe0622
sfc: expose CTPIO stats on NICs that support them

While the Linux driver doesn't use CTPIO ('cut-through programmed I/O'),
 other drivers on the same port might, so if we're responsible for
 reporting per-port stats we need to include the CTPIO stats.

Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/nic.h