lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1711892489-27931-1-git-send-email-venkat.x.venkatsubra@oracle.com>
Date: Sun, 31 Mar 2024 06:41:28 -0700
From: Venkat Venkatsubra <venkat.x.venkatsubra@...cle.com>
To: davem@...emloft.net, netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
        maheshb@...gle.com, edumazet@...gle.com
Cc: gia-khanh.nguyen@...cle.com
Subject: [PATCH net-next] Add handling of NETDEV_DOWN event

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@...-podman-x64 ~]# ip link set ens5 down
[root@...-podman-x64 ~]# ip -d link show dev ens5
3: ens5: <BROADCAST,MULTICAST> mtu 9000 qdisc mq state DOWN 
      ...
[root@...-podman-x64 ~]#

Container:

[root@...tnode-ol8 /]# ip -d link show dev eth0
2: eth0@if3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 state UNKNOWN 
        ...
    ipvlan mode l2 bridge 
[root@...tnode-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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ