[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <10a15ca4-ff93-4e62-9953-cbd3ba2c3f53@redhat.com>
Date: Tue, 27 May 2025 08:08:51 +0200
From: Paolo Abeni <pabeni@...hat.com>
To: Yajun Deng <yajun.deng@...ux.dev>, andrew+netdev@...n.ch,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org, horms@...nel.org
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v2] net: sysfs: Implement is_visible for
phys_(port_id, port_name, switch_id)
On 5/21/25 4:08 PM, Yajun Deng wrote:
> 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@...ux.dev>
I fear that some orchestration infra depends on the files existence -
i.e. scripts don't tolerate the files absence, deal only with I/O errors
after open.
It feel a bit too dangerous to merge a change that could break
user-space this late. Let's defer it to the beginning of the next cycle.
Paolo
Powered by blists - more mailing lists