From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by dpdk.org (Postfix) with ESMTP id 63069187 for ; Mon, 30 Apr 2018 16:07:30 +0200 (CEST) Received: by mail-wr0-f195.google.com with SMTP id c14-v6so8170802wrd.4 for ; Mon, 30 Apr 2018 07:07:30 -0700 (PDT) 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; bh=D1mzW1sSFKiLju8q1Rkpcq1IKYdCFdr8hFdKd+w+tH8=; b=upiv4WFVHIuHKL6XTnHt+BKgTC24QHdfutcskG2JsPX5bCsxt6d0NbZ4rSvGpRvIhM c4O4WffCocsHp6OibVhLqubevLFIwcwoQGESp08+Qxh5zTRLS08vHbQD/M3evvMnMylE yxv9q5N5Dsgt4qD95iBHR698WWVH2PXegGtSSkGmhuwLMhL5lZWNsE2T6ic622Eg72BL Yr6tVWqM7ddjAlftdqJVjARjtF5RZJBSXWYXtrxYh/QCGN0QLWQ1xR8HtSDSsrJuiw4i 7BkEwf8O3+q02IZ6LCqstcSkl/me5GdieBlhqT3VESveIha+cGGNDgAqeC/t26zmTUcv NU1g== 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; bh=D1mzW1sSFKiLju8q1Rkpcq1IKYdCFdr8hFdKd+w+tH8=; b=pIwhzdE+ui9aNp2WioGo5ULyZLfwQi0htshnAdgg6D6nEWQjeuXJXK8abMvEHO2pvX okNvnE1dt7iFzU+yBwJPuBFOZq+Rfnf3popKbXWNObvr1CPgURq5Rw+Wai2LaXMSjqve 9G02mWqWyRuHmU1XkDFIFWg0YFdlOX+FHxZ4FJZwAKD+hlMrO8ZDumvH5r5vuEYmvNff giP/VS/rssharsFd0fdsrFS+3F5uJ6TxPCvT95Cyi4wGcVUMTQoHHAyCQmPogczaXDvD vFqJTgVSLGbyxPncb5RqcY6mDegv01aS067D4hypRfCrwIRbx9vQg4I8uHilREOsHryH qU3A== X-Gm-Message-State: ALQs6tA6q3s57HiGRFChExF9ftvtvQi4zxVC5SgCNCi4pHYEYRY7R6DB sN682pjtvAqPuOQZ/cNXMFrJPCyJRis= X-Google-Smtp-Source: AB8JxZpyNpD4H2HY7SMXdegGYeTm7E3wL//AygaPCOsJ/zCOAtyj5EnhC1AOH6Ihju30umnfosia8Q== X-Received: by 2002:adf:8111:: with SMTP id 17-v6mr9433691wrm.109.1525097250145; Mon, 30 Apr 2018 07:07:30 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id 131sm1099854wms.34.2018.04.30.07.07.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:07:29 -0700 (PDT) From: luca.boccassi@gmail.com To: Tomasz Kulasek Cc: Pawel Wodkowski , Jianfeng Tan , Maxime Coquelin , dpdk stable Date: Mon, 30 Apr 2018 15:03:19 +0100 Message-Id: <20180430140606.4615-41-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430140606.4615-1-luca.boccassi@gmail.com> References: <20180430140606.4615-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'vhost: fix ring index returned to master on stop' has been queued to stable release 18.02.2 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: , X-List-Received-Date: Mon, 30 Apr 2018 14:07:30 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 33e55595784014c5b73c02b699fd5d29117137a6 Mon Sep 17 00:00:00 2001 From: Tomasz Kulasek Date: Fri, 9 Feb 2018 18:28:00 +0100 Subject: [PATCH] vhost: fix ring index returned to master on stop [ upstream commit 90bb22a197abb41795cc9946e57af9d4f9395970 ] According to the "Vhost-user Protocol" document, VHOST_USER_GET_VRING_BASE should get the available vring base offset. Fixes: 8f972312b8f4 ("vhost: support vhost-user") Signed-off-by: Pawel Wodkowski Signed-off-by: Tomasz Kulasek Reviewed-by: Jianfeng Tan Reviewed-by: Maxime Coquelin --- lib/librte_vhost/vhost_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c index 6fc810ec3..bed45765b 100644 --- a/lib/librte_vhost/vhost_user.c +++ b/lib/librte_vhost/vhost_user.c @@ -911,8 +911,8 @@ vhost_user_get_vring_base(struct virtio_net *dev, dev->flags &= ~VIRTIO_DEV_READY; - /* Here we are safe to get the last used index */ - msg->payload.state.num = vq->last_used_idx; + /* Here we are safe to get the last avail index */ + msg->payload.state.num = vq->last_avail_idx; RTE_LOG(INFO, VHOST_CONFIG, "vring base idx:%d file:%d\n", msg->payload.state.index, -- 2.14.2