From: Jingjing Wu Date: Thu, 29 Jan 2015 05:29:23 +0000 (+0800) Subject: app/testpmd: set default flow director mask X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d9d5e6f2f0ba1d1b2064f9066e598b0547c59880;p=dpdk.git app/testpmd: set default flow director mask This patch sets the default value of flow director's mask. Signed-off-by: Jingjing Wu Acked-by: Helin Zhang --- diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 69fa9d3a6a..605163b3aa 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -286,6 +286,19 @@ struct rte_fdir_conf fdir_conf = { .mode = RTE_FDIR_MODE_NONE, .pballoc = RTE_FDIR_PBALLOC_64K, .status = RTE_FDIR_REPORT_STATUS, + .mask = { + .vlan_tci_mask = 0x0, + .ipv4_mask = { + .src_ip = 0xFFFFFFFF, + .dst_ip = 0xFFFFFFFF, + }, + .ipv6_mask = { + .src_ip = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF}, + .dst_ip = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF}, + }, + .src_port_mask = 0xFFFF, + .dst_port_mask = 0xFFFF, + }, .drop_queue = 127, };