OSDN Git Service

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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jan 2018 19:48:26 +0000 (14:48 -0500)
commit674f50a5b026151f4109992cb594d89f5334adde
treed6ca6e488142169b47435cad540c2618dd23c8b6
parent58ea801ac4c166cdcaa399ce7f9b3e9095ff2842
bnxt_en: Implement new method to reserve rings.

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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c