Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

macvlan: Change status when lower device goes down

Today macvlan ignores the notification when a lower device goes
administratively down, preventing the lack of connectivity from
bubbling up.

Processing NETDEV_DOWN results in a macvlan state of LOWERLAYERDOWN
with NO-CARRIER which should be easy to interpret in userspace.

2: lower: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
3: macvlan@lower: <NO-CARRIER,BROADCAST,MULTICAST,UP,M-DOWN> mtu 1500 qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000

Signed-off-by: Suresh Krishnan <skrishnan@arista.com>
Signed-off-by: Travis Brown <travisb@arista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Travis Brown and committed by
David S. Miller
80fd2d6c 0e97c4fb

+1
+1
drivers/net/macvlan.c
··· 1641 1641 1642 1642 switch (event) { 1643 1643 case NETDEV_UP: 1644 + case NETDEV_DOWN: 1644 1645 case NETDEV_CHANGE: 1645 1646 list_for_each_entry(vlan, &port->vlans, list) 1646 1647 netif_stacked_transfer_operstate(vlan->lowerdev,