[PATCH net-next] Add handling of NETDEV_DOWN event
From: Venkat Venkatsubra
Date: Sun Mar 31 2024 - 09:43:19 EST
When ethP is the parent interface of ipvlan interface ethC,
and you do
# ip link set ethP down
ethC's link state is not brought down.
In the below example, ens5 is the host interface which is the
parent of the ipvlan interface eth0 in the container.
Host:
[root@gkn-podman-x64 ~]# ip link set ens5 down
[root@gkn-podman-x64 ~]# ip -d link show dev ens5
3: ens5: <BROADCAST,MULTICAST> mtu 9000 qdisc mq state DOWN
...
[root@gkn-podman-x64 ~]#
Container:
[root@testnode-ol8 /]# ip -d link show dev eth0
2: eth0@if3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 state UNKNOWN
...
ipvlan mode l2 bridge
[root@testnode-ol8 /]#
eth0 continues to remain UP.
macvlan already addresses this handling of NETDEV_DOWN event.
Adding the same functionality to ipvlan.
Venkat Venkatsubra (1):
ipvlan: handle NETDEV_DOWN event
drivers/net/ipvlan/ipvlan_main.c | 1 +
1 file changed, 1 insertion(+)
--
1.8.3.1