From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 76D9D2E81 for ; Mon, 22 Sep 2014 10:32:04 +0200 (CEST) Received: by mail-wg0-f43.google.com with SMTP id y10so2512998wgg.2 for ; Mon, 22 Sep 2014 01:38:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=fuDBF2AWOwSO+QY8RC8edzI9RjK4qdSgI7xCmyLtK88=; b=gKYKCTMPhyTlEjCp/8wG/jwHOzFNgOIPr/s0KwGL5vjQrhB2IMt0Thp0onQ1nZeWS3 7ycmDml2B6NTEFj4XZmcfBH9TTnTtrgu6gWjsvuFV+iSy5bGpH6NKKpw1JLcCh6ucCXF pdgZBehU7xr4YXCHI137eVXsNiV6vjt3DHuT/Nx82tcGK1xUDcSvgED/8C9W3/R8zhYF 7s4iw4vf45ZJJ2VUja6eK2e4z39F11zLPQ8jUw6a4nRMYLSNu/xYBzIUVEK0Onzx56AT i2gzjsyN6xczQ55I6KxkvzLRxzb4d0q1X2OdmHBgg8GQNYfLBvClZpVOtMdmpDha+ZG5 mqNA== X-Gm-Message-State: ALoCoQmn1iRopZhjMJG9YYDW4mMwc3P41SEkuOl9ToOFlqdPBRpFQUt8hTHTYHeYNtk34xmGUwRG X-Received: by 10.180.20.6 with SMTP id j6mr13955769wie.64.1411375087430; Mon, 22 Sep 2014 01:38:07 -0700 (PDT) Received: from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id js2sm11522334wjc.9.2014.09.22.01.38.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Sep 2014 01:38:06 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Mon, 22 Sep 2014 10:37:54 +0200 Message-Id: <1411375081-27986-1-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 Subject: [dpdk-dev] [PATCH 0/7] cleanup option parsing in bsd/linux eal X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 08:32:04 -0000 Following Neil comments, here is a patchset to rework the eal options parsing. I tried to have everything common to linux and bsd in a single file. I ran a little make test on linux, it looks fine (at least I have as many fails as before my changes). There is still work in this part, but I want to stop here. If anyone wants to continue ... :-) -- David Marchand David Marchand (7): eal: remove unused --use-device option eal: factorise unsupported option handling eal: remove duplicate handling of white/black list eal: fix checkpatch issues before moving code eal: merge bsd and linux common options parsing eal: rework long options parsing eal: indent files lib/librte_eal/bsdapp/eal/Makefile | 1 + lib/librte_eal/bsdapp/eal/eal.c | 388 +++-------------------- lib/librte_eal/common/eal_common_options.c | 392 +++++++++++++++++++++++ lib/librte_eal/common/include/eal_options.h | 84 +++++ lib/librte_eal/linuxapp/eal/Makefile | 1 + lib/librte_eal/linuxapp/eal/eal.c | 457 +++++---------------------- 6 files changed, 593 insertions(+), 730 deletions(-) create mode 100644 lib/librte_eal/common/eal_common_options.c create mode 100644 lib/librte_eal/common/include/eal_options.h -- 1.7.10.4