summaryrefslogtreecommitdiff
path: root/examples/ip_pipeline/cli.c
AgeCommit message (Collapse)Author
2018-11-02examples/ip_pipeline: support table rule showCristian Dumitrescu
Add support for the table rule show operation. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-11-02examples/ip_pipeline: support rule time readCristian Dumitrescu
Add support for the table rule timestamp read operation. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-11-02examples/ip_pipeline: support rule TTL stats readCristian Dumitrescu
Add support for the table rule TTL stats read operation. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-11-02examples/ip_pipeline: support meter stats readCristian Dumitrescu
Add support for the rule meter stats read operation. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-11-02examples/ip_pipeline: support rule stats readCristian Dumitrescu
Add support for rule stats read operation. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-11-02examples/ip_pipeline: track rules on add defaultCristian Dumitrescu
Support table rule tracking on table rule add default operation. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-11-02examples/ip_pipeline: track table rules on add bulkCristian Dumitrescu
Support table rule tracking on table rule add bulk operation. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-11-02examples/ip_pipeline: track table rules on addCristian Dumitrescu
Support table rule tracking on table rule add operation. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2018-10-12examples/ip_pipeline: support packet decap actionCristian Dumitrescu
Add support for packet decap table action. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2018-10-12examples/ip_pipeline: support packet tag actionCristian Dumitrescu
Add support for the packet tag table action. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2018-10-12examples/ip_pipeline: add CLI for symmetric cryptoFan Zhang
This patch updates the cli parsing of ip_pipeline application with extra symmetric crypto, port, session, and action support. Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2018-10-12examples/ip_pipeline: support VXLAN encapCristian Dumitrescu
Add CLI support for VXLAN encap. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2018-07-25examples/ip_pipeline: add help commandKevin Laatz
Add a help to the existing application cli. This will enable users to display the usage help with descriptions within the cli. Signed-off-by: Kevin Laatz <kevin.laatz@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2018-07-12examples/ip_pipeline: add link commandKevin Laatz
Add the functionality to track links in the application. This enables the user to print the name, mac address and statistics for each link in the application. Signed-off-by: Kevin Laatz <kevin.laatz@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2018-05-08examples/ip_pipeline: remove dead code in table commandFan Zhang
Coverity issue: 272567 Fixes: d75c371e9b46 ("examples/ip_pipeline: add pipeline object") Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Reviewed-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-05-08examples/ip_pipeline: fix uninitialized KNI parameterReshma Pattan
Using uninitialized value p.thread_id when calling kni_create. Initialize the kni_params object to 0. Coverity issue: 272569 Fixes: 9a408cc8ac ("examples/ip_pipeline: add KNI object") Signed-off-by: Reshma Pattan <reshma.pattan@intel.com> Reviewed-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-05-08examples/ip_pipeline: fix uninitialized link parameterFan Zhang
Coverity issue: 272575 Fixes: 133c2c6565d6 ("examples/ip_pipeline: add link object") Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Reviewed-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-05-08examples/ip_pipeline: fix leak on DSCP parsingJasvinder Singh
Close the file stream before returning from the function to avoid memory leak. Coverity issue: 272605 Fixes: 2b82ef4861c0 ("examples/ip_pipeline: add DSCP table update command") Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-04-05examples/ip_pipeline: fix load balance table actionJasvinder Singh
Fix bug in load balance action for pipeline table. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-04-05examples/ip_pipeline: add load balance action commandJasvinder Singh
Add command for load balance action. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-04-05examples/ip_pipeline: add TTL stats commandJasvinder Singh
Add command to read the ttl stats. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-04-05examples/ip_pipeline: add DSCP table update commandJasvinder Singh
Add command to update the dscp table for traffic meter and traffic manager. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-04-05examples/ip_pipeline: add meter stats commandJasvinder Singh
Add command to read traffic meter stats. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-04-05examples/ip_pipeline: add meter profile commandsJasvinder Singh
Add commands to configure the traffic meter profile. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-04-05examples/ip_pipeline: add table entry stats commandJasvinder Singh
Add command to read the pipeline table entry stats. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
2018-04-05examples/ip_pipeline: add table bulk add commandJasvinder Singh
Add cli for adding bulk entries to pipeline table. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
2018-04-05examples/ip_pipeline: add table entry delete commandJasvinder Singh
Add command to delete the pipeline table entry. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-04-05examples/ip_pipeline: add table entry commandsJasvinder Singh
Add commands to add pipeline table entries which contains match and action part. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
2018-04-05examples/ip_pipeline: add stats read commandsJasvinder Singh
Add commands to read the pipeline port in, port out and table stats. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
2018-04-05examples/ip_pipeline: add port enable and disable commandsJasvinder Singh
Add commands to enable and disable the pipeline ports. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
2018-04-05examples/ip_pipeline: add enable and disable commandsJasvinder Singh
Add commands to enable and disable the pipeline on the thread. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
2018-04-05examples/ip_pipeline: add pipeline objectJasvinder Singh
Add pipeline object implementation to the application. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-04-05examples/ip_pipeline: add action profile objectsJasvinder Singh
Add action profile object implementation to the application. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
2018-04-05examples/ip_pipeline: add KNI objectJasvinder Singh
Add kni object implementation to the application. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
2018-04-05examples/ip_pipeline: add tap objectJasvinder Singh
Add tap object implementation to the application Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
2018-04-05examples/ip_pipeline: add traffic manager objectJasvinder Singh
Add traffic manager object implementation to the application. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
2018-04-05examples/ip_pipeline: add sw queue objectJasvinder Singh
Add swq object implementation to the application. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
2018-04-05examples/ip_pipeline: add link objectJasvinder Singh
Add link object implementation to the application. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
2018-04-05examples/ip_pipeline: add mempool objectJasvinder Singh
Add mempool object implementation to the application. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
2018-04-05examples/ip_pipeline: add CLI interfaceJasvinder Singh
CLI interface allowing connectivity with external agent (e.g. telnet, netcat, Python script, etc) is added to the application. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>