]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
bnxt_en: Check max_tx_scheduler_inputs value from firmware.
authorMichael Chan <michael.chan@broadcom.com>
Sat, 31 Mar 2018 17:54:13 +0000 (13:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 03:24:19 +0000 (23:24 -0400)
commitdb4723b3cd2d836ae44382d16e6a4418ae8929dc
treeaa615245c7d3f43745658462364bb9ec9660cee5
parent00db3cba35211cd7d458d378a5931fadfa86a17c
bnxt_en: Check max_tx_scheduler_inputs value from firmware.

When checking for the maximum pre-set TX channels for ethtool -l, we
need to check the current max_tx_scheduler_inputs parameter from firmware.
This parameter specifies the max input for the internal QoS nodes currently
available to this function.  The function's TX rings will be capped by this
parameter.  By adding this logic, we provide a more accurate pre-set max
TX channels to the user.

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_ethtool.c