aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/libeth/rx.c
diff options
context:
space:
mode:
authorYajun Deng <yajun.deng@linux.dev>2025-06-12 14:27:07 +0000
committerJakub Kicinski <kuba@kernel.org>2025-06-14 11:26:59 -0700
commit0c17270f9b920e4e1777488f1911bbfdaf2af3be (patch)
treeeb67010e3afa6e8dd7808827937378786b7f4e14 /drivers/net/ethernet/intel/libeth/rx.c
parentnet: ti: icssg-prueth: Read firmware-names from device tree (diff)
downloadlinux-0c17270f9b920e4e1777488f1911bbfdaf2af3be.tar.gz
linux-0c17270f9b920e4e1777488f1911bbfdaf2af3be.zip
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>
Diffstat (limited to 'drivers/net/ethernet/intel/libeth/rx.c')
0 files changed, 0 insertions, 0 deletions