Re: [PATCH net-next v3 2/2] net/mlx5: implement swp_l4_csum_mode via devlink params

From
Jakub Kicinski <kuba@kernel.org>
Date
2025-11-10 23:01:36
Also in
intel-wired-lan, linux-doc, linux-omap, linux-rdma
Reply to
Saeed Mahameed, 2025-11-08
On Fri, 7 Nov 2025 22:14:45 -0800 Saeed Mahameed wrote:
quoted
+	err = mlx5_nv_param_read_sw_accelerate_conf(dev, mnvda, sizeof(mnvda));
+	if (err) {
+		NL_SET_ERR_MSG_MOD(extack,
+				   "Failed to read sw_accelerate_conf mnvda reg");  
Plug in the err, NL_SET_ERR_MSG_FMT_MOD(.., .., err);
other locations as well.
Incorrect. extack should basically be passed to perror()
IOW user space will add strerror(errno) after, anyway.
Adding the errno inside the string is pointless and ugly.
Thread (20 messages) 20 messages, 4 authors, last reply 2025-11-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help