From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by dpdk.org (Postfix) with ESMTP id B28FC6833 for ; Wed, 5 Dec 2018 23:12:21 +0100 (CET) Received: by mail-pf1-f194.google.com with SMTP id y126so10695951pfb.4 for ; Wed, 05 Dec 2018 14:12:21 -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=zA3+jxZGSmk3vlI9gUpesSAloqsc5bS4B6fNVPidkdo=; b=Ryb5SN4RgmlDRqLhDupBdkiSLNRyg2IgMWw2JRW0/xCY04Ouzktg6w7KEPSCMURlhu uamZFJjOpPTetY+g5vK9Pm501xznsjDw3jF29TeiYtJlliSp4K+jbYQKzycAIRSt33pG jTSxH3n9Y3ilXBuVEZe5SUKVryIeTP36XnCLc4KgDEUboVfe+0lC4W6Y1ESj6C6JEcFr mhOQW631weQ87NYrnSu8WVi+2hFdTPpM+zO3V4sC5ZdDTnhhTi7SPRm/eIrpy/YYyXzj +ukvBjTPSqJHkgFc5rx3l5Zdar+exr/hvqWqLa3CC4SxHY7bMdjzjZoFs84tF632pO/C v8Tw== 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=zA3+jxZGSmk3vlI9gUpesSAloqsc5bS4B6fNVPidkdo=; b=lc+cpvFWfbmXZlacpvmU6/jVJMGY4wU5yLQU9HF3fZhZrn0lN0O3byS85OCNUanKw/ Zf0+UFLcWJp5/SEH39v2/O9xncQDvMRGTgMrAA0/JSlBlI37DPaDCIxejuTxOjoP+CTA kTxbZBaEgKohCFzVWMktQL8287NuuHefsNvc9dzry3y5Wkr1YOXebiaYWAfSZdhyIB7i Le9Gmae055vNIUCCbC/mkLmGmhlkylf7JWdzFNAyvUYkZPa5KEK+74iZs/IBOUK5lDBy 6VDD8zjS1IZvmQNhrZvDw6m6wABoF3HzzqN+Hy0LY5s4+on68qRDDNEZWZCkmcZxGhje ffbg== X-Gm-Message-State: AA+aEWYhvvqnLJ3LIaFEqTew3CDi212Fx0HI9vtviMg7c4VTFtxF/Z5M Es03WUos9aysGad64vt7sPnAUQXtrC4= X-Google-Smtp-Source: AFSGD/UTBewld9Ybfn5hYnnqk7krnpqxOkw6Mo8gnpEauzzLzFT/LMOCqCag5gPipkj5mUhRfeVCog== X-Received: by 2002:a63:d513:: with SMTP id c19mr22010356pgg.287.1544047940486; Wed, 05 Dec 2018 14:12:20 -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.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 14:12:19 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: mgamal@redhat.com, Stephen Hemminger , Stephen Hemminger Date: Wed, 5 Dec 2018 14:11:57 -0800 Message-Id: <20181205221159.6336-2-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 2/4] net/netvsc: enable SR-IOV 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:22 -0000 Make DPDK enable SRIOV flag in same way as Linux and FreeBSD. Fixes: dc7680e8597c ("net/netvsc: support integrated VF") Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_nvs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/netvsc/hn_nvs.c b/drivers/net/netvsc/hn_nvs.c index 9690c5f8a3e7..d58770e0455e 100644 --- a/drivers/net/netvsc/hn_nvs.c +++ b/drivers/net/netvsc/hn_nvs.c @@ -326,9 +326,9 @@ hn_nvs_conf_ndis(struct hn_data *hv, unsigned int mtu) conf.mtu = mtu + ETHER_HDR_LEN; conf.caps = NVS_NDIS_CONF_VLAN; - /* TODO enable SRIOV */ - //if (hv->nvs_ver >= NVS_VERSION_5) - // conf.caps |= NVS_NDIS_CONF_SRIOV; + /* enable SRIOV */ + if (hv->nvs_ver >= NVS_VERSION_5) + conf.caps |= NVS_NDIS_CONF_SRIOV; /* NOTE: No response. */ error = hn_nvs_req_send(hv, &conf, sizeof(conf)); -- 2.19.2