be2net: set maximal number of default RSS queues
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Cc: Sathya Perla <sathya.perla@emulex.com> Cc: Subbu Seetharaman <subbu.seetharaman@emulex.com> Cc: Ajit Khaparde <ajit.khaparde@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7d51541355
commit
30e80b55dd
|
@ -2172,12 +2172,14 @@ static void be_msix_disable(struct be_adapter *adapter)
|
||||||
|
|
||||||
static uint be_num_rss_want(struct be_adapter *adapter)
|
static uint be_num_rss_want(struct be_adapter *adapter)
|
||||||
{
|
{
|
||||||
|
u32 num = 0;
|
||||||
if ((adapter->function_caps & BE_FUNCTION_CAPS_RSS) &&
|
if ((adapter->function_caps & BE_FUNCTION_CAPS_RSS) &&
|
||||||
!sriov_want(adapter) && be_physfn(adapter) &&
|
!sriov_want(adapter) && be_physfn(adapter) &&
|
||||||
!be_is_mc(adapter))
|
!be_is_mc(adapter)) {
|
||||||
return (adapter->be3_native) ? BE3_MAX_RSS_QS : BE2_MAX_RSS_QS;
|
num = (adapter->be3_native) ? BE3_MAX_RSS_QS : BE2_MAX_RSS_QS;
|
||||||
else
|
num = min_t(u32, num, (u32)netif_get_num_default_rss_queues());
|
||||||
return 0;
|
}
|
||||||
|
return num;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void be_msix_enable(struct be_adapter *adapter)
|
static void be_msix_enable(struct be_adapter *adapter)
|
||||||
|
|
Loading…
Reference in New Issue