bnx2x: add PFC statistics
Add Priority flow control counters for ethtool -S. Signed-off-by: Barak Witkowski <barak@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f0a98ae8db
commit
0e898dd7a8
6 changed files with 63 additions and 3 deletions
|
@ -8827,6 +8827,8 @@ static void __devinit bnx2x_get_common_hwinfo(struct bnx2x *bp)
|
|||
bp->link_params.feature_config_flags |=
|
||||
(val >= REQ_BC_VER_4_SFP_TX_DISABLE_SUPPORTED) ?
|
||||
FEATURE_CONFIG_BC_SUPPORTS_SFP_TX_DISABLED : 0;
|
||||
bp->flags |= (val >= REQ_BC_VER_4_PFC_STATS_SUPPORTED) ?
|
||||
BC_SUPPORTS_PFC_STATS : 0;
|
||||
|
||||
pci_read_config_word(bp->pdev, bp->pm_cap + PCI_PM_PMC, &pmc);
|
||||
bp->flags |= (pmc & PCI_PM_CAP_PME_D3cold) ? 0 : NO_WOL_FLAG;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue