bnxt_en: Reserve resources for RFS.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 17 Jan 2018 08:21:10 +0000 (03:21 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jan 2018 19:48:26 +0000 (14:48 -0500)
commit6a1eef5b9079742ecfad647892669bd5fe6b0e3f
treee28b64a9c1b07b4582b2d19f66e15fe4f3c2670c
parent674f50a5b026151f4109992cb594d89f5334adde
bnxt_en: Reserve resources for RFS.

In bnxt_rfs_capable(), add call to reserve vnic resources to support
NTUPLE.  Return true if we can successfully reserve enough vnics.
Otherwise, reserve the minimum 1 VNIC for normal operations not
supporting NTUPLE and return false.

Also, suppress warning message about not enough resources for NTUPLE when
only 1 RX ring is in use.  NTUPLE filters by definition require multiple
RX rings.

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