From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by dpdk.org (Postfix) with ESMTP id 14BE81B70A for ; Tue, 15 May 2018 19:20:25 +0200 (CEST) Received: by mail-lf0-f68.google.com with SMTP id h9-v6so1416355lfi.0 for ; Tue, 15 May 2018 10:20:25 -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=DWnHckojXAfZ8MQxCJzuxvwU6BD+ijPjB2ePZjldFFU=; b=OTWtpB/lF+0bZRDhtzuDrbAdu859JjMss3Df07Are/GnTfdjLQ/wQqSkX6mXQgWffv WMsxBpukT6THwWCMB1GWKQFhsVIzdkLJTmRZUmjCdxfUWPs+4mr1zIglAbrJmFsrgVY1 RUi2O75B0Ym3WgzTkSupKsJS1t11aMvWcy7Ukd3H4SCsp6uZGIB/zHl7XKe/zCM3+oE7 /9k96XxW+hgo6/uOPN0LkBE9+KJH7QTgBAWIGUbP4gXc0GxE+49OJBSVhb1yKQ5H39BD beCVyKqHoQHRXxC/uUi73D2RkwY7v6CIZatrmRtGjfW/9b6J1zj/ecXIfnjILIEJj+xC MSCg== 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=DWnHckojXAfZ8MQxCJzuxvwU6BD+ijPjB2ePZjldFFU=; b=mgUcYG9h/P+6LW1NBESa6K0S5D8hEkbPTHVuctjsw2WuC9fbAeOUejKYYR5eaqDJLO RtNwhCTBsx9mvNMRXWuzL8dhiHlUv1ZLCetZcQCu+V3ZZjOZ5anvfk/1CpC5YCrC7GBZ puXdxBgOBLTDw2zAQp4pWup3+29nLWXUtIw7aqJX8t1Wb6caSCxltsE6liDmohBv8BOL 1RCBfN3WJIvrhSdp3NxndHMP/9FeEWhiDWkztbG9VtDxugVCwA2jmMUhq76VRfrbiVPE wlHfQP1ac1bHw1R3B0XtnFSOXKPCCUm9bD/FPDWMq4fUFwOQBmKBbugzxswnnoeG3UFz 71HA== X-Gm-Message-State: ALKqPwcz5iypPI6EQVaEAR+m+tBQOkDKildF5IZI9FsJSji95ZRF+2Xa VWLhUZryHCJFwXzC+Cz1n5TcgpEfJto= X-Google-Smtp-Source: AB8JxZqh1jJw8+9MCbFbJS2eZ9xx78jj/dP9SuGj4kIxQNnvTQYV09RLPlpn+ZAEZxPF5ZaAe1Lubw== X-Received: by 2002:a19:544b:: with SMTP id i72-v6mr7581624lfb.4.1526404824662; Tue, 15 May 2018 10:20:24 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id l124-v6sm125612lfg.62.2018.05.15.10.20.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 10:20:23 -0700 (PDT) From: luca.boccassi@gmail.com To: Ciara Loftus Cc: Maxime Coquelin , dpdk stable Date: Tue, 15 May 2018 18:19:25 +0100 Message-Id: <20180515171933.12882-24-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515171933.12882-1-luca.boccassi@gmail.com> References: <20180501104509.17238-46-luca.boccassi@gmail.com> <20180515171933.12882-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/vhost: initialise device as inactive' has been queued to LTS release 16.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: , X-List-Received-Date: Tue, 15 May 2018 17:20:25 -0000 Hi, FYI, your patch has been queued to LTS release 16.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 05/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From eaaa8a20abf5898b97aabcafc43f0dea129cedfd Mon Sep 17 00:00:00 2001 From: Ciara Loftus Date: Thu, 3 May 2018 14:17:03 +0100 Subject: [PATCH] net/vhost: initialise device as inactive [ upstream commit aee6c97f006cea7b1c791b21b222442437ee5403 ] rte_eth_vhost_get_vid_from_port_id returns a value of 0 if called before the first call to the new_device callback. A vid value >=0 suggests the device is active which is not the case in this instance. Initialise vid to a negative value to prevent this. Fixes: ee584e9710b9 ("vhost: add driver on top of the library") Signed-off-by: Ciara Loftus Reviewed-by: Maxime Coquelin --- drivers/net/vhost/rte_eth_vhost.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index 8fde6030e..12922df64 100644 --- a/drivers/net/vhost/rte_eth_vhost.c +++ b/drivers/net/vhost/rte_eth_vhost.c @@ -115,6 +115,7 @@ struct pmd_internal { char *dev_name; char *iface_name; uint16_t max_queues; + int vid; }; struct internal_list { @@ -1066,6 +1067,7 @@ eth_dev_vhost_create(const char *name, char *iface_name, int16_t queues, data->nb_rx_queues = queues; data->nb_tx_queues = queues; internal->max_queues = queues; + internal->vid = -1; data->dev_link = pmd_link; data->mac_addrs = eth_addr; -- 2.14.2