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)
commit622190669403fb7a7557a8b618e57c0a3f703056
treeefabe5c966f4c3d0af139f89170fd6f6384aa38a
parentaaa5672052cb0f18a5ab0ab19e9ef71c50e018a8
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