]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Implement new scheme to reserve tx rings.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 29 Dec 2016 17:13:41 +0000 (12:13 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 21:35:22 +0000 (13:35 -0800)
commit8b3ddbacb3391cbd756a1a32a7c5793f6007fba6
tree78b817d457f06f333c0b6c243fce24cfe85dcd18
parent8a28f0dafc8ad5aad64027b5067fd3e69b3ee6c7
bnxt_en: Implement new scheme to reserve tx rings.

Orabug: 25645429

In order to properly support TX rate limiting in SRIOV VF functions or
NPAR functions, firmware needs better control over tx ring allocations.
The new scheme requires the driver to reserve the number of tx rings
and to query to see if the requested number of tx rings is reserved.
The driver will use the new scheme when the firmware interface spec is
1.6.1 or newer.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 391be5c2736456f032fe0265031ecfe17aee84a0)
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_ethtool.c
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c