Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df505eb8 authored by Sathya Perla's avatar Sathya Perla Committed by David S. Miller
Browse files

be2net: create RSS rings even in multi-channel configs



Currently RSS rings are not created in a multi-channel config.
RSS rings can be created on one (out of four) interfaces per port in a
multi-channel config. Doing this insulates the driver from a FW bug wherin
multi-channel config is wrongly reported even when not enabled. This also
helps performance in a multi-channel config, as one interface per port gets
RSS rings.

Signed-off-by: default avatarSathya Perla <sathya.perla@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bf0813bd
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1786,8 +1786,7 @@ static void be_rx_queues_destroy(struct be_adapter *adapter)
static u32 be_num_rxqs_want(struct be_adapter *adapter)
static u32 be_num_rxqs_want(struct be_adapter *adapter)
{
{
	if ((adapter->function_caps & BE_FUNCTION_CAPS_RSS) &&
	if ((adapter->function_caps & BE_FUNCTION_CAPS_RSS) &&
	     !sriov_enabled(adapter) && be_physfn(adapter) &&
	     !sriov_enabled(adapter) && be_physfn(adapter)) {
	     !be_is_mc(adapter)) {
		return 1 + MAX_RSS_QS; /* one default non-RSS queue */
		return 1 + MAX_RSS_QS; /* one default non-RSS queue */
	} else {
	} else {
		dev_warn(&adapter->pdev->dev,
		dev_warn(&adapter->pdev->dev,