Skip to contentSkip to conversation

net/iavf: fix iterator for RSS LUT

PATCH In review Qi Zhang 2 participants 3 messages Sep 21, 2020 Network drivers

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH 1/1 net/iavf: fix iterator for RSS LUT

Change RSS LUT iterator from uint8_t to uint16_t since the RSS LUT size could execeed 255.

Fixes 69dd4c3d0898 ("net/avf: enable queue and device")
---
 drivers/net/iavf/iavf_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_ethdev.c +1 -1
index 6bb915d81..440da7d76 100644
@@ -157,7 +157,7 @@ iavf_init_rss(struct iavf_adapter *adapter)
 {
 	struct iavf_info *vf =  IAVF_DEV_PRIVATE_TO_VF(adapter);
 	struct rte_eth_rss_conf *rss_conf;
-	uint8_t i, j, nb_q;
+	uint16_t i, j, nb_q;
 	int ret;
 
 	rss_conf = &adapter->eth_dev->data->dev_conf.rx_adv_conf.rss_conf;
Signature · 1 line
2.25.4
Acked-by on v1 1/1
#1 lore raw
Quoted 32 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, September 21, 2020 4:31 PM
To: Xu, Ting <[email protected]>
Cc: [email protected]; Xing, Beilei <[email protected]>; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [PATCH] net/iavf: fix iterator for RSS LUT

Change RSS LUT iterator from uint8_t to uint16_t since the RSS LUT size could execeed 255.

Fixes 69dd4c3d0898 ("net/avf: enable queue and device")
---
 drivers/net/iavf/iavf_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_ethdev.c +1 -2
index 6bb915d81..440da7d76 100644
@@ -157,7 +157,7 @@ iavf_init_rss(struct iavf_adapter *adapter)  {
 	struct iavf_info *vf =  IAVF_DEV_PRIVATE_TO_VF(adapter);
 	struct rte_eth_rss_conf *rss_conf;
-	uint8_t i, j, nb_q;
+	uint16_t i, j, nb_q;
 	int ret;
 
 	rss_conf = &adapter->eth_dev->data->dev_conf.rx_adv_conf.rss_conf;
--
Quoted 1 line

2.25.4

author Applied
#2 lore raw
Quoted 19 lines

-----Original Message-----
From: Xu, Ting <[email protected]>
Sent: Monday, September 21, 2020 4:32 PM
To: Zhang, Qi Z <[email protected]>
Cc: [email protected]; Xing, Beilei <[email protected]>; [email protected]
Subject: RE: [PATCH] net/iavf: fix iterator for RSS LUT

Quoted 10 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, September 21, 2020 4:31 PM
To: Xu, Ting <[email protected]>
Cc: [email protected]; Xing, Beilei <[email protected]>; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [PATCH] net/iavf: fix iterator for RSS LUT

Change RSS LUT iterator from uint8_t to uint16_t since the RSS LUT size could execeed 255.

s/execeed/exceed

Quoted 7 lines
Quoted 5 lines
Fixes 69dd4c3d0898 ("net/avf: enable queue and device")

Applied to dpdk-next-net-intel with above typo fix

Thanks
Qi

Quoted 1 line