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)
commit2c0b6ee837dba6034ace78fcc58d2bc4f5d063c1
tree6054998edf5c1ef86ff1b36c3a8100d4086d685e
parentf411b54d6b60f7db97190fa378de4c147fa055c5
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