app/testpmd: fix queue Rx and Tx offload reconfig cmd
PATCH 1/1 app/testpmd: fix queue Rx and Tx offload reconfig cmd
From: Dapeng Yu <[email protected]>
Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the rte_eth_dev_configure() to reconfigure device.
The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted, rte_eth_dev_configure() will not be called again.
--- app/test-pmd/cmdline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
app/test-pmd/cmdline.c +2 -2
@@ -15626,7 +15626,7 @@ cmd_config_per_queue_rx_offload_parsed(void *parsed_result,else port->rx_conf[queue_id].offloads &= ~single_offload; -cmd_reconfig_device_queue (port_id,1 ,1 ); +cmd_reconfig_device_queue (port_id,0 ,1 ); }cmdline_parse_inst_t cmd_config_per_queue_rx_offload = {
@@ -16044,7 +16044,7 @@ cmd_config_per_queue_tx_offload_parsed(void *parsed_result,else port->tx_conf[queue_id].offloads &= ~single_offload; -cmd_reconfig_device_queue (port_id,1 ,1 ); +cmd_reconfig_device_queue (port_id,0 ,1 ); }cmdline_parse_inst_t cmd_config_per_queue_tx_offload = {
Signature · 1 line
2.27.0
Hi
Quoted 48 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Thursday, April 1, 2021 16:29
To: Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Yu, DapengX <[email protected]>; [email protected]
Subject: [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdFrom: Dapeng Yu <[email protected]>
Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the
rte_eth_dev_configure()to reconfigure device.The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted,
rte_eth_dev_configure()will not be called again.Fixes c73a9071877a ("app/testpmd: add commands to test new offload API")Signed-off-by Dapeng Yu <[email protected]>--- app/test-pmd/cmdline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)app/test-pmd/cmdline.c index renamed from app/test-pmd/cmdline.c +0
-0
14110eb2e..b49e9f52b100644app/test-pmd/cmdline.c +1
-1@@ -15626,7 +15626,7 @@ cmd_config_per_queue_rx_offload_parsed(void *parsed_result, else port->rx_conf[queue_id].offloads &= ~single_offload; -cmd_reconfig_device_queue (port_id,1 ,1 ); +cmd_reconfig_device_queue (port_id,0 ,1 ); }
cmdline_parse_inst_tcmd_config_per_queue_rx_offload= { @@ -16044,7
+16044,7 @@ cmd_config_per_queue_tx_offload_parsed(void*parsed_result,app/test-pmd/cmdline.c +1
-2else port->tx_conf[queue_id].offloads &= ~single_offload; -cmd_reconfig_device_queue (port_id,1 ,1 ); +cmd_reconfig_device_queue (port_id,0 ,1 ); }cmdline_parse_inst_t cmd_config_per_queue_tx_offload = { --
Quoted 1 line
2.27.0
Quoted 9 lines · On 4/1/2021 9:28 AM, [email protected] wrote:
From: Dapeng Yu <[email protected]>
Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the
rte_eth_dev_configure()to reconfigure device.The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted,
rte_eth_dev_configure()will not be called again.
Just to clarify the impact, was calling 'rte_eth_dev_configure()' causing any problem, is this fixing any issue? Or is this patch an optimization to eliminate an unnecessary call?
Quoted 31 lines
Fixes c73a9071877a ("app/testpmd: add commands to test new offload API")Signed-off-by Dapeng Yu <[email protected]>--- app/test-pmd/cmdline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)app/test-pmd/cmdline.c +2
-2@@ -15626,7 +15626,7 @@ cmd_config_per_queue_rx_offload_parsed(void *parsed_result,else port->rx_conf[queue_id].offloads &= ~single_offload; -cmd_reconfig_device_queue (port_id,1 ,1 ); +cmd_reconfig_device_queue (port_id,0 ,1 ); }cmdline_parse_inst_t cmd_config_per_queue_rx_offload = {@@ -16044,7 +16044,7 @@ cmd_config_per_queue_tx_offload_parsed(void *parsed_result,else port->tx_conf[queue_id].offloads &= ~single_offload; -cmd_reconfig_device_queue (port_id,1 ,1 ); +cmd_reconfig_device_queue (port_id,0 ,1 ); }cmdline_parse_inst_t cmd_config_per_queue_tx_offload = {
Quoted 17 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Thursday, April 8, 2021 11:42 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 5 lines · On 4/1/2021 9:28 AM, [email protected] wrote:
From: Dapeng Yu <[email protected]>
Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the
rte_eth_dev_configure()to reconfigure device.
Quoted 9 lines
Quoted 4 lines
The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted,
rte_eth_dev_configure()will not be called again.Just to clarify the impact, was calling '
rte_eth_dev_configure()' causing any problem, is this fixing any issue?
Or is this patch an optimization to eliminate an unnecessary call?
This patch does fix an issue, and it also eliminates an unnecessary call.
The issue is:
per-queue configuration, for example: port 0 rxq 0 rx_offload jumbo_frame off triggers the per-device configuration change: the RSS key is reconfigured and changes after rte_eth_dev_configure() is called on ICE PMD driver, that cause a test case failure.
There is an unnecessary call in original implementation because both cmd_config_per_queue_rx_offload_parsed() and cmd_config_per_queue_tx_offload_parsed() does not update the "port->dev_conf" which hold the port configuration, therefore there is no need to call rte_eth_dev_configure().
Quoted 38 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 13:25
To: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 9 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Thursday, April 8, 2021 11:42 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 5 lines
Quoted 4 lines · On 4/1/2021 9:28 AM, [email protected] wrote:
From: Dapeng Yu <[email protected]>
Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the
rte_eth_dev_configure()to reconfiguredevice.
Quoted 10 lines
Quoted 5 lines
The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted,
rte_eth_dev_configure()will not be called again.Just to clarify the impact, was calling '
rte_eth_dev_configure()' causing any problem, is this fixing any issue?
Or is this patch an optimization to eliminate an unnecessary call?
Quoted 8 lines
This patch does fix an issue, and it also eliminates an unnecessary call.
The issue is:
per-queue configuration, for example: port 0 rxq 0rx_offloadjumbo_frameoff triggers the per-device configuration change: the RSS key is reconfigured and changes afterrte_eth_dev_configure()is called on ICE PMD driver, that cause a test case failure.
Hmmm. I agree on the following. It doesn't need dev_configure. That's why I give you ack.
But your issue. Shouldn't you fix the driver? The vsi->rss_key[] just updated itself as a random value when dev_conf doesn't contain one. But your case is dev_conf doesn't contain new rss key, but vsi->rss_key is not null. In this case, it should keep the same not get a new random key.
Quoted 5 lines
There is an unnecessary call in original implementation because both
cmd_config_per_queue_rx_offload_parsed()andcmd_config_per_queue_tx_offload_parsed()
does not update the "port->dev_conf" which hold the port configuration, therefore there is no need to callrte_eth_dev_configure().
Quoted 60 lines
-----Original Message-----
From: Li, Xiaoyun <[email protected]>
Sent: Friday, April 9, 2021 3:50 PM
To: Yu, DapengX <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 38 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 13:25
To: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 9 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Thursday, April 8, 2021 11:42 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 6 lines
Quoted 5 lines · On 4/1/2021 9:28 AM, [email protected] wrote:
From: Dapeng Yu <[email protected]>
Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the
rte_eth_dev_configure()to reconfiguredevice.
Quoted 11 lines
Quoted 6 lines
The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted,
rte_eth_dev_configure()will not be called again.Just to clarify the impact, was calling '
rte_eth_dev_configure()' causing any problem, is this fixing any issue?
Or is this patch an optimization to eliminate an unnecessary call?Quoted 8 lines
This patch does fix an issue, and it also eliminates an unnecessary call.
The issue is:
per-queue configuration, for example: port 0 rxq 0rx_offloadjumbo_frameoff triggers the per-device configuration change: the RSS key is reconfigured and changes afterrte_eth_dev_configure()is called on ICE PMD driver, that cause a test case failure.
Quoted 8 lines
Hmmm. I agree on the following. It doesn't need
dev_configure. That's why I give you ack.But your issue. Shouldn't you fix the driver? The vsi->rss_key[] just updated itself as a random value when
dev_confdoesn't contain one.
But your case isdev_confdoesn't contain new rss key, butvsi->rss_keyis not null. In this case, it should keep the same not get a new random key.
In current implementation, dev->data->dev_conf.rx_adv_conf.rss_conf in PMD
does not hold the rss_key value if user does not set it in the input parameter of rte_eth_dev_configure().
Even if PMD generate one automatically, it will not be saved in dev->data->dev_conf.rx_adv_conf.rss_conf.
When user want to get rss_key, it will be retrieved on the fly from hardware, but not from any variable in PMD.
So PMD (ice and i40e) think only rss_key which is set by user via rte_eth_dev_configure() can be reused when port is reconfigured.
If it is not present, PMD will generate one by itself anyway even if it is present in vsi->rss_key.
I don’t think this behavior is wrong, so did not fix ice PMD.
Quoted 5 lines
Quoted 5 lines
There is an unnecessary call in original implementation because both
cmd_config_per_queue_rx_offload_parsed()andcmd_config_per_queue_tx_offload_parsed()
does not update the "port->dev_conf" which hold the port configuration, therefore there is no need to callrte_eth_dev_configure().
Quoted 90 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 18:29
To: Li, Xiaoyun <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 58 lines
-----Original Message-----
From: Li, Xiaoyun <[email protected]>
Sent: Friday, April 9, 2021 3:50 PM
To: Yu, DapengX <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 38 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 13:25
To: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 9 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Thursday, April 8, 2021 11:42 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 6 lines
Quoted 5 lines · On 4/1/2021 9:28 AM, [email protected] wrote:
From: Dapeng Yu <[email protected]>
Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the
rte_eth_dev_configure()to reconfiguredevice.
Quoted 11 lines
Quoted 6 lines
The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted,
rte_eth_dev_configure()will not be called again.Just to clarify the impact, was calling '
rte_eth_dev_configure()' causing any problem, is this fixing any issue?
Or is this patch an optimization to eliminate an unnecessary call?Quoted 8 lines
This patch does fix an issue, and it also eliminates an unnecessary call.
The issue is:
per-queue configuration, for example: port 0 rxq 0rx_offloadjumbo_frameoff triggers the per-device configuration change: the RSS key is reconfigured and changes afterrte_eth_dev_configure()is called on ICE PMD driver, that cause a test case failure.Quoted 7 lines
Hmmm. I agree on the following. It doesn't need
dev_configure. That's why I give you ack.But your issue. Shouldn't you fix the driver? The vsi->rss_key[] just updated itself as a random value when
dev_confdoesn't contain one. But your case isdev_confdoesn't contain new rss key, butvsi->rss_keyis not null. In this case, it should keep the same not get a newrandom key.
Quoted 1 line
In current implementation,
dev->data->dev_conf.rx_adv_conf.rss_confin PMD does not hold therss_keyvalue if user does not set it in the input parameter ofrte_eth_dev_configure().Even if PMD generate one automatically, it will not be saved in dev->data-
Quoted 1 line
dev_conf.rx_adv_conf.rss_conf.
When user want to get
rss_key, it will be retrieved on the fly from hardware, but not from any variable in PMD.
Quoted 7 lines
So PMD (ice and i40e) think only
rss_keywhich is set by user viarte_eth_dev_configure()can be reused when port is reconfigured.If it is not present, PMD will generate one by itself anyway even if it is present in
vsi->rss_key.I don’t think this behavior is wrong, so did not fix ice PMD.
If you want to recover the rss key. The driver should store the key in vsi->rss_key also in ice_rss_hash_update(). Then when user not config rss_key in rss_conf and vs->rss_key is not 0, you should set the original value not a random value to hw.
Otherwise, you are assuming the behavior rss to different queues is right since user want random key. It's not an issue.
Any scenario, it's not testpmd issue. Please withdraw your patch.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
There is an unnecessary call in original implementation because both
cmd_config_per_queue_rx_offload_parsed()andcmd_config_per_queue_tx_offload_parsed()
does not update the "port->dev_conf" which hold the port configuration, therefore there is no need to callrte_eth_dev_configure().
Quoted 93 lines · Xiaoyun
Quoted 93 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 18:29
To: Li, Xiaoyun <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 58 lines
-----Original Message-----
From: Li, Xiaoyun <[email protected]>
Sent: Friday, April 9, 2021 3:50 PM
To: Yu, DapengX <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 38 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 13:25
To: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 9 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Thursday, April 8, 2021 11:42 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 6 lines
Quoted 5 lines · On 4/1/2021 9:28 AM, [email protected] wrote:
From: Dapeng Yu <[email protected]>
Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the
rte_eth_dev_configure()to reconfiguredevice.
Quoted 11 lines
Quoted 6 lines
The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted,
rte_eth_dev_configure()will not be called again.Just to clarify the impact, was calling '
rte_eth_dev_configure()' causing any problem, is this fixing any issue?
Or is this patch an optimization to eliminate an unnecessary call?Quoted 8 lines
This patch does fix an issue, and it also eliminates an unnecessary call.
The issue is:
per-queue configuration, for example: port 0 rxq 0rx_offloadjumbo_frameoff triggers the per-device configuration change: the RSS key is reconfigured and changes afterrte_eth_dev_configure()is called on ICE PMD driver, that cause a test case failure.Quoted 7 lines
Hmmm. I agree on the following. It doesn't need
dev_configure. That's why I give you ack.But your issue. Shouldn't you fix the driver? The vsi->rss_key[] just updated itself as a random value when
dev_confdoesn't contain one. But your case isdev_confdoesn't contain new rss key, butvsi->rss_keyis not null. In this case, it should keep the same not get a newrandom key.
Quoted 1 line
In current implementation,
dev->data->dev_conf.rx_adv_conf.rss_confin PMD does not hold therss_keyvalue if user does not set it in the input parameter ofrte_eth_dev_configure().Even if PMD generate one automatically, it will not be saved in dev->data-
Quoted 1 line
dev_conf.rx_adv_conf.rss_conf.
When user want to get
rss_key, it will be retrieved on the fly from hardware, but not from any variable in PMD.So PMD (ice and i40e) think only
rss_keywhich is set by user viarte_eth_dev_configure()can be reused when port is reconfigured.
Quoted 7 lines
Quoted 4 lines
If it is not present, PMD will generate one by itself anyway even if it is present in
vsi->rss_key.I don’t think this behavior is wrong, so did not fix ice PMD.
If you want to recover the rss key. The driver should store the key in
vsi->rss_keyalso inice_rss_hash_update(). Then when user not configrss_keyinrss_confandvs->rss_keyis not 0, you should set the original value not a random value to hw.
+1
Quoted 11 lines
Otherwise, you are assuming the behavior rss to different queues is right since user want random key. It's not an issue.
Any scenario, it's not testpmd issue. Please withdraw your patch.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
There is an unnecessary call in original implementation because both
cmd_config_per_queue_rx_offload_parsed()andcmd_config_per_queue_tx_offload_parsed()
does not update the "port->dev_conf" which hold the port configuration, therefore there is no need to callrte_eth_dev_configure().
Quoted 114 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Monday, April 12, 2021 8:46 PM
To: Li, Xiaoyun <[email protected]>; Yu, DapengX <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 71 lines · Xiaoyun
Quoted 71 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 18:29
To: Li, Xiaoyun <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 58 lines
-----Original Message-----
From: Li, Xiaoyun <[email protected]>
Sent: Friday, April 9, 2021 3:50 PM
To: Yu, DapengX <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 46 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 13:25
To: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 9 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Thursday, April 8, 2021 11:42 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 6 lines
Quoted 5 lines · On 4/1/2021 9:28 AM, [email protected] wrote:
From: Dapeng Yu <[email protected]>
Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the
rte_eth_dev_configure()to reconfiguredevice.
Quoted 11 lines
Quoted 6 lines
The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted,
rte_eth_dev_configure()will not be called again.Just to clarify the impact, was calling '
rte_eth_dev_configure()' causing any problem, is this fixing any issue?
Or is this patch an optimization to eliminate an unnecessary call?This patch does fix an issue, and it also eliminates an unnecessary call.
The issue is:
per-queue configuration, for example: port 0 rxq 0rx_offloadjumbo_frameoff triggers the per-device configuration change: the RSS key is reconfigured and changes afterrte_eth_dev_configure()is called on ICE PMD driver, that cause a test case failure.Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Hmmm. I agree on the following. It doesn't need
dev_configure. That's why I give you ack.But your issue. Shouldn't you fix the driver? The vsi->rss_key[] just updated itself as a random value when
dev_confdoesn't containone.
Quoted 25 lines
Quoted 24 lines
Quoted 3 lines
But your case is
dev_confdoesn't contain new rss key, butvsi->rss_keyis not null. In this case, it should keep the same notvsi->geta newrandom key.
Quoted 1 line
In current implementation,
dev->data->dev_conf.rx_adv_conf.rss_confin PMD does not hold therss_keyvalue if user does not set it in the input parameter ofrte_eth_dev_configure().Even if PMD generate one automatically, it will not be saved in dev->data-
Quoted 1 line
dev_conf.rx_adv_conf.rss_conf.
When user want to get
rss_key, it will be retrieved on the fly from hardware, but not from any variable in PMD.So PMD (ice and i40e) think only
rss_keywhich is set by user viarte_eth_dev_configure()can be reused when port is reconfigured.If it is not present, PMD will generate one by itself anyway even if it is present in
vsi->rss_key.I don’t think this behavior is wrong, so did not fix ice PMD.
Quoted 7 lines
Quoted 2 lines
If you want to recover the rss key. The driver should store the key in vsi-
rss_keyalso inice_rss_hash_update(). Then when user not configrss_keyin
rss_confandvs->rss_keyis not 0, you should set the original value not a random value to hw.Quoted 1 line
+1
The background of the patch is:
A test case expects that RSS feature makes the same packet flow into same queue, after queue is reconfigured or device is reconfigured, even if user does not use a RSS key to configure a device in advance.
The test case is actually over testing, and tester has agreed to modify test plan to make it pass. If we only care about the test case, testpmd and ice PMD does not need any patch.
But tester found a hidden problem when run the above case:
Configure per queue rx offloading and per queue tx offloading command trigger the rte_eth_dev_configure() to reconfigure device.
The problem for the above test case can be resolved by setting RSS key in advance. And looks like no imminent risk to deprecate the patch.
But it does not mean that the per queue command triggering device reconfiguration is correct. So leave behind the test case, the patch is still reasonable.
@Ferruh, if there is still concern for this patch, please comments on it, thanks! If there is no objection, I will change the patch back to new state, and move on.
Quoted 15 lines
Quoted 2 lines
Otherwise, you are assuming the behavior rss to different queues is right
since user want random key. It's not an issue.
Quoted 10 lines
Any scenario, it's not testpmd issue. Please withdraw your patch.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
There is an unnecessary call in original implementation because both
cmd_config_per_queue_rx_offload_parsed()andcmd_config_per_queue_tx_offload_parsed()
does not update the "port->dev_conf" which hold the port configuration, therefore there is no need to call
rte_eth_dev_configure().Quoted 1 line
Quoted 134 lines · DapengX
Quoted 114 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Monday, April 12, 2021 8:46 PM
To: Li, Xiaoyun <[email protected]>; Yu, DapengX <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 71 lines · Xiaoyun
Quoted 71 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 18:29
To: Li, Xiaoyun <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 58 lines
-----Original Message-----
From: Li, Xiaoyun <[email protected]>
Sent: Friday, April 9, 2021 3:50 PM
To: Yu, DapengX <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 46 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 13:25
To: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 9 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Thursday, April 8, 2021 11:42 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 6 lines
Quoted 5 lines · On 4/1/2021 9:28 AM, [email protected] wrote:
From: Dapeng Yu <[email protected]>
Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the
rte_eth_dev_configure()to reconfiguredevice.
Quoted 11 lines
Quoted 6 lines
The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted,
rte_eth_dev_configure()will not be called again.Just to clarify the impact, was calling '
rte_eth_dev_configure()' causing any problem, is this fixing any issue?
Or is this patch an optimization to eliminate an unnecessary call?This patch does fix an issue, and it also eliminates an unnecessary call.
The issue is:
per-queue configuration, for example: port 0 rxq 0rx_offloadjumbo_frameoff triggers the per-device configuration change: the RSS key is reconfigured and changes afterrte_eth_dev_configure()is called on ICE PMD driver, that cause a test case failure.Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Hmmm. I agree on the following. It doesn't need
dev_configure. That's why I give you ack.But your issue. Shouldn't you fix the driver? The vsi->rss_key[] just updated itself as a random value when
dev_confdoesn't containone.
Quoted 25 lines
Quoted 24 lines
Quoted 3 lines
But your case is
dev_confdoesn't contain new rss key, butvsi->rss_keyis not null. In this case, it should keep the same notvsi->geta newrandom key.
Quoted 1 line
In current implementation,
dev->data->dev_conf.rx_adv_conf.rss_confin PMD does not hold therss_keyvalue if user does not set it in the input parameter ofrte_eth_dev_configure().Even if PMD generate one automatically, it will not be saved in dev->data-
Quoted 1 line
dev_conf.rx_adv_conf.rss_conf.
When user want to get
rss_key, it will be retrieved on the fly from hardware, but not from any variable in PMD.So PMD (ice and i40e) think only
rss_keywhich is set by user viarte_eth_dev_configure()can be reused when port is reconfigured.If it is not present, PMD will generate one by itself anyway even if it is present in
vsi->rss_key.I don’t think this behavior is wrong, so did not fix ice PMD.
Quoted 7 lines
Quoted 2 lines
If you want to recover the rss key. The driver should store the key in vsi-
rss_keyalso inice_rss_hash_update(). Then when user not configrss_keyin
rss_confandvs->rss_keyis not 0, you should set the original value not a random value to hw.Quoted 1 line
+1
The background of the patch is:
A test case expects that RSS feature makes the same packet flow into same queue, after queue is reconfigured or device is reconfigured, even if user does not use a RSS key to configure a device in advance.
The test case is actually over testing, and tester has agreed to modify test plan to make it pass. If we only care about the test case, testpmd and ice PMD does not need any patch.But tester found a hidden problem when run the above case:
Configure per queue rx offloading and per queue tx offloading command trigger therte_eth_dev_configure()to reconfigure device.
Quoted 8 lines
The problem for the above test case can be resolved by setting RSS key in advance. And looks like no imminent risk to deprecate the patch.
But it does not mean that the per queue command triggering device reconfiguration is correct. So leave behind the test case, the patch is still reasonable.@Ferruh, if there is still concern for this patch, please comments on it, thanks! If there is no objection, I will change the patch back to new state, and move on.
Hi Dapeng,
The patch is reasonable, that is why Xiaoyun ack'ed it at first place.
But later we have find out that the change has potential to hide some other driver error, so I think it make sense to wait for the driver fix fist, to be sure this change won't hide that issue, later we can proceed with this patch.
Calling an API redundantly on the control path is not so bad, we can live with it until other issue solved.
Quoted 16 lines
Quoted 15 lines
Quoted 2 lines
Otherwise, you are assuming the behavior rss to different queues is right
since user want random key. It's not an issue.
Quoted 10 lines
Any scenario, it's not testpmd issue. Please withdraw your patch.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
There is an unnecessary call in original implementation because both
cmd_config_per_queue_rx_offload_parsed()andcmd_config_per_queue_tx_offload_parsed()
does not update the "port->dev_conf" which hold the port configuration, therefore there is no need to call
rte_eth_dev_configure().Quoted 1 line
Quoted 164 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Monday, April 19, 2021 11:46 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 133 lines · DapengX
Quoted 83 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Monday, April 12, 2021 8:46 PM
To: Li, Xiaoyun <[email protected]>; Yu, DapengX <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 71 lines · Xiaoyun
Quoted 71 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 18:29
To: Li, Xiaoyun <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 58 lines
-----Original Message-----
From: Li, Xiaoyun <[email protected]>
Sent: Friday, April 9, 2021 3:50 PM
To: Yu, DapengX <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 46 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 13:25
To: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 9 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Thursday, April 8, 2021 11:42 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 6 lines
Quoted 5 lines · On 4/1/2021 9:28 AM, [email protected] wrote:
From: Dapeng Yu <[email protected]>
Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the
rte_eth_dev_configure()to reconfiguredevice.
Quoted 11 lines
Quoted 6 lines
The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted,
rte_eth_dev_configure()will not be called again.Just to clarify the impact, was calling '
rte_eth_dev_configure()' causing any problem, is this fixing any issue?
Or is this patch an optimization to eliminate an unnecessary call?This patch does fix an issue, and it also eliminates an unnecessary call.
The issue is:
per-queue configuration, for example: port 0 rxq 0rx_offloadjumbo_frameoff triggers the per-device configuration change: the RSS key is reconfigured and changes afterrte_eth_dev_configure()is called on ICE PMD driver, that cause a test case failure.Quoted 13 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Hmmm. I agree on the following. It doesn't need
dev_configure. That's why I give you ack.But your issue. Shouldn't you fix the driver? The vsi->rss_key[] just updated itself as a random value when
dev_confdoesn't containone.
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
But your case is
dev_confdoesn't contain new rss key, butvsi->rss_keyis not null. In this case, it should keep the samevsi->notget a newrandom key.
Quoted 1 line
In current implementation, dev->data-
dev_conf.rx_adv_conf.rss_conf
Quoted 19 lines
Quoted 19 lines
Quoted 18 lines
in PMD does not hold the
rss_keyvalue if user does not set it in the input parameter ofrte_eth_dev_configure().Even if PMD generate one automatically, it will not be saved in dev->data-
Quoted 1 line
dev_conf.rx_adv_conf.rss_conf.
When user want to get
rss_key, it will be retrieved on the fly from hardware, but not from any variable in PMD.So PMD (ice and i40e) think only
rss_keywhich is set by user viarte_eth_dev_configure()can be reused when port is reconfigured.If it is not present, PMD will generate one by itself anyway even if it is present in
vsi->rss_key.I don’t think this behavior is wrong, so did not fix ice PMD.
Quoted 8 lines
Quoted 3 lines
If you want to recover the rss key. The driver should store the key in vsi-
rss_keyalso inice_rss_hash_update(). Then when user not configrss_keyin
rss_confandvs->rss_keyis not 0, you should set the original value not a random value to hw.Quoted 1 line
+1
The background of the patch is:
A test case expects that RSS feature makes the same packet flow into same queue, after queue is reconfigured or device is reconfigured, even if user does not use a RSS key to configure a device in advance. The test case is actually over testing, and tester has agreed to modify test plan to make it pass. If we only care about the test case, testpmd and ice PMD does not need any patch.Quoted 5 lines
But tester found a hidden problem when run the above case:
Configure per queue rx offloading and per queue tx offloading command trigger therte_eth_dev_configure()to reconfigure device.The problem for the above test case can be resolved by setting RSS key in
advance.
Quoted 2 lines
And looks like no imminent risk to deprecate the patch. But it does not mean that the per queue command triggering device
reconfiguration is correct.
Quoted 3 lines
So leave behind the test case, the patch is still reasonable.
@Ferruh, if there is still concern for this patch, please comments on it,
thanks!
Quoted 1 line
If there is no objection, I will change the patch back to new state, and move
on.
Quoted 1 line
Hi Dapeng,
Quoted 9 lines
The patch is reasonable, that is why Xiaoyun ack'ed it at first place.
But later we have find out that the change has potential to hide some other driver error, so I think it make sense to wait for the driver fix fist, to be sure this change won't hide that issue, later we can proceed with this patch.
Calling an API redundantly on the control path is not so bad, we can live with it until other issue solved.
@Ferruh, thank you for sparing time to answer.
The previous comments mentioned a controversy that there is error in ICE PMD driver(Random RSS key generation on device reconfiguration), Actually this is not bug, and it has been confirmed with maintainer(Zhang Qi), there is no need to fix it.
Are there other driver errors which this patch may hide? If not, I think we can proceed with this patch.
Quoted 17 lines
Quoted 17 lines
Quoted 16 lines
Quoted 3 lines
Otherwise, you are assuming the behavior rss to different queues is right
since user want random key. It's not an issue.
Quoted 10 lines
Any scenario, it's not testpmd issue. Please withdraw your patch.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
There is an unnecessary call in original implementation because both
cmd_config_per_queue_rx_offload_parsed()andcmd_config_per_queue_tx_offload_parsed()
does not update the "port->dev_conf" which hold the port configuration, therefore there is no need to call
rte_eth_dev_configure().Quoted 1 line
Quoted 170 lines · DapengX
Quoted 170 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Monday, April 19, 2021 11:46 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 133 lines · DapengX
Quoted 83 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Monday, April 12, 2021 8:46 PM
To: Li, Xiaoyun <[email protected]>; Yu, DapengX <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 71 lines · Xiaoyun
Quoted 71 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 18:29
To: Li, Xiaoyun <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 58 lines
-----Original Message-----
From: Li, Xiaoyun <[email protected]>
Sent: Friday, April 9, 2021 3:50 PM
To: Yu, DapengX <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 46 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 13:25
To: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 9 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Thursday, April 8, 2021 11:42 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 6 lines
Quoted 5 lines · On 4/1/2021 9:28 AM, [email protected] wrote:
From: Dapeng Yu <[email protected]>
Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the
rte_eth_dev_configure()to reconfiguredevice.
Quoted 11 lines
Quoted 6 lines
The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted,
rte_eth_dev_configure()will not be called again.Just to clarify the impact, was calling '
rte_eth_dev_configure()' causing any problem, is this fixing any issue?
Or is this patch an optimization to eliminate an unnecessary call?This patch does fix an issue, and it also eliminates an unnecessary call.
The issue is:
per-queue configuration, for example: port 0 rxq 0rx_offloadjumbo_frameoff triggers the per-device configuration change: the RSS key is reconfigured and changes afterrte_eth_dev_configure()is called on ICE PMD driver, that cause a test case failure.Quoted 13 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Hmmm. I agree on the following. It doesn't need
dev_configure. That's why I give you ack.But your issue. Shouldn't you fix the driver? The vsi->rss_key[] just updated itself as a random value when
dev_confdoesn't containone.
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
But your case is
dev_confdoesn't contain new rss key, butvsi->rss_keyis not null. In this case, it should keep the samevsi->notget a newrandom key.
Quoted 1 line
In current implementation, dev->data-
dev_conf.rx_adv_conf.rss_conf
Quoted 19 lines
Quoted 19 lines
Quoted 18 lines
in PMD does not hold the
rss_keyvalue if user does not set it in the input parameter ofrte_eth_dev_configure().Even if PMD generate one automatically, it will not be saved in dev->data-
Quoted 1 line
dev_conf.rx_adv_conf.rss_conf.
When user want to get
rss_key, it will be retrieved on the fly from hardware, but not from any variable in PMD.So PMD (ice and i40e) think only
rss_keywhich is set by user viarte_eth_dev_configure()can be reused when port is reconfigured.If it is not present, PMD will generate one by itself anyway even if it is present in
vsi->rss_key.I don’t think this behavior is wrong, so did not fix ice PMD.
Quoted 8 lines
Quoted 3 lines
If you want to recover the rss key. The driver should store the key in vsi-
rss_keyalso inice_rss_hash_update(). Then when user not configrss_keyin
rss_confandvs->rss_keyis not 0, you should set the original value not a random value to hw.Quoted 1 line
+1
The background of the patch is:
A test case expects that RSS feature makes the same packet flow into same queue, after queue is reconfigured or device is reconfigured, even if user does not use a RSS key to configure a device in advance. The test case is actually over testing, and tester has agreed to modify test plan to make it pass. If we only care about the test case, testpmd and ice PMD does not need any patch.Quoted 5 lines
But tester found a hidden problem when run the above case:
Configure per queue rx offloading and per queue tx offloading command trigger therte_eth_dev_configure()to reconfigure device.The problem for the above test case can be resolved by setting RSS key in
advance.
Quoted 2 lines
And looks like no imminent risk to deprecate the patch. But it does not mean that the per queue command triggering device
reconfiguration is correct.
Quoted 3 lines
So leave behind the test case, the patch is still reasonable.
@Ferruh, if there is still concern for this patch, please comments on it,
thanks!
Quoted 1 line
If there is no objection, I will change the patch back to new state, and move
on.
Quoted 1 line
Hi Dapeng,
The patch is reasonable, that is why Xiaoyun ack'ed it at first place.
But later we have find out that the change has potential to hide some other driver error, so I think it make sense to wait for the driver fix fist, to be sure this change won't hide that issue, later we can proceed with this patch.
Quoted 7 lines
Quoted 3 lines
Calling an API redundantly on the control path is not so bad, we can live with it until other issue solved.
@Ferruh, thank you for sparing time to answer.
The previous comments mentioned a controversy that there is error in ICE PMD driver(Random RSS key generation on device reconfiguration), Actually this is not bug, and it has been confirmed with maintainer(Zhang Qi), there is no need to fix it.
Wasn't the problem that device get a new random RSS key on each call of the configure API, is this expected behavior?
And will the RSS key change even if the user set the RSS key between two configure calls?
Quoted 20 lines
Are there other driver errors which this patch may hide? If not, I think we can proceed with this patch.
Quoted 17 lines
Quoted 17 lines
Quoted 16 lines
Quoted 3 lines
Otherwise, you are assuming the behavior rss to different queues is right
since user want random key. It's not an issue.
Quoted 10 lines
Any scenario, it's not testpmd issue. Please withdraw your patch.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
There is an unnecessary call in original implementation because both
cmd_config_per_queue_rx_offload_parsed()andcmd_config_per_queue_tx_offload_parsed()
does not update the "port->dev_conf" which hold the port configuration, therefore there is no need to call
rte_eth_dev_configure().Quoted 1 line
Quoted 193 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Tuesday, April 20, 2021 4:22 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 82 lines · DapengX
Quoted 82 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Monday, April 19, 2021 11:46 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 70 lines · DapengX
Quoted 70 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Monday, April 12, 2021 8:46 PM
To: Li, Xiaoyun <[email protected]>; Yu, DapengX <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 58 lines · Xiaoyun
Quoted 58 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 18:29
To: Li, Xiaoyun <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 45 lines
-----Original Message-----
From: Li, Xiaoyun <[email protected]>
Sent: Friday, April 9, 2021 3:50 PM
To: Yu, DapengX <[email protected]>; Yigit, Ferruh <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 34 lines
-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Friday, April 9, 2021 13:25
To: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 9 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Thursday, April 8, 2021 11:42 PM
To: Yu, DapengX <[email protected]>; Li, Xiaoyun <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmdQuoted 6 lines
Quoted 5 lines · On 4/1/2021 9:28 AM, [email protected] wrote:
From: Dapeng Yu <[email protected]>
Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the
rte_eth_dev_configure()to reconfiguredevice.
Quoted 7 lines
Quoted 6 lines
The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted,
rte_eth_dev_configure()will not be called again.Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Just to clarify the impact, was calling '
rte_eth_dev_configure()' causing any problem, is this fixing any issue?
Or is this patch an optimization to eliminate an unnecessary call?This patch does fix an issue, and it also eliminates an unnecessary
call.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
The issue is:
per-queue configuration, for example: port 0 rxq 0rx_offloadjumbo_frameoff triggers the per-device configuration change:
the RSS key is reconfigured and changes afterrte_eth_dev_configure()is called on ICE PMD driver, that cause atest case failure.
Quoted 73 lines
Quoted 73 lines
Quoted 53 lines
Quoted 15 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Hmmm. I agree on the following. It doesn't need
dev_configure. That's why I give you ack.But your issue. Shouldn't you fix the driver? The vsi->rss_key[] just updated itself as a random value when
dev_confdoesn't containone.
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
But your case is
dev_confdoesn't contain new rss key, butvsi->rss_keyis not null. In this case, it should keep the samevsi->notget a newrandom key.
Quoted 1 line
In current implementation, dev->data-
dev_conf.rx_adv_conf.rss_conf
Quoted 20 lines
Quoted 20 lines
Quoted 19 lines
in PMD does not hold the
rss_keyvalue if user does not set it in the input parameter ofrte_eth_dev_configure().Even if PMD generate one automatically, it will not be saved in dev->data-
Quoted 1 line
dev_conf.rx_adv_conf.rss_conf.
When user want to get
rss_key, it will be retrieved on the fly from hardware, but not from any variable in PMD.So PMD (ice and i40e) think only
rss_keywhich is set by user viarte_eth_dev_configure()can be reused when port is reconfigured.If it is not present, PMD will generate one by itself anyway even if it is present in
vsi->rss_key.I don’t think this behavior is wrong, so did not fix ice PMD.
Quoted 8 lines
Quoted 3 lines
If you want to recover the rss key. The driver should store the key in vsi-
rss_keyalso inice_rss_hash_update(). Then when user not configrss_keyin
rss_confandvs->rss_keyis not 0, you should set the original value not a random value to hw.Quoted 1 line
+1
The background of the patch is:
A test case expects that RSS feature makes the same packet flow into same queue, after queue is reconfigured or device is reconfigured, even if user does not use a RSS key to configure a device in advance. The test case is actually over testing, and tester has agreed to modify test plan to make it pass. If we only care about the test case, testpmd and ice PMD does not need any patch.Quoted 6 lines
But tester found a hidden problem when run the above case:
Configure per queue rx offloading and per queue tx offloading command trigger therte_eth_dev_configure()to reconfigure device.The problem for the above test case can be resolved by setting RSS key in
advance.
Quoted 2 lines
And looks like no imminent risk to deprecate the patch. But it does not mean that the per queue command triggering device
reconfiguration is correct.
Quoted 4 lines
So leave behind the test case, the patch is still reasonable.
@Ferruh, if there is still concern for this patch, please comments on it,
thanks!
Quoted 2 lines
If there is no objection, I will change the patch back to new state, and move
on.
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Hi Dapeng,
The patch is reasonable, that is why Xiaoyun ack'ed it at first place.
But later we have find out that the change has potential to hide some other driver error, so I think it make sense to wait for the driver fix fist, to be sure this change won't hide that issue, later we can proceed
with this patch.
Quoted 5 lines
Quoted 4 lines
Calling an API redundantly on the control path is not so bad, we can live with it until other issue solved.
Quoted 8 lines
Quoted 3 lines
@Ferruh, thank you for sparing time to answer.
The previous comments mentioned a controversy that there is error in ICE PMD driver(Random RSS key generation on device reconfiguration),Actually this is not bug, and it has been confirmed with maintainer(Zhang Qi), there is no need to fix it.
Wasn't the problem that device get a new random RSS key on each call of the configure API, is this expected behavior?
The behavior is expected for ICE PMD, since user did not give a RSS key on device configuration.
If user did not set RSS key, it implies that user did not care about what is RSS key value, and how it will affect packet flow. So any RSS key value should be acceptable.
Quoted 3 lines
And will the RSS key change even if the user set the RSS key between two configure calls?
Actually if user set the RSS key between two configure call, The RSS key will be changed to the one that user set. No random RSS key will be generated automatically.
Quoted 22 lines
Quoted 2 lines
Are there other driver errors which this patch may hide? If not, I think we
can proceed with this patch.
Quoted 19 lines
Quoted 18 lines
Quoted 18 lines
Quoted 17 lines
Quoted 4 lines
Otherwise, you are assuming the behavior rss to different queues is right
since user want random key. It's not an issue.
Quoted 10 lines
Any scenario, it's not testpmd issue. Please withdraw your patch.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
There is an unnecessary call in original implementation because both
cmd_config_per_queue_rx_offload_parsed()andcmd_config_per_queue_tx_offload_parsed()
does not update the "port->dev_conf" which hold the port configuration, therefore there is no need to call
rte_eth_dev_configure().Quoted 1 line