]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f114a652a82abc7c42c47c5b5fcc0b000d4b703
treee28b64a9c1b07b4582b2d19f66e15fe4f3c2670c
parented93eacf7bc9af2c1ca22c334f68b9d55d731657
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