mbox series

[0/2] app/testpmd: add portlist option to the testpmd

Message ID 1580121053-26083-1-git-send-email-hariprasad.govindharajan@intel.com (mailing list archive)
Headers
Series app/testpmd: add portlist option to the testpmd |

Message

Hariprasad Govindharajan Jan. 27, 2020, 10:30 a.m. UTC
  This patchset contains 2 patches.
The first one will be changes to testpmd where a new option
portlist is added. 
The second one adds a function eal_parse_optionlist which will
parse user input

The following new command line parameter is added:
--portlist: user can specify the list of forwarding ports
In current version, we are setting the ports using portmask.
With portmask, we can use only upto 64 ports. 
This portlist option enables the user to use more than 64 ports.
        --portlist <p1>[-p2][,p3[-p4],...]

The following new API is added:
eal_parse_optionlist()
In current version, there is a function which parses
the corelist based on user value. A new generic
function eal_parse_optionlist is added which will
parse corelist as well as similar user input from
the command line

Hariprasad Govindharajan (2):
  app/testpmd: add portlist option to the testpmd
  eal: add eal_parse_optionlist to parse user input

 app/test-pmd/config.c                      | 25 +++++++++++++++++
 app/test-pmd/parameters.c                  |  5 ++++
 app/test-pmd/testpmd.h                     |  3 ++
 lib/librte_eal/common/eal_common_options.c | 45 ++++++++++++++++++------------
 lib/librte_eal/common/include/rte_eal.h    | 34 ++++++++++++++++++++++
 lib/librte_eal/rte_eal_version.map         |  1 +
 6 files changed, 95 insertions(+), 18 deletions(-)