]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix rx_l4_csum_errors counter on 57500 devices.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 15 Nov 2018 08:25:38 +0000 (03:25 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Nov 2018 17:37:15 +0000 (09:37 -0800)
commitc81a3916bcb7f7449e22cc10251ae02b79611a8d
tree3a93eae3fedd25b81e511082be16c16dbd7650a7
parent291d38bff3fc79f9d0c9be9c30f35bbe8e3a67fa
bnxt_en: Fix rx_l4_csum_errors counter on 57500 devices.

The software counter structure is defined in both the CP ring's structure
and the NQ ring's structure on the new devices.  The legacy code adds the
counter to the CP ring's structure and the counter won't get displayed
since the ethtool code is looking at the NQ ring's structure.

Since all other counters are contained in the NQ ring's structure, it
makes more sense to count rx_l4_csum_errors in the NQ.

Fixes: 9a496abcd701 ("bnxt_en: Allocate completion ring structures for 57500 series 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.c