summaryrefslogtreecommitdiffstats
path: root/VNFs/vCGNAPT
diff options
context:
space:
mode:
authorAnand B Jyoti <anand.b.jyoti@intel.com>2017-07-20 11:49:26 +0530
committerAnand B Jyoti <anand.b.jyoti@intel.com>2017-07-21 08:14:08 +0530
commitd88705d806228f3b5688d4d9256de6d106d206df (patch)
tree14a403a1167fe668885d921cbf0dccf34fd99f27 /VNFs/vCGNAPT
parent4eca0440aee462f842567d5ef8b8796c27f4dd1b (diff)
VNFs: Correcting the fdir mode for SWLB and HWLB
JIRA: SAMPLEVNF-64 fdir conf mode was incorrectly set to RTE_FDIR_MODE_PERFECT in SWLB and also RTE_FDIR_MODE_NONE in HWLB. This patches corrects them to enable the Vector PMD. Change-Id: I2097479c948ad482dbb868e315e4a6dfc8355ef2 Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
Diffstat (limited to 'VNFs/vCGNAPT')
-rw-r--r--VNFs/vCGNAPT/init.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/VNFs/vCGNAPT/init.c b/VNFs/vCGNAPT/init.c
index 3e731839..76621d51 100644
--- a/VNFs/vCGNAPT/init.c
+++ b/VNFs/vCGNAPT/init.c
@@ -993,16 +993,11 @@ app_init_link(struct app_params *app)
My_local_conf->rxmode.mq_mode = ETH_MQ_RX_RSS;
My_local_conf->rx_adv_conf.rss_conf.rss_key = NULL;
My_local_conf->rx_adv_conf.rss_conf.rss_hf = ETH_RSS_IP | ETH_RSS_UDP | ETH_RSS_TCP;
- //My_local_conf->rx_adv_conf.rss_conf.rss_hf |= ETH_RSS_UDP;
- //My_local_conf->rx_adv_conf.rss_conf.rss_hf |= ETH_RSS_IP;
- // My_local_conf->rx_adv_conf.rss_conf.rss_hf = ETH_RSS_TCP;
- }
- //#else /*for FDIR Filter*/
- else
- {/* disable-rss */
- My_local_conf->rx_adv_conf.rss_conf.rss_hf = 0;
/* pkt-filter-mode is perfect */
My_local_conf->fdir_conf.mode = RTE_FDIR_MODE_PERFECT;
+ } else {
+ /* disable-rss */
+ My_local_conf->rx_adv_conf.rss_conf.rss_hf = 0;
}
/* Set the hardware CRC stripping to avoid double stripping of FCS in VM */