OSDN Git Service

macvlan: Change status when lower device goes down
authorTravis Brown <travisb@arista.com>
Tue, 10 Jul 2018 00:35:01 +0000 (00:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 06:07:22 +0000 (23:07 -0700)
commit80fd2d6ca5461b2752744df2e6e387cc65e7b86c
tree55ec1959f1ca3a72c9c6b4c5d8c536034f3a1482
parent0e97c4fb180ce90406e597a0a3f882c99ee55785
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>
drivers/net/macvlan.c