Skip to contentSkip to conversation

net/mlx5: prevent ioctl failure log from flood

PATCH In review Bing Zhao 3 participants 3 messages Mar 7, 2024 – Mar 13, 2024 Network drivers

lore
Share & tools
lore

Bing Zhao

author
#0 lore raw

PATCH 1/1 net/mlx5: prevent ioctl failure log from flood

From: Eli Britstein <[email protected]>

The following log is printed in WARNING severity:

mlx5_net: port 1 ioctl(SIOCETHTOOL, ETHTOOL_GPAUSEPARAM) failed:
Operation not supported

Reduce the severity to DEBUG to prevent this log from flooding when there are hundreds of ports probed without supporting this flow ctrl query.

Fixes 1256805dd54d ("net/mlx5: move Linux-specific functions")
---
 drivers/net/mlx5/linux/mlx5_ethdev_os.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mlx5/linux/mlx5_ethdev_os.c +1 -1
index eb47c284ec..b713354b09 100644
@@ -671,7 +671,7 @@ mlx5_dev_get_flow_ctrl(struct rte_eth_dev *dev, struct rte_eth_fc_conf *fc_conf)
 	ifr.ifr_data = (void *)&ethpause;
 	ret = mlx5_ifreq(dev, SIOCETHTOOL, &ifr);
 	if (ret) {
-		DRV_LOG(WARNING,
+		DRV_LOG(DEBUG,
 			"port %u ioctl(SIOCETHTOOL, ETHTOOL_GPAUSEPARAM) failed:"
 			" %s",
 			dev->data->port_id, strerror(rte_errno));
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw
Quoted 18 lines

-----Original Message-----
From: Bing Zhao <[email protected]>
Sent: Thursday, March 7, 2024 8:14 AM
To: Slava Ovsiienko <[email protected]>; [email protected]; Raslan Darawsheh <[email protected]>
Cc: Ori Kam <[email protected]>; Dariusz Sosnowski <[email protected]>; Suanming Mou <[email protected]>; Matan Azrad <[email protected]>; Eli Britstein <[email protected]>; Ophir Munk <[email protected]>; [email protected]
Subject: [PATCH] net/mlx5: prevent ioctl failure log from flood

From: Eli Britstein <[email protected]>

The following log is printed in WARNING severity:

mlx5_net: port 1 ioctl(SIOCETHTOOL, ETHTOOL_GPAUSEPARAM) failed:
Operation not supported

Quoted 8 lines

Reduce the severity to DEBUG to prevent this log from flooding when there are hundreds of ports probed without supporting this flow ctrl query.

Fixes 1256805dd54d ("net/mlx5: move Linux-specific functions")
#2 lore raw
In reply to Bing Zhao

Hi,

Quoted 18 lines

-----Original Message-----
From: Bing Zhao <[email protected]>
Sent: Thursday, March 7, 2024 8:14 AM
To: Slava Ovsiienko <[email protected]>; [email protected]; Raslan Darawsheh <[email protected]>
Cc: Ori Kam <[email protected]>; Dariusz Sosnowski <[email protected]>; Suanming Mou <[email protected]>; Matan Azrad <[email protected]>; Eli Britstein <[email protected]>; Ophir Munk <[email protected]>; [email protected]
Subject: [PATCH] net/mlx5: prevent ioctl failure log from flood

From: Eli Britstein <[email protected]>

The following log is printed in WARNING severity:

mlx5_net: port 1 ioctl(SIOCETHTOOL, ETHTOOL_GPAUSEPARAM) failed:
Operation not supported

Quoted 8 lines

Reduce the severity to DEBUG to prevent this log from flooding when there are hundreds of ports probed without supporting this flow ctrl query.

Fixes 1256805dd54d ("net/mlx5: move Linux-specific functions")

Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh