forked from luck/tmp_suning_uos_patched
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: Sathya Perla <sathya.perla@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bf0813bd28
commit
df505eb804
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user