]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Refactor ethtool ring statistics logic.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 29 Jul 2019 10:10:28 +0000 (06:10 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2019 21:19:09 +0000 (14:19 -0700)
commitab51ab6248ea5b9f688994df8a9de7652bab85cc
tree53d5b79bdf88fe3d9816d56c96b3b1207a23782d
parenta9eff866b047ddd1ba983169b16f72aafeaf42c3
bnxt_en: Refactor ethtool ring statistics logic.

The current code assumes that the per ring statistics counters are
fixed.  In newer chips that support a newer version of TPA, the
TPA counters are also changed.  Refactor the code by defining these
counter names in arrays so that it is easy to add a new array for
a new set of counters supported by the newer chips.

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