From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id 62BBA7CE2 for ; Wed, 5 Dec 2018 23:12:23 +0100 (CET) Received: by mail-pf1-f196.google.com with SMTP id g62so10677430pfd.12 for ; Wed, 05 Dec 2018 14:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=S0B7W+x0jli1s1zMsNuo368VA70GpQf1xlqDrFsT7ts=; b=uMC1XHMDbvdMyhFy8bCCmvAmT6SGGjZElNapAm3vLIqcLHJHGg0cwa60tLlaRbxm3L YWSc9Z1shqFf1iUwGstHZ9Lom944PiwrJqdBu+JG9h+AQrt5dgmeqOjqqnTarswAb3iH KJLEXg6zoShL/uD1KgpiMxr7EWo8WUVxVCDdkdLuuI1QA47xcPCsrUSS3Fp6ClcXaC7w j68uyd3I+wJ82nI+JJ3AA3orTQNplNjHfm8IpJjUECJsuPx/cVLWQMUMff3YXnFP6oB0 GdiuKOsHAPpUoEkGt8EqazFzpjX9A0v/xSuQPmWEBwOtVBOHEaRZgDKZho2CyAEuzYcE hXGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=S0B7W+x0jli1s1zMsNuo368VA70GpQf1xlqDrFsT7ts=; b=ctYwjUAt1OqZ1cgG8hAYH/LWzAtbADdFsRGbbopnCIh0map08Ile7jibf3Y7Wmyaoa jNWKgbpbrc5whkVsRM/jOA4lXlw0vZUmlgoDeRzCEA2S80ItpxEUTFbDLL7IoOH40p/c CAKpaMTXFIjWBvjInQADtveJzylLRcKvT9IMF5EZZFyxiypH1w3iZBuDTUp9bXvdT1gh TIhGAH7iCZGZAZbbBXJkrMt/HJYRWeW91uESJdJi/fSxmIGpJNvrbiO7Ls+LO8ooLDJ6 l59m4tqH+O2tjddWRnN1I/iDV8AVgd2e9JrA5kVRoXG0JoUAOSokK+Hz5E8deoEoE1KO SMww== X-Gm-Message-State: AA+aEWaIDg4X0y4763/02xFEzWdIo1rDp37hRTdRPTgpq6q8PLZMvAD+ etkp0yNfP12GiquY/ht5TDHgmQYZVo8= X-Google-Smtp-Source: AFSGD/UwNfdyDx99d7f4Gct5wIZyh5XbZsFuHQ7pevF2kasnvxcREyXv9ZGjqk8or6zEYxfx+iBiiw== X-Received: by 2002:a62:61c3:: with SMTP id v186mr14828392pfb.55.1544047942102; Wed, 05 Dec 2018 14:12:22 -0800 (PST) Received: from xeon-e3.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j14sm27704578pfn.175.2018.12.05.14.12.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 14:12:20 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: mgamal@redhat.com, Stephen Hemminger , Stephen Hemminger Date: Wed, 5 Dec 2018 14:11:58 -0800 Message-Id: <20181205221159.6336-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181205221159.6336-1-stephen@networkplumber.org> References: <1543575881.5400.33.camel@redhat.com> <20181205221159.6336-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 3/4] net/netvsc: disable multi-queue on older servers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2018 22:12:23 -0000 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") Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_ethdev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c index b330bf3d7255..1256fa399b16 100644 --- a/drivers/net/netvsc/hn_ethdev.c +++ b/drivers/net/netvsc/hn_ethdev.c @@ -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) -- 2.19.2