1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-19 12:55:08 +00:00
Yajun Deng 0c17270f9b net: sysfs: Implement is_visible for phys_(port_id, port_name, switch_id)
phys_port_id_show, phys_port_name_show and phys_switch_id_show would
return -EOPNOTSUPP if the netdev didn't implement the corresponding
method.

There is no point in creating these files if they are unsupported.

Put these attributes in netdev_phys_group and implement the is_visible
method. make phys_(port_id, port_name, switch_id) invisible if the netdev
dosen't implement the corresponding method.

Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250612142707.4644-1-yajun.deng@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-06-14 11:26:59 -07:00
..
2025-05-27 15:22:01 -07:00
2025-06-05 08:49:30 -07:00
2025-06-05 08:20:21 -07:00
2025-06-05 08:07:24 -07:00
2025-05-27 15:53:55 -07:00
2025-06-03 16:13:32 -07:00
2025-06-03 08:39:20 -07:00
2025-05-26 11:39:36 -07:00
2025-05-28 15:52:42 -07:00
2025-05-27 20:59:53 -07:00
2025-06-03 07:39:23 -07:00
2025-05-28 15:24:36 -07:00
2025-05-26 08:02:43 -07:00
2025-05-28 15:52:42 -07:00
2025-06-02 12:49:16 -07:00
\n
2025-05-29 10:34:26 -07:00
2025-05-30 08:40:25 -07:00
2025-06-03 08:39:20 -07:00
2025-05-22 11:07:05 +02:00
2025-05-30 10:44:20 -07:00
2025-05-27 08:00:46 -07:00
2025-06-11 11:57:14 -07:00
2025-06-08 10:35:12 -07:00
2025-05-26 08:02:43 -07:00
2025-05-28 15:24:36 -07:00
2025-06-04 09:51:10 +02:00
2025-06-02 15:31:05 -07:00
2025-05-22 20:30:34 +02:00
2025-06-04 11:26:17 -07:00
2025-06-04 11:26:17 -07:00
2025-06-03 07:39:23 -07:00
2025-05-28 14:55:35 -07:00
2025-05-27 20:49:06 -07:00