summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorWenzhuo Lu <wenzhuo.lu@intel.com>2015-10-26 13:27:30 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-10-29 00:02:17 +0100
commit9276b982ae22c880d40bae9cac6252c6b8838c93 (patch)
tree77a67a425b0a2bef00737dd50c4f91c3606d31ef /app
parent47b3ac6b45a1c2bef5b620d3bf67a7ffeb545319 (diff)
downloaddpdk-9276b982ae22c880d40bae9cac6252c6b8838c93.zip
dpdk-9276b982ae22c880d40bae9cac6252c6b8838c93.tar.gz
dpdk-9276b982ae22c880d40bae9cac6252c6b8838c93.tar.xz
app/testpmd: add parameters for new flow director modes
For testpmd CLI's parameter pkt-filter-mode, there're new values supported for fdir new modes, perfect-mac-vlan, perfect-tunnel. Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Diffstat (limited to 'app')
-rw-r--r--app/test-pmd/parameters.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c
index fe78723..4b421c8 100644
--- a/app/test-pmd/parameters.c
+++ b/app/test-pmd/parameters.c
@@ -707,12 +707,17 @@ launch_args_parse(int argc, char** argv)
RTE_FDIR_MODE_SIGNATURE;
else if (!strcmp(optarg, "perfect"))
fdir_conf.mode = RTE_FDIR_MODE_PERFECT;
+ else if (!strcmp(optarg, "perfect-mac-vlan"))
+ fdir_conf.mode = RTE_FDIR_MODE_PERFECT_MAC_VLAN;
+ else if (!strcmp(optarg, "perfect-tunnel"))
+ fdir_conf.mode = RTE_FDIR_MODE_PERFECT_TUNNEL;
else if (!strcmp(optarg, "none"))
fdir_conf.mode = RTE_FDIR_MODE_NONE;
else
rte_exit(EXIT_FAILURE,
"pkt-mode-invalid %s invalid - must be: "
- "none, signature or perfect\n",
+ "none, signature, perfect, perfect-mac-vlan"
+ " or perfect-tunnel\n",
optarg);
}
if (!strcmp(lgopts[opt_idx].name,