From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id C3D0A187 for ; Tue, 24 Apr 2018 01:55:14 +0200 (CEST) Received: by mail-wr0-f193.google.com with SMTP id d1-v6so45708159wrj.13 for ; Mon, 23 Apr 2018 16:55:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=m3pf7Lf/01iL60j9pZlWs5WUjDK3gNrl3O5RD0RXAcQ=; b=CpRT9Orrjr7p2PaJm3qfjiob3U0WadPlwpGepHcrnX1Tv4TsxARwMethvDbzLvyW7J 9KIHTp28E6MquaQ+cGcgfa63yDkkJ7Fi4stqZkMKmoxWXIYL6owxOCMLx74c2Fm4k4qg 1+I+W3EjncYQcNZ52rKvz2RprqKN347Ip3F89VZGGOR0DN53Yp/AuYHSJ3KM+VwrK46p +DFa3DMYkeqOVyAmKiDH2XRNtnHOgeq0/i1NMKYmW9bw0QtssYNKkyzPF2Fe91MRKm/s RA2HgikAJ0bFiT2gcHP9a0Xesxd+YA4YPaKAZCVuerjOFuVC3AKvvHbyZgG54U1/raSf XHAg== 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=m3pf7Lf/01iL60j9pZlWs5WUjDK3gNrl3O5RD0RXAcQ=; b=R9IsLvD10qaotBD5Iv/nJa8GhUTLq9SlLDXZEHJtLw9KiEBHridRVHTh4bCowA2GaA VvvcsY5aIOG671j/ZC8MUi7v/Q2n8lfFmnoUwfhxPbMNSh8WMj2ocgAeVnJZ0TsfD11q B+HawM0sRRwwczrzXMSWxuYCHreSJOBYiu1s17yXiy2svulqVW93HYxJ48srDV4dOZ+b 08JWb6p0muBzLDEwtVqiYNA02/OFpnsinqH7wEzsDyTh1TlBVfzlzXDZTgAfbw3LjyqB ueijLg4CzafIsqZECPRnlGusyC93/ISufIzP2aCjxZ/vb83YJgri7EAB2WXZGjdXfS8s Pv1w== X-Gm-Message-State: ALQs6tAciw9q5tmHsquxk52d3x9xxpz4V9mrgl7adcvjilezNMCGCMSF sjvmEE44P/ySJ+zE/z0aMBY4luT6 X-Google-Smtp-Source: AIpwx4/Ogh0BTs2lPH86Gh7fOT36Ip0WLPqlqQXL7BKIkhZ6EaFuc2t0qJOllhblfAHjzsNi1zBzsw== X-Received: by 10.28.6.149 with SMTP id 143mr11067178wmg.61.1524527713955; Mon, 23 Apr 2018 16:55:13 -0700 (PDT) Received: from bidouze.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 55-v6sm28922279wrw.52.2018.04.23.16.55.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 16:55:13 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Tue, 24 Apr 2018 01:54:42 +0200 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v5 00/10] devargs cleanup 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: Mon, 23 Apr 2018 23:55:14 -0000 Cleanup the rte_devargs API. This is a continuous process. The previous version of this patchset was dependent on changes on the PCI bus and the rte_bus library. Not all these changes were integrated. This patchset has thus been limited to elements that are available right now, without dependencies. The devargs list is made private. All devargs users are meant to use them using the proper API. Devargs will allocate dynamic memory. With device hotplug, this memory is usually mishandled and lost by libraries not following the evolutions of rte_devargs. v4: * Rebased on master. v5: * Merged iterator patches * Fixed rte_devargs_add documentation in its own patch. * Updated deprecation notice when relevant. Gaetan Rivet (10): devargs: introduce iterator bus/vdev: do not reference devargs list bus/pci: do not reference devargs list net/vdev_netvsc: do not reference devargs list test: remove devargs unit tests devargs: make devargs list private devargs: make parsing variadic devargs: update devargs add documentation devargs: use proper namespace prefix devargs: rename legacy API MAINTAINERS | 1 - app/test-pmd/cmdline.c | 2 +- doc/guides/rel_notes/deprecation.rst | 5 -- drivers/bus/pci/Makefile | 1 + drivers/bus/pci/pci_common.c | 6 +- drivers/bus/vdev/Makefile | 1 + drivers/bus/vdev/vdev.c | 13 +-- drivers/net/failsafe/failsafe_args.c | 2 +- drivers/net/failsafe/failsafe_eal.c | 2 +- drivers/net/vdev_netvsc/vdev_netvsc.c | 4 +- examples/bond/Makefile | 1 + examples/bond/main.c | 2 +- lib/librte_eal/common/eal_common_dev.c | 39 ++------- lib/librte_eal/common/eal_common_devargs.c | 53 ++++++++++-- lib/librte_eal/common/eal_common_options.c | 2 +- lib/librte_eal/common/include/rte_devargs.h | 130 ++++++++++++++++++++++------ lib/librte_eal/rte_eal_version.map | 11 ++- lib/librte_ether/rte_ethdev.c | 44 +++++----- test/test/Makefile | 1 - test/test/commands.c | 2 +- test/test/test_devargs.c | 103 ---------------------- 21 files changed, 199 insertions(+), 226 deletions(-) delete mode 100644 test/test/test_devargs.c -- 2.11.0