From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 15193A0555 for ; Wed, 19 Feb 2020 16:57:30 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 09B041B951; Wed, 19 Feb 2020 16:57:30 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id D61F61B951 for ; Wed, 19 Feb 2020 16:57:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582127848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KdlXys8YGV1qnktXTVqklmzoEnQyxWbbc/1ul57Wq8A=; b=Hr6o+enIrufYiEwO2SjAnSpq80HPz52ScN5/OAoU7iThn15jqKRIhmapSkhbTxMrZGVdH5 n+8uOS3ulQyya/uB8mH4rt9YhqMZ1ZJemAcRykPXsZ2cTWlh3nhOAlMtv+UJ+/sLg0jNKT Fku66eQpk9SZwIYRLef99Alw2N9IXSI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-394-xTOs7sFNMUqtHD-yBKleXA-1; Wed, 19 Feb 2020 10:57:25 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C4FF71005510; Wed, 19 Feb 2020 15:57:24 +0000 (UTC) Received: from rh.redhat.com (unknown [10.33.36.109]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6AD08811F8; Wed, 19 Feb 2020 15:57:18 +0000 (UTC) From: Kevin Traynor To: Stephen Hemminger Cc: Mohammed Gamal , dpdk stable Date: Wed, 19 Feb 2020 15:55:58 +0000 Message-Id: <20200219155607.20495-13-ktraynor@redhat.com> In-Reply-To: <20200219155607.20495-1-ktraynor@redhat.com> References: <20200219155607.20495-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: xTOs7sFNMUqtHD-yBKleXA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'net/netvsc: initialize link state' has been queued to LTS release 18.11.7 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/25/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasi= ng (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/29731e27bb433dab78= 3e8ce7fa29ac32bc2095d1 Thanks. Kevin. --- >From 29731e27bb433dab783e8ce7fa29ac32bc2095d1 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 7 Feb 2020 10:08:16 -0800 Subject: [PATCH] net/netvsc: initialize link state [ upstream commit 047ad3787a2f5d99277e0d8d756580a1d5ea2891 ] If application is using link state interrupt, the correct link state needs to be filled in when device is started. This is similar to how virtio updates link information. Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Reported-by: Mohammed Gamal Signed-off-by: Stephen Hemminger Tested-by: Mohammed Gamal --- drivers/net/netvsc/hn_ethdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.= c index 085a3f6350..04efd092ec 100644 --- a/drivers/net/netvsc/hn_ethdev.c +++ b/drivers/net/netvsc/hn_ethdev.c @@ -623,4 +623,8 @@ hn_dev_start(struct rte_eth_dev *dev) =09=09hn_rndis_set_rxfilter(hv, 0); =20 +=09/* Initialize Link state */ +=09if (error =3D=3D 0) +=09=09hn_dev_link_update(dev, 0); + =09return error; } --=20 2.21.1 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092020-02-19 15:43:50.397887227 +0000 +++ 0013-net-netvsc-initialize-link-state.patch=092020-02-19 15:43:49.73614= 1891 +0000 @@ -1 +1 @@ -From 047ad3787a2f5d99277e0d8d756580a1d5ea2891 Mon Sep 17 00:00:00 2001 +From 29731e27bb433dab783e8ce7fa29ac32bc2095d1 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 047ad3787a2f5d99277e0d8d756580a1d5ea2891 ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -21 +22 @@ -index c79f924379..564620748d 100644 +index 085a3f6350..04efd092ec 100644 @@ -24 +25 @@ -@@ -824,4 +824,8 @@ hn_dev_start(struct rte_eth_dev *dev) +@@ -623,4 +623,8 @@ hn_dev_start(struct rte_eth_dev *dev)