Skip to contentSkip to conversation

pktgen: enable RSS on versions of DPDK after 18.05

PATCH In review David Christensen 2 participants 2 messages Jun 6, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pktgen: enable RSS on versions of DPDK after 18.05

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")
---
 app/pktgen-port-cfg.c | 6 ++++++
 1 file changed, 6 insertions(+)
app/pktgen-port-cfg.c +6 -0
index fb2873e..b5bded7 100644
@@ -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,
 	},
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 21 lines · David Christensen

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")

---
app/pktgen-port-cfg.c | 6 ++++++

1 file changed, 6 insertions(+)
app/pktgen-port-cfg.c +0 -0
index fb2873e..b5bded7 100644

app/pktgen-port-cfg.c static struct rte_eth_conf default_port_conf = { · line 72

Quoted 9 lines
app/pktgen-port-cfg.c +6 -0
@@ -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.

Quoted 6 lines
app/pktgen-port-cfg.c +0 -0
 	.txmode = {
 		.mq_mode = ETH_MQ_TX_NONE,
 	},
Signature · 1 line
1.8.3.1

Regards,
Keith