From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stephen@networkplumber.org>
Received: from mail-it0-f53.google.com (mail-it0-f53.google.com
 [209.85.214.53]) by dpdk.org (Postfix) with ESMTP id A7A2BFAB8
 for <dev@dpdk.org>; Mon, 19 Dec 2016 22:59:54 +0100 (CET)
Received: by mail-it0-f53.google.com with SMTP id y23so95563970itc.0
 for <dev@dpdk.org>; Mon, 19 Dec 2016 13:59:54 -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=gb4io4i6nzMV6LQ1/auOFcxCri8gvTerYOH8l6Izcsc=;
 b=bBm2PjkUaQaRhMLn5r4oqZNOuCf3UXWF16q9mT2Ksis0ste8ukq47XsJ8XYdPAc9v+
 yn66D3F5pzC9Qkhmak/MPOz6ydBqkKc7XyQdd9HSR1wYStFycEFLOjDcWziXR0XtAqP3
 Z5rzf4UGOvF4DtxlI/ov/htVwD2URrbv/gv00+3s723Xnv99P6WT4LLmvhORa5G94B2q
 IL+0dBET2XExTiYspmhCb1Q/nfaxm6rBVhQgwEUwrEMez8i1x0PToQhVE0/0I0H24Ugn
 5aSDBHyJV5/Fhe4uADQRIgWN7kJA2ZLcSVnpxfICnOEx/Q0SP3CbORrYqYGduFVare8j
 bCQQ==
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=gb4io4i6nzMV6LQ1/auOFcxCri8gvTerYOH8l6Izcsc=;
 b=servAdVo3ciKLOEC/P0ETivTqtZKWOwp/Ts4f1U7KRTIxz11/YEowFnToN6thllvfi
 wygm95xit1Z3FzqWfELYXf4z8y6fqRETx4zD66jjiVJ4guGlRfvETF9z4/MuHDm2YDF1
 pEj1LHT02w3Pj+wS59t/R98hR951Owt/y3s4A0FHyWLPslTOHqPu05fRXlOn/zv3rmqd
 ywv4jCSmNYzPYuKWu/4WdqxBR02Ee5K0W1/01d+NANvTWt06DqFLefANwOGisTTX0HcD
 ICSPWpwdVmY4eEVImL59tTIur7No7yxh7YfxWN+YP8u2VetJDm9qGeShhfV3OyyLIFev
 Cq1A==
X-Gm-Message-State: AKaTC03+tOl+JJXpg/MjNmAbJPLSAhDneJ1xPiQm5jicvAE2MTzIkC8tbX60olmMxbf5Uw==
X-Received: by 10.36.76.81 with SMTP id a78mr17592383itb.30.1482184793817;
 Mon, 19 Dec 2016 13:59:53 -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 p20sm8270581itc.2.2016.12.19.13.59.52
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 19 Dec 2016 13:59:53 -0800 (PST)
From: Stephen Hemminger <stephen@networkplumber.org>
X-Google-Original-From: Stephen Hemminger <sthemmin@microsoft.com>
To: dev@dpdk.org
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Date: Mon, 19 Dec 2016 13:59:32 -0800
Message-Id: <20161219215944.17226-2-sthemmin@microsoft.com>
X-Mailer: git-send-email 2.11.0
In-Reply-To: <20161219215944.17226-1-sthemmin@microsoft.com>
References: <20161219215944.17226-1-sthemmin@microsoft.com>
Subject: [dpdk-dev] [PATCH 01/13] 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 <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 19 Dec 2016 21:59:55 -0000

Allow sufficicent space for UUID in string form (36+1).
Needed to use UUID with Hyper-V

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
---
 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 2d17bc6e..b83f23a1 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 96781792..3c85e331 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.11.0