summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorXiaoyun Li <xiaoyun.li@intel.com>2018-09-30 10:29:50 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-11 18:53:48 +0200
commit2e67a7fbf3ffd64cf18a565535135794b62af74d (patch)
tree21021ee5b1ecc9ccc5c34b5368369d9afd82eee6 /examples
parent64f1c8539c8ce99214b9eb1fb728a2c6745f3300 (diff)
downloaddpdk-2e67a7fbf3ffd64cf18a565535135794b62af74d.zip
dpdk-2e67a7fbf3ffd64cf18a565535135794b62af74d.tar.gz
dpdk-2e67a7fbf3ffd64cf18a565535135794b62af74d.tar.xz
net/i40e: config flow director automatically
I40e driver needed users to config exact fdir mode to create rte_flow rules but it shouldn't. This patch allows users to create rte_flow rules without configuring fdir mode and let the driver config fdir automatically. And remove the workaround in flow filtering example. Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com> Acked-by: Beilei Xing <beilei.xing@intel.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/flow_filtering/main.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/examples/flow_filtering/main.c b/examples/flow_filtering/main.c
index b3f85b5..a73d120 100644
--- a/examples/flow_filtering/main.c
+++ b/examples/flow_filtering/main.c
@@ -131,22 +131,6 @@ init_port(void)
DEV_TX_OFFLOAD_SCTP_CKSUM |
DEV_TX_OFFLOAD_TCP_TSO,
},
- /*
- * Initialize fdir_conf of rte_eth_conf.
- * Fdir is used in flow filtering for I40e,
- * so rte_flow rules involve some fdir
- * configurations. In long term it's better
- * that drivers don't require any fdir
- * configuration for rte_flow, but we need to
- * get this workaround so that sample app can
- * run on I40e.
- */
- .fdir_conf = {
- .mode = RTE_FDIR_MODE_PERFECT,
- .pballoc = RTE_FDIR_PBALLOC_64K,
- .status = RTE_FDIR_REPORT_STATUS,
- .drop_queue = 127,
- },
};
struct rte_eth_txconf txq_conf;
struct rte_eth_rxconf rxq_conf;