]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Dec 2016 19:37:23 +0000 (14:37 -0500)
commitd685f820478c17d40359b88fe90bce6c8b0864f0
treeb4f36bffd2bf30a4a88c33e896a5e031224e11ad
parent77141482ae1a27f809be4c5148dbc5e910988a76
bnxt_en: Implement new scheme to reserve tx rings.

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>
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