On Fri, Oct 17, 2025 at 09:10:09AM +0300, Nikolay Aleksandrov wrote:
> On 10/17/25 06:03, Hangbin Liu wrote:
> > Currently, there is no straightforward way to obtain the master/slave
> > relationship via netlink. Users have to retrieve all slaves through sysfs
> > to determine these relationships.
> > 
> 
> How about IFLA_MASTER? Why not use that?

Ah, I didn't notice this. We can show the master info directly with this...

# ip link show dummy0
3: dummy0: <BROADCAST,NOARP,SLAVE,UP,LOWER_UP> mtu 1500 qdisc noqueue master 
bond0 ...

Please ignore this patch.

Thanks
Hangbin

Reply via email to