net/mlx5: prevent ioctl failure log from flood
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.
--- 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
@@ -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 *)ðpause; 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
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 floodFrom: Eli Britstein <[email protected]>
The following log is printed in WARNING severity:
mlx5_net: port 1ioctl(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")Signed-off-by Eli Britstein <[email protected]>
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 floodFrom: Eli Britstein <[email protected]>
The following log is printed in WARNING severity:
mlx5_net: port 1ioctl(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")Signed-off-by Eli Britstein <[email protected]>
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh