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 11D3DA0542 for ; Fri, 7 Feb 2020 16:14:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0A3D01BF8E; Fri, 7 Feb 2020 16:14:13 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 433ED1C124 for ; Fri, 7 Feb 2020 16:14:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581088450; 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=TLxJL49dBwWsF4KNp5d10Ze9mZAvkYKdkUbUtZJKuW8=; b=fjug15tqA5Z+Kf6SSm5VyXMAHfaHsPOsHX0ChUgv5jhMeNoZImV7ADD1WQGlNGrehNP4rF cf8xQLyK7OEhKQyHbdk0r4jWQh3WJBgHuJ9IJ85nQvDxEs7Ze+e6cdsWSITxl/c5IHqQrb RSf/1/g3ld4kfW2QHMTE6rowVEl+vbk= 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-260-XjZcfJfCPZGqzK9FhO1A6g-1; Fri, 07 Feb 2020 10:13:54 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6DF131098B40; Fri, 7 Feb 2020 15:13:53 +0000 (UTC) Received: from rh.redhat.com (unknown [10.33.36.76]) by smtp.corp.redhat.com (Postfix) with ESMTP id 73A7A1001B0B; Fri, 7 Feb 2020 15:13:52 +0000 (UTC) From: Kevin Traynor To: Xiao Wang Cc: Tiwei Bie , dpdk stable Date: Fri, 7 Feb 2020 15:12:39 +0000 Message-Id: <20200207151248.29804-27-ktraynor@redhat.com> In-Reply-To: <20200207151248.29804-1-ktraynor@redhat.com> References: <20200207151248.29804-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-MC-Unique: XjZcfJfCPZGqzK9FhO1A6g-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 'vhost: fix socket initial value' 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/13/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/e87ed5bfce937cb67e= c802f94c0cb696bee90f4b Thanks. Kevin. --- >From e87ed5bfce937cb67ec802f94c0cb696bee90f4b Mon Sep 17 00:00:00 2001 From: Xiao Wang Date: Fri, 3 Jan 2020 13:36:21 -0500 Subject: [PATCH] vhost: fix socket initial value [ upstream commit bf4fd5ba3e2edfe68888e83aef81f681756fc692 ] By default, a vhost socket is created without attaching VDPA device, this patch fixes the initial value of vdpa_dev_id. Fixes: b4953225cea4 ("vhost: add APIs for datapath configuration") Signed-off-by: Xiao Wang Reviewed-by: Tiwei Bie --- lib/librte_vhost/socket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_vhost/socket.c b/lib/librte_vhost/socket.c index 5e422335c8..27bfd21fc4 100644 --- a/lib/librte_vhost/socket.c +++ b/lib/librte_vhost/socket.c @@ -856,4 +856,5 @@ rte_vhost_driver_register(const char *path, uint64_t fl= ags) =09=09goto out_free; =09} +=09vsocket->vdpa_dev_id =3D -1; =09vsocket->dequeue_zero_copy =3D flags & RTE_VHOST_USER_DEQUEUE_ZERO_COPY= ; =20 --=20 2.21.1 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092020-02-07 15:08:18.927110167 +0000 +++ 0027-vhost-fix-socket-initial-value.patch=092020-02-07 15:08:17.5450625= 38 +0000 @@ -1 +1 @@ -From bf4fd5ba3e2edfe68888e83aef81f681756fc692 Mon Sep 17 00:00:00 2001 +From e87ed5bfce937cb67ec802f94c0cb696bee90f4b Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit bf4fd5ba3e2edfe68888e83aef81f681756fc692 ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index ece9d5d1d8..8bc1e3a03c 100644 +index 5e422335c8..27bfd21fc4 100644 @@ -22 +23 @@ -@@ -878,4 +878,5 @@ rte_vhost_driver_register(const char *path, uint64_t f= lags) +@@ -856,4 +856,5 @@ rte_vhost_driver_register(const char *path, uint64_t f= lags) @@ -27 +28 @@ - =09vsocket->extbuf =3D flags & RTE_VHOST_USER_EXTBUF_SUPPORT; +=20