Skip to contentSkip to conversation

gve: Flow steering trigger reset only for timeout error

PATCH Applied Jeroen de Borst 3 participants 3 messages Nov 13, 2024 – Nov 15, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gve: Flow steering trigger reset only for timeout error

From: Ziwei Xiao <[email protected]>

When configuring flow steering rules, the driver is currently going through a reset for all errors from the device. Instead, the driver should only reset when there's a timeout error from the device.

Fixes 57718b60df9b ("gve: Add flow steering adminq commands")

---
v2: Added missing Signed-off-by

 drivers/net/ethernet/google/gve/gve_adminq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/google/gve/gve_adminq.c +2 -2
index e44e8b139633..060e0e674938 100644
@@ -1248,10 +1248,10 @@ gve_adminq_configure_flow_rule(struct gve_priv *priv,
 			sizeof(struct gve_adminq_configure_flow_rule),
 			flow_rule_cmd);
 
-	if (err) {
+	if (err == -ETIME) {
 		dev_err(&priv->pdev->dev, "Timeout to configure the flow rule, trigger reset");
 		gve_reset(priv, true);
-	} else {
+	} else if (!err) {
 		priv->flow_rules_cache.rules_cache_synced = false;
 	}
 
Signature · 1 line
2.47.0.277.g8800431eea-goog
reviewer Reviewed-by on v2 1/1
#1 lore raw
Quoted 6 lines · Jeroen de Borst

From: Ziwei Xiao <[email protected]>

When configuring flow steering rules, the driver is currently going through a reset for all errors from the device. Instead, the driver should only reset when there's a timeout error from the device.

Quoted 7 lines
Fixes 57718b60df9b ("gve: Add flow steering adminq commands")

---
v2: Added missing Signed-off-by

Thanks for the update.

#2 lore raw
In reply to Jeroen de Borst
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 6 lines · On Wed, 13 Nov 2024 09:59:30 -0800 you wrote:

From: Ziwei Xiao <[email protected]>

When configuring flow steering rules, the driver is currently going through a reset for all errors from the device. Instead, the driver should only reset when there's a timeout error from the device.

Quoted 7 lines
Fixes 57718b60df9b ("gve: Add flow steering adminq commands")

[...]

Here is the summary with links:
- [net,V2] gve: Flow steering trigger reset only for timeout error

    https://git.kernel.org/netdev/net/c/8ffade77b633

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html