Thread (9 messages) 9 messages, 4 authors, 2025-08-11

Re: [PATCH net v2 1/2] devlink: let driver opt out of automatic phys_port_name generation

From: Tony Nguyen <anthony.l.nguyen@intel.com>
Date: 2025-08-11 21:27:50


On 8/8/2025 11:53 AM, Jakub Kicinski wrote:
On Tue,  5 Aug 2025 15:33:41 -0700 Tony Nguyen wrote:
quoted
+	if (devlink_port->attrs.no_phys_port_name)
+		return 0;
Why are you returning 0 rather than -EOPNOTSUPP?
Driver which doesn't implement phys_port_name would normally return
-EOPNOTSUPP when user tries to read the sysfs file.
Jedrek is out so I'm not sure the reason, but it does seem
-EOPNOTSUPP would be more appropriate so I'll make that change.

Thanks,
Tony
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help