commit | ee79566e65945dcf557bcfb9335e46fac67fb002 | [log] [tgz] |
---|---|---|
author | Michael Chan <michael.chan@broadcom.com> | Mon Jul 29 06:10:28 2019 -0400 |
committer | David S. Miller <davem@davemloft.net> | Mon Jul 29 14:19:09 2019 -0700 |
tree | 53d5b79bdf88fe3d9816d56c96b3b1207a23782d | |
parent | 67912c366d4bb0a9d108459e7c845cc7ba83f76f [diff] |
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>