VNFs: Correcting the fdir mode for SWLB and HWLB 63/37863/4
authorAnand B Jyoti <anand.b.jyoti@intel.com>
Thu, 20 Jul 2017 06:19:26 +0000 (11:49 +0530)
committerAnand B Jyoti <anand.b.jyoti@intel.com>
Fri, 21 Jul 2017 02:44:08 +0000 (08:14 +0530)
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>
VNFs/vACL/init.c
VNFs/vCGNAPT/init.c
VNFs/vFW/init.c

index 71dd50e..dda6277 100644 (file)
@@ -706,11 +706,12 @@ 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;
-                        } 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 */
                p_link->conf.rxmode.hw_strip_crc = 1;
index 3e73183..76621d5 100644 (file)
@@ -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 */
index f5d457a..4e98b33 100644 (file)
@@ -730,10 +730,11 @@ app_init_link(struct app_params *app)
                        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;
-               } 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