bnxt_en: Properly report no pause support on some cards
authorMichael Chan <michael.chan@broadcom.com>
Sat, 5 Mar 2022 08:54:38 +0000 (03:54 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Mar 2022 11:16:56 +0000 (11:16 +0000)
commit9a3bc77ec65efa3d58e4da0d0e64cefdd9c1692e
tree54d5c84495dc5fb29ae29a84c27a5bf5fd8dbc4f
parent0f5a4841f2ec504fba753c86f824a23ed8d0df1f
bnxt_en: Properly report no pause support on some cards

Some cards are configured to never support link pause or PFC.  Discover
these cards and properly report no pause support to ethtool.  Disable
PFC settings from DCBNL if PFC is unsupported.

Reviewed-by: Pavan Chebbi <pavan.chebbi@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
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c