From: Wenzhuo Lu Date: Mon, 26 Oct 2015 05:27:30 +0000 (+0800) Subject: app/testpmd: add parameters for new flow director modes X-Git-Tag: spdx-start~8298 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9276b982ae22c880d40bae9cac6252c6b8838c93;p=dpdk.git 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 Acked-by: Konstantin Ananyev --- diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c index fe7872326a..4b421c834e 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,