OSDN Git Service

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)
commite37fed790335631c57477e7bee952a039ccb7a50
treedb7b05e22959f60f0fbefa1d139a6138fbc17a7e
parentb16b68918674af5e7beccb567fe7ebd8b44744b8
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