net/netvsc: disable multi-queue on older servers
NDIS multi-queue support is only in WS2012 or later. Check the NDIS version to limit to single queue on older versions. Similar code exists in Linux driver. Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
This commit is contained in:
parent
825ab257b5
commit
afbc22bf51
@ -732,6 +732,7 @@ eth_hn_dev_init(struct rte_eth_dev *eth_dev)
|
||||
hv->chim_res = &vmbus->resource[HV_SEND_BUF_MAP];
|
||||
hv->port_id = eth_dev->data->port_id;
|
||||
hv->latency = HN_CHAN_LATENCY_NS;
|
||||
hv->max_queues = 1;
|
||||
|
||||
err = hn_parse_args(eth_dev);
|
||||
if (err)
|
||||
@ -770,6 +771,10 @@ eth_hn_dev_init(struct rte_eth_dev *eth_dev)
|
||||
if (err)
|
||||
goto failed;
|
||||
|
||||
/* Multi queue requires later versions of windows server */
|
||||
if (hv->nvs_ver < NVS_VERSION_5)
|
||||
return 0;
|
||||
|
||||
max_chan = rte_vmbus_max_channels(vmbus);
|
||||
PMD_INIT_LOG(DEBUG, "VMBus max channels %d", max_chan);
|
||||
if (max_chan <= 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user