]> 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)
commita1b801d1aef8995f2bc5db98cb96ddca9c4268eb
treec7bb46cee8d075719518b4a6e3b0ce7755643306
parent62288967187d5964c2433cc222a63ddf5071d4d5
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: d9f401bc5dfe ("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