From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f176.google.com (mail-pf0-f176.google.com [209.85.192.176]) by dpdk.org (Postfix) with ESMTP id 37466282 for ; Thu, 15 Dec 2016 00:59:30 +0100 (CET) Received: by mail-pf0-f176.google.com with SMTP id 189so5715269pfz.3 for ; Wed, 14 Dec 2016 15:59:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4aLnLoYQIqq4MjbMLV9i5boVrATjJrazjGOluZz3SsE=; b=XB7eN2K/8uyCSq9Hx8Dw4kjMVdI53DhRE3ipBh8crabzYaBNg6Izsj6U/HPS4wp+Rt nwY+kojXqSNYCPTki49H3kEUVpNbVKfEboAb0hY3Uw2crX8xOtjg9Ws2wmOiGEia/D/5 sKYI7QhciM9uAL6+Sk9T6WB5FZ+bvOdnZFhhZ9xYkQtZd5NHTmcclw21r6pABfod7xpg q6ZWYq/e5gp+gJmYTDWm2OC0mhuidcG/dHKe8hxeEYO5M8wqgCd/ipKFJ1rpT3fq3JqA I2lMNvgy77kpPXvo6/wW0JklcdjQPdcDTPXGUIRJwEZ8T5GdSfOIfn5Jm5b6AqWc2mjU S0lw== 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=4aLnLoYQIqq4MjbMLV9i5boVrATjJrazjGOluZz3SsE=; b=TmCY1t+38aHT0Ln3p1jc5dYaXEVf7ek+zSpOwGaVU10Px9itYwOvq/3FVP+EUP09ZE RKjFvVXcnGck1GWaUCVkcBLoT1kC6ASmC7bQ5OTaMPya1wjV5EDBq4SCEsNIphLRyPVO QlgpG9V7ACw4AjSOOyIyla02A1XG8jDCQwRf460LCyp4UCJR2C0wu1BPElHcgWg5UAwg OrUUPweRsLi9XGzEl85r9Y5sLeOw0tLqnqHOKarW9vVamOQwKWA8e3Zt9KgI9EDPUDTb P3jcOnhy87bda0S4scvR/ELKFy83X4Zic1dYynXMSTC/aSvV04afjvPNNloscrJpBMZM S59g== X-Gm-Message-State: AKaTC00RDsRXmFtpPd6t4atd2TTF9hp2Ro3c/4AES0NNhRKfBsKmIg2nUVrgdHifnEvogA== X-Received: by 10.99.142.201 with SMTP id k192mr185843881pge.174.1481759969728; Wed, 14 Dec 2016 15:59:29 -0800 (PST) Received: from xeon-e3.wavecable.com (204-195-18-65.wavecable.com. [204.195.18.65]) by smtp.gmail.com with ESMTPSA id 16sm89842390pfy.4.2016.12.14.15.59.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Dec 2016 15:59:29 -0800 (PST) From: Stephen Hemminger X-Google-Original-From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 14 Dec 2016 15:59:19 -0800 Message-Id: <20161214235920.12877-2-sthemmin@microsoft.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161214235920.12877-1-sthemmin@microsoft.com> References: <20161214235920.12877-1-sthemmin@microsoft.com> Subject: [dpdk-dev] [PATCH 1/2] ethdev: increase length ethernet device internal name X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2016 23:59:31 -0000 Allow sufficicent space for UUID in string form (36+1). Needed to use UUID with Hyper-V Signed-off-by: Stephen Hemminger --- doc/guides/rel_notes/deprecation.rst | 3 +++ lib/librte_ether/rte_ethdev.h | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 2d17bc6..b83f23a 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -58,6 +58,9 @@ Deprecation Notices ``port`` field, may be moved or removed as part of this mbuf work. A ``timestamp`` will also be added. +* ethdev: for 17.02 the size of internal device name will be increased + to 40 characters to allow for storing UUID. + * The mbuf flags PKT_RX_VLAN_PKT and PKT_RX_QINQ_PKT are deprecated and are respectively replaced by PKT_RX_VLAN_STRIPPED and PKT_RX_QINQ_STRIPPED, that are better described. The old flags and diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 9678179..3c85e33 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -1652,7 +1652,11 @@ struct rte_eth_dev_sriov { }; #define RTE_ETH_DEV_SRIOV(dev) ((dev)->data->sriov) -#define RTE_ETH_NAME_MAX_LEN (32) +/* + * Internal identifier length + * Sufficiently large to allow for UUID or PCI address + */ +#define RTE_ETH_NAME_MAX_LEN 40 /** * @internal -- 2.10.2