From patchwork Sat Jan 7 18:17:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 18991 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 2EEA53977; Sat, 7 Jan 2017 19:18:51 +0100 (CET) Received: from mail-pg0-f47.google.com (mail-pg0-f47.google.com [74.125.83.47]) by dpdk.org (Postfix) with ESMTP id 8771E2946 for ; Sat, 7 Jan 2017 19:18:06 +0100 (CET) Received: by mail-pg0-f47.google.com with SMTP id 14so17183239pgg.1 for ; Sat, 07 Jan 2017 10:18:06 -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=U+ujlwBwqjX0kCLB7kx3W80o4TP0wsWKe5YP543lATc=; b=WOMnugVKvz6MDqfacA7jN+VuyQymVM1LmH8U0arVGEHd38UqetzoBliC9qjQZwG7zb dRARXpuRBzQBFVZfZdKtHlTL2IPk2GFvFzy95+7s/hq7IJagO6gPiPoe658BE+XtDVm+ ddZ9kWYn9IPwX9CUlqr6py1lW2Ysi1YphPFzkmgSLwVTXhVyE0+Pxpe8uI8znjaS/Vf7 FBb8/SE9to/XxNEvNGhb0Ec+BxwI2vOWzDLZT3xWfnoZv/kmhmQc1YGj+11c7XyQS0ah tpp5txtCoEUx+ugty3TAjdUQHm2ZvIKMvajcIZR/eFieiOSUTgOcswoM/70jSopvhU9t A16A== 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=U+ujlwBwqjX0kCLB7kx3W80o4TP0wsWKe5YP543lATc=; b=DWkZuTvR9uzXNjHHuPsaiRELOjT+OZEE6/eBmK1BJgwkGQNTB1fXvnM6BXzREEV3Py vbo+1sWgeAdnxm8OJzq6nQBtPBUNkcKGl6320iQB61KOtxhdhb4TO0iTcIJltUZk583v 9oC67Yq5Rjamc/7itIfC36IiO/z719Ndui/78vXcPd82GyCbp9rdZrloqv/OTv3vIeDA SrUrsOP85QPz9clhgq1FpfyInPeyZHWR7eRJSTePCbYNv4BRapzyHYLmYJOdEP4qqZ2j tlHB+t7t1Bet0mgs4ffINKCxT/q7FHDO6CtkCWg6ZaBAwNuhQ/PJHhgaM2iUrrxYjYvv z4Ng== X-Gm-Message-State: AIkVDXL5LDWo6pSss37g9KSwbek5fqybYo3sv8Yg1OkUqbQngv2TPt1fbwOsIJKkWGCYxw== X-Received: by 10.98.4.134 with SMTP id 128mr77219475pfe.156.1483813085594; Sat, 07 Jan 2017 10:18:05 -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 q190sm127565181pfb.51.2017.01.07.10.18.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jan 2017 10:18:04 -0800 (PST) From: Stephen Hemminger X-Google-Original-From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Sat, 7 Jan 2017 10:17:49 -0800 Message-Id: <20170107181756.1944-2-sthemmin@microsoft.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170107181756.1944-1-sthemmin@microsoft.com> References: <20170107181756.1944-1-sthemmin@microsoft.com> Subject: [dpdk-dev] [PATCH 1/8] 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 1438c777..69669e44 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 1c356c1b..b4168830 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -1682,7 +1682,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