Skip to contentSkip to conversation

i40e: Fix display error code in dmesg

PATCH New Mateusz Palczewski 2 participants 2 messages Oct 29, 2021 – Nov 3, 2021

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

PATCH 1/1 i40e: Fix display error code in dmesg

From: Grzegorz Szczurek <[email protected]>

Fix misleading display error in dmesg if tc filter return fail. Only i40e status error code should be converted to string, not linux error code. Otherwise, we return false information about the error.

Fixes 2f4b411a3d67 ("i40e: Enable cloud filters via tc-flower")
---
 drivers/net/ethernet/intel/i40e/i40e_main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_main.c +1 -2
index 4664d07..8f1f870 100644
@@ -8557,8 +8557,7 @@ static int i40e_configure_clsflower(struct i40e_vsi *vsi,
 
 	if (err) {
 		dev_err(&pf->pdev->dev,
-			"Failed to add cloud filter, err %s\n",
-			i40e_stat_str(&pf->hw, err));
+			"Failed to add cloud filter, err %d\n", err);
 		goto err;
 	}
 
Signature · 1 line
2.27.0
#1 lore raw

PATCH 1/1 i40e: Fix display error code in dmesg

Quoted 4 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Mateusz Palczewski
Sent: Friday, October 29, 2021 2:26 AM

To: [email protected]

Quoted 9 lines

Cc: Palczewski, Mateusz <[email protected]>
Subject: [Intel-wired-lan] [PATCH net v1] i40e: Fix display error code in dmesg

From: Grzegorz Szczurek <[email protected]>

Fix misleading display error in dmesg if tc filter return fail. Only i40e status error code should be converted to string, not linux error code. Otherwise, we return false information about the error.

Quoted 7 lines
Fixes 2f4b411a3d67 ("i40e: Enable cloud filters via tc-flower")

---
drivers/net/ethernet/intel/i40e/i40e_main.c | 3 +--

1 file changed, 1 insertion(+), 2 deletions(-)