From patchwork Wed Sep 27 09:23:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 29203 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A1A1F3230; Wed, 27 Sep 2017 11:23:29 +0200 (CEST) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 3ADAF276C for ; Wed, 27 Sep 2017 11:23:28 +0200 (CEST) Received: by mail-wm0-f47.google.com with SMTP id b195so15838421wmb.5 for ; Wed, 27 Sep 2017 02:23:28 -0700 (PDT) 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; bh=RAqAHZheNKqSt/sGxP9CkJQO/Y8dmFGPR6zolRrb5vI=; b=IauSisCVA5iUBoL45au8olECns/9v74pWC6WKUhTmVve6O4Csa63hzQNvCISyN381y hOepAG/8Qaie2RSUyOoEnP4I2dDWIQnv+43/uHL563MP5kblut2M3TRLowzbqecXIQiV Z8oo+4ZjPpAEcbBT2G9xG6KVam7YDXN80SVQoCwJxvEEgYU98nyx0gf+tGqj38+TiGJa Q+RmEDaj21Ev6HNfYLycvFfALFrNaaWdlo0Y7ZHdV+PTjNNHFfPSPQn17cAzHMOYfhwI KPz4tMcGP4OajHBYAmVkjsY1ZI6I8AC1inSq65S0y9HCO2fOIQwT3s0pI9X2sOocHwNj lA8Q== 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; bh=RAqAHZheNKqSt/sGxP9CkJQO/Y8dmFGPR6zolRrb5vI=; b=KnpdEgGYjRtFzb2Z11fzrOtNeRrDcwIIOPRBW8tScrNBuukjBVOkKKtf4n5rqidJel /OU4UAW5xSCQkTdNNQVRZ/2OnbLsihh+WznohBLMfrKUStMNfwTKh2kejio6mgp9JbVa C9Im1jLA8tvjVmRMLRZB+110ND2Waxs/6EqP92u0p5Wdbh0P+jSn3v395OIv7GufIkR2 vcdEfV8Yir8q2UZSnql8CqFff7jgOP86KUWeUl5LHJxhRPWSxx09TbkaHsiEb1liN0yP zIZwRdhJ3ETimy27PEYSlaJLWT8pO5D3gpeFQSYSCQQ0wpgnbyr2eEQIxz5xrOPPO8WF 4tMA== X-Gm-Message-State: AHPjjUgmecicsjAOsQ50/H0qcLzRTTVCu+qZzTQKgXhlyJNnIUgs+0OA wR+QMgtOYI186VtTF/GCVyJ/ZeQGLw8= X-Google-Smtp-Source: AOwi7QCGd611c+ydxZ7Isux5DMebB3eVGeI0rMGCVEaSnsgWfxZ4esco7cIvo2z+KKEFyAn3ioRzAg== X-Received: by 10.80.145.40 with SMTP id e37mr1117041eda.245.1506504207352; Wed, 27 Sep 2017 02:23:27 -0700 (PDT) Received: from localhost.localdomain ([31.216.236.195]) by smtp.gmail.com with ESMTPSA id d2sm7943398eda.71.2017.09.27.02.23.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Sep 2017 02:23:26 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Stephen Hemminger Date: Wed, 27 Sep 2017 10:23:20 +0100 Message-Id: <20170927092320.6837-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH] ethdev: increase length 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. This was in deprecation notice for previous release and make it so in 17.11. Signed-off-by: Stephen Hemminger Reviewed-by: Ferruh Yigit --- doc/guides/rel_notes/deprecation.rst | 3 +++ lib/librte_eal/common/include/rte_dev.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 3362f33501dd..ba5b68e70098 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -120,3 +120,6 @@ Deprecation Notices The non-"do-sig" versions of the hash tables will be removed (including the ``signature_offset`` parameter) and the "do-sig" versions renamed accordingly. + +* ethdev: in 17.11 the size of internal device name is increased + to 64 characters to allow for storing longer bus specific name. diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h index 5386d3a28be5..4c4ac7e5d375 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -152,7 +152,11 @@ struct rte_driver { const char *alias; /**< Driver alias. */ }; -#define RTE_DEV_NAME_MAX_LEN (32) +/* + * Internal identifier length + * Sufficiently large to allow for UUID or PCI address + */ +#define RTE_DEV_NAME_MAX_LEN 64 /** * A structure describing a generic device.