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 1DC42A051C for ; Tue, 11 Feb 2020 12:28:05 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 15AB32B9C; Tue, 11 Feb 2020 12:28:05 +0100 (CET) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by dpdk.org (Postfix) with ESMTP id C71E42B9C for ; Tue, 11 Feb 2020 12:28:03 +0100 (CET) Received: by mail-wm1-f67.google.com with SMTP id t23so3047700wmi.1 for ; Tue, 11 Feb 2020 03:28:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+SVGYFyOtRYl7RxBODzozekJ/mdflpEaVEOSNcrG+us=; b=ZaRYrtfmNHWtPG6+b3OcLondVucEU+HyiugBWn0hR6Rs+X/AY2KPs3AF3sxcJ1YF89 lXIWRH8ZrdwoCNiSVTcjyqzAjNF4PLgjBfPgzZCENJc//0lU/RydoaLUXlomu9ORHn4H 2yex6k1MJsnqagJqZJjH0b3DnaJfObnrTaae3NY8sqyy/EwEfbVYr69iFNUWAoXj7UoG HQVmID7zKnMw5OkJ9l2pb0+kHFGliUseA/chCeywsYpCA+WMLGByLN/MZDtgvSAIIbHV dSeE8m0loINaSy/gpyskHqGHCXEINomyAxCFYb8CyOZHUtfeLZ3W5ZBL0PiaX69rNlpS bwZw== 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=+SVGYFyOtRYl7RxBODzozekJ/mdflpEaVEOSNcrG+us=; b=Fk6eFT7K9OTjdvroEKJ8TfEme5gSrxf+6oxQsJL83ug3Va3vYfC7CzaCUNpm7AmG+1 7XeK40Du14sI/nS+QZ6JMOQbuRQr/vo0ohSFELuXyM5UL/P/aCCK8+PZqYaQ+4VRpxYW p7hbBGUVbd/pACsM2M4du/pHN2t939/JRMFk7FE1HPsArXcHH6t+kUKWVbg/h/1XUU05 hLMprn5dsqLSyq8NqLx438r2kpBv8lHqbrSX5wDb5HEcLTJE0kIDrFDmDqSKun4/DyGj /NQ9dSRryjcB8aHPHZ2FYAWWRaZFESKuUQJi1ErmeBfTnOhVY9oYBkQtCMl5YIrrIwdO dm+w== X-Gm-Message-State: APjAAAVobVoXFl+6YUqnbocJI46oLbIBoFVJ3eRzRmkZliFkNKGr855X CiFITK2/ZspZ7lAdN1ystdhWM2oBHOU= X-Google-Smtp-Source: APXvYqwv9GCgjQ0vD+6EtGb6opx4n9guRGcM7z66HJwp5yTEJycKz2Wqdcxu0ithk6MvPN4SI8GvMw== X-Received: by 2002:a1c:65d6:: with SMTP id z205mr5011015wmb.38.1581420483554; Tue, 11 Feb 2020 03:28:03 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id c13sm4902842wrn.46.2020.02.11.03.28.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2020 03:28:02 -0800 (PST) From: luca.boccassi@gmail.com To: Xiao Wang Cc: Tiwei Bie , dpdk stable Date: Tue, 11 Feb 2020 11:20:11 +0000 Message-Id: <20200211112216.3929-65-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200211112216.3929-1-luca.boccassi@gmail.com> References: <20200211112216.3929-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'vhost: fix socket initial value' has been queued to stable release 19.11.1 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 stable release 19.11.1 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 rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 5bdd1200fe0ab184083f77f2976690a1437e935d 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 ebb2ff6c28..834f0b88ad 100644 --- a/lib/librte_vhost/socket.c +++ b/lib/librte_vhost/socket.c @@ -877,6 +877,7 @@ rte_vhost_driver_register(const char *path, uint64_t flags) "error: failed to init connection mutex\n"); goto out_free; } + vsocket->vdpa_dev_id = -1; vsocket->dequeue_zero_copy = flags & RTE_VHOST_USER_DEQUEUE_ZERO_COPY; vsocket->extbuf = flags & RTE_VHOST_USER_EXTBUF_SUPPORT; vsocket->linearbuf = flags & RTE_VHOST_USER_LINEARBUF_SUPPORT; -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-02-11 11:17:41.283950005 +0000 +++ 0065-vhost-fix-socket-initial-value.patch 2020-02-11 11:17:38.456002394 +0000 @@ -1,13 +1,14 @@ -From bf4fd5ba3e2edfe68888e83aef81f681756fc692 Mon Sep 17 00:00:00 2001 +From 5bdd1200fe0ab184083f77f2976690a1437e935d 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") -Cc: stable@dpdk.org Signed-off-by: Xiao Wang Reviewed-by: Tiwei Bie @@ -16,7 +17,7 @@ 1 file changed, 1 insertion(+) diff --git a/lib/librte_vhost/socket.c b/lib/librte_vhost/socket.c -index ece9d5d1d8..8bc1e3a03c 100644 +index ebb2ff6c28..834f0b88ad 100644 --- a/lib/librte_vhost/socket.c +++ b/lib/librte_vhost/socket.c @@ -877,6 +877,7 @@ rte_vhost_driver_register(const char *path, uint64_t flags)