]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Add ethtool -S priority counters.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 16 Dec 2018 23:46:26 +0000 (18:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 07:08:53 +0000 (23:08 -0800)
commit9c1b0ca9dde24b053eef1bcc635a46aeb07e2bea
treedb7b05e22959f60f0fbefa1d139a6138fbc17a7e
parent10315942f1dba6016e11e90a0e58d576994a8a1f
bnxt_en: Add ethtool -S priority counters.

Display the CoS counters as additional priority counters by looking up
the priority to CoS queue mapping.  If the TX extended port statistics
block size returned by firmware is big enough to cover the CoS counters,
then we will display the new priority counters.  We call firmware to get
the up-to-date pri2cos mapping to convert the CoS counters to
priority counters.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c