]> git.karo-electronics.de Git - linux-beck.git/commit
bnxt_en: Reserve RDMA resources by default.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 7 Dec 2016 05:26:19 +0000 (00:26 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Dec 2016 15:59:26 +0000 (10:59 -0500)
commite4060d306b5196966d74e05dee48e6c3a52aaad4
treeb0d454b1c2038c75b890f5dfaea93d912d2e632a
parent7b08f661ab80e87dcdba7ab9a460fe2c9d08bf5b
bnxt_en: Reserve RDMA resources by default.

If the device supports RDMA, we'll setup network default rings so that
there are enough minimum resources for RDMA, if possible.  However, the
user can still increase network rings to the max if he wants.  The actual
RDMA resources won't be reserved until the RDMA driver registers.

v2: Fix compile warning when BNXT_CONFIG_SRIOV is not set.

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
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