summaryrefslogtreecommitdiffstats
path: root/src/main_dpdk.cpp
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-12-25 14:19:59 +0200
committerIdo Barnea <ibarnea@cisco.com>2016-12-25 14:19:59 +0200
commitc25e1862e21807ee2d4f1f356e5a6970fd598edf (patch)
treeebb14194d95b308e04d193ae874f605b02b88665 /src/main_dpdk.cpp
parent5f825e20bae803984b35f9e963a4031544f065d5 (diff)
Allow running x710 in --VM mode
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
Diffstat (limited to 'src/main_dpdk.cpp')
-rw-r--r--src/main_dpdk.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp
index 95ab22b1..e1ddc021 100644
--- a/src/main_dpdk.cpp
+++ b/src/main_dpdk.cpp
@@ -6383,6 +6383,11 @@ static struct fdir_hw_id_params_t fdir_hw_id_rule_params[512];
// So, the rule will apply if packet has either the correct ttl or IP ID, depending if we are in statfull or stateless.
void CTRexExtendedDriverBase40G::add_del_rules(enum rte_filter_op op, uint8_t port_id, uint16_t type, uint8_t ttl
, uint16_t ip_id, uint8_t l4_proto, int queue, uint16_t stat_idx) {
+ // We want to allow the use of X710 in "VM mode", for performance testing.
+ // In this mode, we don't want any hardware rules. Everything done by software.
+ if ( get_vm_one_queue_enable())
+ return;
+
int ret=rte_eth_dev_filter_supported(port_id, RTE_ETH_FILTER_FDIR);
static int filter_soft_id = 0;