Thread (6 messages) 6 messages, 3 authors, 2024-01-02

Re: [PATCH net] rtnetlink: allow to set iface down before enslaving it

From: Nicolas Dichtel <hidden>
Date: 2024-01-02 12:14:46
Also in: stable

Le 31/12/2023 à 17:36, David Ahern a écrit :
On 12/29/23 5:08 AM, Nicolas Dichtel wrote:
quoted
The below commit adds support for:
quoted
ip link set dummy0 down
ip link set dummy0 master bond0 up
but breaks the opposite:
quoted
ip link set dummy0 up
ip link set dummy0 master bond0 down
Let's add a workaround to have both commands working.

Cc: stable@vger.kernel.org
Fixes: a4abfa627c38 ("net: rtnetlink: Enslave device before bringing it up")
Signed-off-by: Nicolas Dichtel <redacted>
---
 net/core/rtnetlink.c | 8 ++++++++
 1 file changed, 8 insertions(+)
add tests to tools/testing/selftests/net/rtnetlink.sh
Will do.


Thanks,
Nicolas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help