linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] Add handling of NETDEV_DOWN event
@ 2024-03-31 13:41 Venkat Venkatsubra
  2024-03-31 13:41 ` [PATCH net-next] ipvlan: handle " Venkat Venkatsubra
  2024-04-04  2:07 ` [PATCH net-next] Add handling of " Jakub Kicinski
  0 siblings, 2 replies; 4+ messages in thread
From: Venkat Venkatsubra @ 2024-03-31 13:41 UTC (permalink / raw)
  To: davem, netdev, linux-kernel, maheshb, edumazet; +Cc: gia-khanh.nguyen

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-04  2:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-31 13:41 [PATCH net-next] Add handling of NETDEV_DOWN event Venkat Venkatsubra
2024-03-31 13:41 ` [PATCH net-next] ipvlan: handle " Venkat Venkatsubra
2024-04-04  2:08   ` Jakub Kicinski
2024-04-04  2:07 ` [PATCH net-next] Add handling of " Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).