All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] add rte_kvargs library: a key/value args parser
@ 2014-01-28 16:06 Olivier Matz
       [not found] ` <1390925204-10800-1-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 26+ messages in thread
From: Olivier Matz @ 2014-01-28 16:06 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

The topic of this patchset is to add a new rte_kvargs library that
can be used as a helper to parse key/value arguments. The code will
be based on rte_eth_pcap_arg_parser and reworked with documentation
and tests. It also fix some minor issues of the original code.

These commits will allow another library (like pmd_ring) to parse
arguments in an easier way without duplicating the code.

Olivier Matz (11):
  kvargs: add a new library to parse key/value arguments
  kvargs: use the new library in pmd_pcap
  kvargs: remove driver name in arguments
  kvargs: remove useless size field
  kvargs: rework API to fix memory leak
  kvargs: simpler parsing and allow duplicated keys
  kvargs: be strict when matching a key
  kvargs: add const attribute in handler parameters
  kvargs: add the key in handler pameters
  kvargs: make the NULL key to match all entries
  kvargs: add test case in app/test

 app/test/Makefile                             |   1 +
 app/test/commands.c                           |   8 +
 app/test/test.h                               |   1 +
 app/test/test_kvargs.c                        | 235 ++++++++++++++++++++++++
 config/defconfig_i686-default-linuxapp-gcc    |   5 +
 config/defconfig_i686-default-linuxapp-icc    |   5 +
 config/defconfig_x86_64-default-linuxapp-gcc  |   5 +
 config/defconfig_x86_64-default-linuxapp-icc  |   5 +
 lib/Makefile                                  |   1 +
 lib/librte_kvargs/Makefile                    |  49 +++++
 lib/librte_kvargs/rte_kvargs.c                | 206 +++++++++++++++++++++
 lib/librte_kvargs/rte_kvargs.h                | 155 ++++++++++++++++
 lib/librte_pmd_pcap/Makefile                  |   8 +-
 lib/librte_pmd_pcap/rte_eth_pcap.c            |  44 ++---
 lib/librte_pmd_pcap/rte_eth_pcap_arg_parser.c | 255 --------------------------
 lib/librte_pmd_pcap/rte_eth_pcap_arg_parser.h |  71 -------
 lib/librte_pmd_ring/rte_eth_ring.c            |   2 +
 mk/rte.app.mk                                 |   4 +
 18 files changed, 709 insertions(+), 351 deletions(-)
 create mode 100644 app/test/test_kvargs.c
 create mode 100644 lib/librte_kvargs/Makefile
 create mode 100644 lib/librte_kvargs/rte_kvargs.c
 create mode 100644 lib/librte_kvargs/rte_kvargs.h
 delete mode 100644 lib/librte_pmd_pcap/rte_eth_pcap_arg_parser.c
 delete mode 100644 lib/librte_pmd_pcap/rte_eth_pcap_arg_parser.h

-- 
1.8.4.rc3

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2014-02-04 14:53 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-28 16:06 [PATCH 00/11] add rte_kvargs library: a key/value args parser Olivier Matz
     [not found] ` <1390925204-10800-1-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-28 16:06   ` [PATCH 01/11] kvargs: add a new library to parse key/value arguments Olivier Matz
     [not found]     ` <1390925204-10800-2-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-29 15:45       ` Richardson, Bruce
2014-01-28 16:06   ` [PATCH 02/11] kvargs: use the new library in pmd_pcap Olivier Matz
     [not found]     ` <1390925204-10800-3-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-29 15:46       ` Richardson, Bruce
2014-01-28 16:06   ` [PATCH 03/11] kvargs: remove driver name in arguments Olivier Matz
     [not found]     ` <1390925204-10800-4-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-29 15:47       ` Richardson, Bruce
2014-01-28 16:06   ` [PATCH 04/11] kvargs: remove useless size field Olivier Matz
     [not found]     ` <1390925204-10800-5-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-29 17:14       ` Richardson, Bruce
2014-01-28 16:06   ` [PATCH 05/11] kvargs: rework API to fix memory leak Olivier Matz
     [not found]     ` <1390925204-10800-6-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-30 11:22       ` Richardson, Bruce
2014-01-28 16:06   ` [PATCH 06/11] kvargs: simpler parsing and allow duplicated keys Olivier Matz
     [not found]     ` <1390925204-10800-7-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-29 17:17       ` Richardson, Bruce
     [not found]         ` <59AF69C657FD0841A61C55336867B5B01A995C12-kPTMFJFq+rELt2AQoY/u9bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-01-29 22:17           ` Olivier MATZ
2014-01-30 11:23       ` Richardson, Bruce
2014-01-28 16:06   ` [PATCH 07/11] kvargs: be strict when matching a key Olivier Matz
     [not found]     ` <1390925204-10800-8-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-30 11:23       ` Richardson, Bruce
2014-01-28 16:06   ` [PATCH 08/11] kvargs: add const attribute in handler parameters Olivier Matz
     [not found]     ` <1390925204-10800-9-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-30 11:24       ` Richardson, Bruce
2014-01-28 16:06   ` [PATCH 09/11] kvargs: add the key in handler pameters Olivier Matz
     [not found]     ` <1390925204-10800-10-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-30 11:34       ` Richardson, Bruce
2014-01-28 16:06   ` [PATCH 10/11] kvargs: make the NULL key to match all entries Olivier Matz
     [not found]     ` <1390925204-10800-11-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-30 11:34       ` Richardson, Bruce
2014-01-28 16:06   ` [PATCH 11/11] kvargs: add test case in app/test Olivier Matz
     [not found]     ` <1390925204-10800-12-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-01-30 11:35       ` Richardson, Bruce
2014-02-04 14:53   ` [PATCH 00/11] add rte_kvargs library: a key/value args parser Thomas Monjalon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.