]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hsr: use netdev_master_upper_dev_link() when linking lower ports
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 2 Sep 2025 06:55:58 +0000 (06:55 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 9 Sep 2025 09:27:37 +0000 (11:27 +0200)
commitd67ca09ca39f9605459959004b28c56899e3bca3
treebcbec1d032cb79ad05f4aea44fc5d9bd733b0e1a
parentc27334aef6f655ec36c868abfd29a253372b2f29
hsr: use netdev_master_upper_dev_link() when linking lower ports

Unlike VLAN devices, HSR changes the lower device’s rx_handler, which
prevents the lower device from being attached to another master.
Switch to using netdev_master_upper_dev_link() when setting up the lower
device.

This could improves user experience, since ip link will now display the
HSR device as the master for its ports.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://patch.msgid.link/20250902065558.360927-1-liuhangbin@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/hsr/hsr_slave.c