]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Implement new method to reserve rings.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 17 Jan 2018 08:21:09 +0000 (03:21 -0500)
committerJack Vogel <jack.vogel@oracle.com>
Fri, 9 Mar 2018 05:06:51 +0000 (21:06 -0800)
commit26ffe9e6213967d8503252afc85cc438f68a54fd
tree78171203e7c09b4b5277851a9e4443be5998c60a
parent3523dcaac7ab561e72dbd991efda0c6316d0db37
bnxt_en: Implement new method to reserve rings.

Orabug: 2764835527648339

The new method will call firmware to reserve the desired tx, rx, cmpl
rings, ring groups, stats context, and vnic resources.  A second query
call will check the actual resources that firmware is able to reserve.
The driver will then trim and adjust based on the actual resources
provided by firmware.  The driver will then reserve the final resources
in use.

This method is a more flexible way of using hardware resources.  The
resources are not fixed and can by adjusted by firmware.  The driver
adapts to the available resources that the firmware can reserve for
the driver.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 674f50a5b026151f4109992cb594d89f5334adde)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c