From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by dpdk.org (Postfix) with ESMTP id 400D4271 for ; Tue, 24 Apr 2018 00:41:35 +0200 (CEST) Received: by mail-wr0-f195.google.com with SMTP id p5-v6so17662462wre.12 for ; Mon, 23 Apr 2018 15:41:35 -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=cUx4v8EtMCqzqs+nvFw+3a7cfGyCRuZZPovP6wNVX2M=; b=TBeXC9r21Pb1CrUfHFlokqSvuD+bEvJQLU8f3fc9N2GzfEa+j4XX3ya7MrEjpUcXIj s+vsgfMVruCR3UFnvuD2MCN/pG8s/7Ynkmuky/cRymmqqEWLJxwFAd8leS1amdMu8Vh/ 5KIwatmKmCWRXW8kZGiazmP5uE/qCn1cTWuRauW6k00EFNrVgNeIX2KLlgWZe6NRL4iE zVSOrpa/GUq8Iw4gEgS7vtrXz68Hw6Q+71rPsVf2LR9IYgGHoOQ1B9nLb/PteI8fmG0j /G59rrNSPc8kY+TlbMr6D9kPAlVzqL1iAZI0X69r4IubsWa5r/qWxqIlQO7RHrQcChgQ xBGg== 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=cUx4v8EtMCqzqs+nvFw+3a7cfGyCRuZZPovP6wNVX2M=; b=e4Yp38+BkH8AYm6l0tJEBMFHQNPYH8/hc1xiDznaP+xiZzsDgX3M1CR1Dxm20PgZBj kCmsanxM1+8km3v3NSJLlfDkZG7esHVi+rpnr0QLo/Pnbaxo+sA5kkLqr/2kFeAe8XX3 UebxA5JPDdDpLBfW+lotX3yCM3hGcHVB72Z053pNvbUvZKJmYMXKAZAuTaVWGIcHbt0g ThUxD/ZETo4jVPwDQWd8maAaKDorhTIr5KIpiFowscV5BXGZ5dW85vD2n9kv38WhPyE7 OVSy9Pz/lB3OfV5e4mtneQAcOGUU3L+fgqXo2b3GMMlPxaHqI8J1YCTs6njl9MT6YcG8 ufqg== X-Gm-Message-State: ALQs6tAUjY/WthUgm4Roortm0c0rta1ohKwGnCjK4nUQGjc4GUm0mY97 V1ld2ApVZWgKbY1OebFiv7VXWtyp X-Google-Smtp-Source: AIpwx49JkqePgN+/GIfPh1Ugi70xSJOA350beANLu9t5mYYUd7fRbY+Ieycv1JJ+wlPr0EkG4/QVQA== X-Received: by 10.28.94.210 with SMTP id s201mr11231148wmb.140.1524523293967; Mon, 23 Apr 2018 15:41:33 -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 x189sm1590705wmg.0.2018.04.23.15.41.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 15:41:32 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Tue, 24 Apr 2018 00:41:00 +0200 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v4 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 22:41:35 -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. Gaetan Rivet (10): devargs: introduce iterator devargs: introduce foreach macro 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: use proper namespace prefix devargs: rename legacy API MAINTAINERS | 1 - app/test-pmd/cmdline.c | 2 +- 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 | 127 +++++++++++++++++++++++----- 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 ---------------------- 20 files changed, 198 insertions(+), 219 deletions(-) delete mode 100644 test/test/test_devargs.c -- 2.11.0