]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix wrong flag value passed to HWRM_PORT_QSTATS_EXT fw call.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 21 Sep 2020 01:08:59 +0000 (21:08 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Sep 2020 02:04:45 +0000 (19:04 -0700)
commit1876e88b4e914d872635ef6b73d2626de3857ea0
treec7bb46cee8d075719518b4a6e3b0ce7755643306
parent415525a8c269788193041953ac245aa3a986e313
bnxt_en: Fix wrong flag value passed to HWRM_PORT_QSTATS_EXT fw call.

The wrong flag value caused the firmware call to return actual port
counters instead of the counter masks.  This messed up the counter
overflow logic and caused erratic extended port counters to be
displayed under ethtool -S.

Fixes: 577c27e5940d ("bnxt_en: Retrieve hardware masks for port counters.")
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
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