pktgen: enable RSS on versions of DPDK after 18.05

Message ID 1559857522-339-1-git-send-email-drc@linux.vnet.ibm.com (mailing list archive)
State Not Applicable, archived
Headers
Series pktgen: enable RSS on versions of DPDK after 18.05 |

Checks

Context Check Description
ci/Intel-compilation fail apply issues
ci/checkpatch success coding style OK

Commit Message

David Christensen June 6, 2019, 9:45 p.m. UTC
  When backwards compatibility was added for earlier releases of DPDK,
default enablement of RSS was lost for versions of DPDK after 18.05.
This change restores the old behavior and enables RSS by default.

Fixes: ae81c62f194c ("backward compat to 18.02 at least")
Cc: keith.wiles@intel.com

Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
---
 app/pktgen-port-cfg.c | 6 ++++++
 1 file changed, 6 insertions(+)
  

Comments

Wiles, Keith June 6, 2019, 10:07 p.m. UTC | #1
> On Jun 6, 2019, at 4:45 PM, David Christensen <drc@linux.vnet.ibm.com> wrote:
> 
> When backwards compatibility was added for earlier releases of DPDK,
> default enablement of RSS was lost for versions of DPDK after 18.05.
> This change restores the old behavior and enables RSS by default.
> 
> Fixes: ae81c62f194c ("backward compat to 18.02 at least")
> Cc: keith.wiles@intel.com
> 
> Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
> ---
> app/pktgen-port-cfg.c | 6 ++++++
> 1 file changed, 6 insertions(+)
> 
> diff --git a/app/pktgen-port-cfg.c b/app/pktgen-port-cfg.c
> index fb2873e..b5bded7 100644
> --- a/app/pktgen-port-cfg.c
> +++ b/app/pktgen-port-cfg.c
> @@ -64,6 +64,12 @@ static struct rte_eth_conf default_port_conf = {
> 		.offloads = DEV_RX_OFFLOAD_CRC_STRIP,
> #endif
> 	},
> +	.rx_adv_conf = {
> +		.rss_conf = {
> +			.rss_key = NULL,
> +			.rss_hf = ETH_RSS_IP,
> +		},
> +	},

Thanks for the patch.
> 	.txmode = {
> 		.mq_mode = ETH_MQ_TX_NONE,
> 	},
> -- 
> 1.8.3.1
> 

Regards,
Keith
  

Patch

diff --git a/app/pktgen-port-cfg.c b/app/pktgen-port-cfg.c
index fb2873e..b5bded7 100644
--- a/app/pktgen-port-cfg.c
+++ b/app/pktgen-port-cfg.c
@@ -64,6 +64,12 @@  static struct rte_eth_conf default_port_conf = {
 		.offloads = DEV_RX_OFFLOAD_CRC_STRIP,
 #endif
 	},
+	.rx_adv_conf = {
+		.rss_conf = {
+			.rss_key = NULL,
+			.rss_hf = ETH_RSS_IP,
+		},
+	},
 	.txmode = {
 		.mq_mode = ETH_MQ_TX_NONE,
 	},