net/iavf: fix iterator for RSS LUT
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.
--- drivers/net/iavf/iavf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_ethdev.c +1 -1
@@ -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
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 LUTChange RSS LUT iterator from
uint8_ttouint16_tsince the RSS LUT size could execeed 255.Fixes 69dd4c3d0898 ("net/avf: enable queue and device")Signed-off-by Qi Zhang <[email protected]>--- drivers/net/iavf/iavf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/iavf/iavf_ethdev.c +1
-2@@ -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
Zhang, Qi Z
AppliedQuoted 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 LUTQuoted 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 LUTChange RSS LUT iterator from
uint8_ttouint16_tsince the RSS LUT size could execeed 255.
s/execeed/exceed
Quoted 7 lines
Quoted 5 lines
Fixes 69dd4c3d0898 ("net/avf: enable queue and device")Signed-off-by Qi Zhang <[email protected]>Acked-by Ting Xu <[email protected]>
Applied to dpdk-next-net-intel with above typo fix
Thanks
Qi