Host port id parameter is added to "flow configure" command.

Signed-off-by: Viacheslav Ovsiienko <viachesl...@nvidia.com>
---
 app/test-pmd/cmdline_flow.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index 88108498e0..b88756903b 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -228,6 +228,7 @@ enum index {
        CONFIG_METERS_NUMBER,
        CONFIG_CONN_TRACK_NUMBER,
        CONFIG_FLAGS,
+       CONFIG_HOST_PORT,
 
        /* Indirect action arguments */
        INDIRECT_ACTION_CREATE,
@@ -1098,6 +1099,7 @@ static const enum index next_config_attr[] = {
        CONFIG_METERS_NUMBER,
        CONFIG_CONN_TRACK_NUMBER,
        CONFIG_FLAGS,
+       CONFIG_HOST_PORT,
        END,
        ZERO,
 };
@@ -2719,6 +2721,14 @@ static const struct token token_list[] = {
                .args = ARGS(ARGS_ENTRY(struct buffer,
                                        args.configure.port_attr.flags)),
        },
+       [CONFIG_HOST_PORT] = {
+               .name = "host_port",
+               .help = "host port for shared objects",
+               .next = NEXT(next_config_attr,
+                            NEXT_ENTRY(COMMON_UNSIGNED)),
+               .args = ARGS(ARGS_ENTRY(struct buffer,
+                                       args.configure.port_attr.host_port_id)),
+       },
        /* Top-level command. */
        [PATTERN_TEMPLATE] = {
                .name = "pattern_template",
-- 
2.18.1

Reply via email to