summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
diff options
context:
space:
mode:
authorMichael Chan2017-10-14 03:09:32 +0200
committerDavid S. Miller2017-10-15 03:51:51 +0200
commit021570793d8cd86cb62ac038c535f4450586b454 (patch)
treea85748de0c53df6eccf12116d94b181b018d0c8a /drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
parentbnxt_en: Fix VF PCIe link speed and width logic. (diff)
downloadkernel-qcow2-linux-021570793d8cd86cb62ac038c535f4450586b454.tar.gz
kernel-qcow2-linux-021570793d8cd86cb62ac038c535f4450586b454.tar.xz
kernel-qcow2-linux-021570793d8cd86cb62ac038c535f4450586b454.zip
bnxt_en: Fix VF resource checking.
In bnxt_sriov_enable(), we calculate to see if we have enough hardware resources to enable the requested number of VFs. The logic to check for minimum completion rings and statistics contexts is missing. Add the required checks so that VF configuration won't fail. Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c')
0 files changed, 0 insertions, 0 deletions