]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Fix VF resource checking.
authorMichael Chan <michael.chan@broadcom.com>
Sat, 14 Oct 2017 01:09:32 +0000 (21:09 -0400)
committerJack Vogel <jack.vogel@oracle.com>
Fri, 9 Mar 2018 04:51:17 +0000 (20:51 -0800)
commit9cd7371f135379c5f2b425af84b0f0311e0bac0e
treed73b4419986e6d685aba6490af2a54a107d72a0a
parent9052ddf760bb0a2f77ec15101882bba03a706c3c
bnxt_en: Fix VF resource checking.

Orabug: 2764835527648339

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>
(cherry picked from commit 021570793d8cd86cb62ac038c535f4450586b454)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c