Skip to contentSkip to conversation

net/igc: fix Rx RSS hash offload capabilities

PATCH Applied Alvin Zhang 3 participants 3 messages Mar 25, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/igc: fix Rx RSS hash offload capabilities

Add DEV_RX_OFFLOAD_RSS_HASH flag to the PMD's Rx offload capabilities for it supports RSS hash delivery.

Fixes 4f09bc55ac3d ("net/igc: implement device base operations")
---
 drivers/net/igc/igc_ethdev.c | 3 +++
 drivers/net/igc/igc_ethdev.h | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/net/igc/igc_ethdev.c +3 -0
index 0ea6e2a..94c8e50 100644
@@ -341,6 +341,9 @@ static int eth_igc_vlan_tpid_set(struct rte_eth_dev *dev,
 
 	PMD_INIT_FUNC_TRACE();
 
+	if (dev->data->dev_conf.rxmode.mq_mode & ETH_MQ_RX_RSS_FLAG)
+		dev->data->dev_conf.rxmode.offloads |= DEV_RX_OFFLOAD_RSS_HASH;
+
 	ret  = igc_check_mq_mode(dev);
 	if (ret != 0)
 		return ret;
drivers/net/igc/igc_ethdev.h +2 -1
index a09debf..6f658a0 100644
@@ -67,7 +67,8 @@
 	DEV_RX_OFFLOAD_SCTP_CKSUM  | \
 	DEV_RX_OFFLOAD_JUMBO_FRAME | \
 	DEV_RX_OFFLOAD_KEEP_CRC    | \
-	DEV_RX_OFFLOAD_SCATTER)
+	DEV_RX_OFFLOAD_SCATTER     | \
+	DEV_RX_OFFLOAD_RSS_HASH)
 
 #define IGC_TX_OFFLOAD_ALL	(    \
 	DEV_TX_OFFLOAD_VLAN_INSERT | \
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Zhang, AlvinX <[email protected]>
Sent: Thursday, March 25, 2021 09:52
To: Guo, Jia <[email protected]>; Wang, Haiyue <[email protected]>
Cc: [email protected]; Zhang, AlvinX <[email protected]>; [email protected]
Subject: [PATCH] net/igc: fix Rx RSS hash offload capabilities

Add DEV_RX_OFFLOAD_RSS_HASH flag to the PMD's Rx offload capabilities for it supports RSS hash delivery.

Quoted 9 lines
Fixes 4f09bc55ac3d ("net/igc: implement device base operations")
---
 drivers/net/igc/igc_ethdev.c | 3 +++
 drivers/net/igc/igc_ethdev.h | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
Quoted 2 lines

--
1.8.3.1

Applied
#2 lore raw
Quoted 23 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Wang, Haiyue
Sent: Thursday, March 25, 2021 10:52 AM
To: Zhang, AlvinX <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/igc: fix Rx RSS hash offload capabilities

Quoted 14 lines

-----Original Message-----
From: Zhang, AlvinX <[email protected]>
Sent: Thursday, March 25, 2021 09:52
To: Guo, Jia <[email protected]>; Wang, Haiyue <[email protected]>
Cc: [email protected]; Zhang, AlvinX <[email protected]>; [email protected]
Subject: [PATCH] net/igc: fix Rx RSS hash offload capabilities

Add DEV_RX_OFFLOAD_RSS_HASH flag to the PMD's Rx offload capabilities for it supports RSS hash delivery.

Fixes 4f09bc55ac3d ("net/igc: implement device base operations")
Quoted 8 lines
Quoted 6 lines
---
 drivers/net/igc/igc_ethdev.c | 3 +++
 drivers/net/igc/igc_ethdev.h | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

Applied to dpdk-next-net-intel.

Thanks
Qi