]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: Request RSS capability of Rx interface depending on number of Rx rings
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Wed, 10 Feb 2016 17:15:53 +0000 (22:45 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 08:46:59 +0000 (03:46 -0500)
commit1b904cab88ab429bb94cd30c6a72f0b934b465e3
treeefabe5c966f4c3d0af139f89170fd6f6384aa38a
parente4988f6d74d1f5bfd5001f6bd85c80c4176933b8
be2net: Request RSS capability of Rx interface depending on number of Rx rings

Currently we request RSS capability even if a single Rx ring is created.
As a result in few cases we unnecessarily consume an RSS capable interface
which is a limited resource in the chip.
This patch enables RSS on an interface only if more than one Rx ring
is created.

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_main.c