]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Keep track of the ring group resource.
authorMichael Chan <mchan@broadcom.com>
Sun, 27 Dec 2015 23:19:27 +0000 (18:19 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 7 Jul 2016 00:36:42 +0000 (17:36 -0700)
commit7db77fe0000fd91d6b824f18a002e10a234ddca7
tree4c7bbd357a0320a372fcb832085c7b6eaab460bf
parentf4b37143620ffe2a0c7021ec935c4ae24b85e829
bnxt_en: Keep track of the ring group resource.

Orabug: 23221795

Newer firmware will return the ring group resource when we call
hwrm_func_qcaps().  To be compatible with older firmware, use the
number of tx rings as the number of ring groups if the older firmware
returns 0.  When determining how many rx rings we can support, take
the ring group resource in account as well in _bnxt_get_max_rings().
Divide and assign the ring groups to VFs.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit b72d4a68c443e29cb59e15a1a9b2c2f4bf802831)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c