From patchwork Mon Jan 2 23:08:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 18763 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 7613E2C6D; Tue, 3 Jan 2017 00:09:27 +0100 (CET) Received: from mail-pf0-f173.google.com (mail-pf0-f173.google.com [209.85.192.173]) by dpdk.org (Postfix) with ESMTP id 984252BA5 for ; Tue, 3 Jan 2017 00:09:00 +0100 (CET) Received: by mail-pf0-f173.google.com with SMTP id c4so73873879pfb.1 for ; Mon, 02 Jan 2017 15:09:00 -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=Y37MWVrjK7gelVfBgT5ved0dzPow4i4QIb4vlVUlN8g=; b=GTt8HDWBvnl3Xh9wO/Ys1Znu2WCJ3WGOIso1S72ZCZWhw6erGRctigh3GCaf5lHSq9 ocwb7OpY71QnI06RdPPtptM1dM0OteusR7GdCoP11JUDsTOvDv/3QsJbn6QJuDKu/V8p CztdE0iA+JC2u2PzoO0vi1WO4D/BPr+N/v8ObrwPcUhMscaz8XBN38VmPPcvvDh+CQl+ pcVgsOMDw6vXz0u205RHeD4wSMCJQDXaYsT1utU4BQaItw/aQTu5WSvIbJXPQh5zntB1 tC+9m+F2YncYbo/5rBy1at5w9CvGRnRh/GLe3E9U+bUeLiN5cwyY6SUaQTfQMxuMoKu4 bL6w== 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=Y37MWVrjK7gelVfBgT5ved0dzPow4i4QIb4vlVUlN8g=; b=U0GHwJ4xz+Oj03f4s1lTcrwhu2N1OJa+TgIQR7W5HjR1LUhEsPvxxgTPebgFT+wNeO Nk4VG+kCD6Bg+p2oTo+j/nrBsq0OevFGRvRLm4do2tFMdN3t5Flo9Ts/MlkRLYyMJevC /DqUarWJ+l9nsMecdU6wlPZnoBVJumfcRRTcwXpd3650lX9HFUfN0EZJ/FV4cDrifE33 zs5/lN9BptT4XBtP/Z32qyLfHOEM4aYp19OdqpuysK8GYQBLTwuoJb1aHmNOIKNA8ngx c4tc+JycHO9xnG0zMgECDNDOaOQbPRhAuNyOnVX79H7wfppTHWDMTFkvROXKfSLW/I3U V7EQ== X-Gm-Message-State: AIkVDXKiHrmFy+O49QJlSkkUiCfTlu0lcs/yMAviv2Umef0vKBofcfoXmyfJmGdxl+r76g== X-Received: by 10.98.64.10 with SMTP id n10mr55889497pfa.168.1483398539883; Mon, 02 Jan 2017 15:08:59 -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 p68sm134628284pfd.11.2017.01.02.15.08.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jan 2017 15:08:59 -0800 (PST) From: Stephen Hemminger X-Google-Original-From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Mon, 2 Jan 2017 15:08:45 -0800 Message-Id: <20170102230850.32610-2-sthemmin@microsoft.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170102230850.32610-1-sthemmin@microsoft.com> References: <20170102230850.32610-1-sthemmin@microsoft.com> Subject: [dpdk-dev] [PATCH 1/6] 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) which is necessary with VMBUS. 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 fb517544..09dd744d 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -1649,7 +1649,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