linux/drivers/net
Di Zhu 57fb346cc7 ipvlan: Add handling of NETDEV_UP events
When an ipvlan device is created on a bond device, the link state
of the ipvlan device may be abnormal. This is because bonding device
allows to add physical network card device in the down state and so
NETDEV_CHANGE event will not be notified to other listeners, so ipvlan
has no chance to update its link status.

The following steps can cause such problems:
	1) bond0 is down
	2) ip link add link bond0 name ipvlan type ipvlan mode l2
	3) echo +enp2s7 >/sys/class/net/bond0/bonding/slaves
	4) ip link set bond0 up

After these steps, use ip link command, we found ipvlan has NO-CARRIER:
  ipvlan@bond0: <NO-CARRIER, BROADCAST,MULTICAST,UP,M-DOWN> mtu ...>

We can deal with this problem like VLAN: Add handling of NETDEV_UP
events. If we receive NETDEV_UP event, we will update the link status
of the ipvlan.

Signed-off-by: Di Zhu <zhudi21@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-07-29 22:17:37 +01:00
..
appletalk appletalk: use ndo_siocdevprivate 2021-07-27 20:11:43 +01:00
arcnet
bonding net: bonding: move ioctl handling to private ndo operation 2021-07-27 20:11:45 +01:00
caif
can can: flexcan: update Kconfig to enable coldfire 2021-07-25 11:36:29 +02:00
dsa net: dsa: sja1105: make sure untagged packets are dropped on ingress ports with no pvid 2021-07-29 15:35:01 +01:00
ethernet dpaa2-switch: offload shared block mirror filters when binding to a port 2021-07-29 21:34:45 +01:00
fddi fddi: use ndo_siocdevprivate 2021-07-27 20:11:43 +01:00
fjes
hamradio hamradio: use ndo_siocdevprivate 2021-07-27 20:11:44 +01:00
hippi hippi: use ndo_siocdevprivate 2021-07-27 20:11:44 +01:00
hyperv
ieee802154
ipa net: ipa: don't suspend endpoints if setup not complete 2021-07-28 00:06:27 +01:00
ipvlan ipvlan: Add handling of NETDEV_UP events 2021-07-29 22:17:37 +01:00
mctp mctp: Add initial driver infrastructure 2021-07-29 15:06:50 +01:00
mdio
mhi net: mhi: Improve MBIM packet counting 2021-07-26 12:21:00 +01:00
netdevsim
pcs
phy dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
plip slip/plip: use ndo_siocdevprivate 2021-07-27 20:11:44 +01:00
ppp ppp: use ndo_siocdevprivate 2021-07-27 20:11:44 +01:00
slip slip/plip: use ndo_siocdevprivate 2021-07-27 20:11:44 +01:00
team
usb dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
vmxnet3
wan net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
wireguard
wireless airo: use ndo_siocdevprivate 2021-07-27 20:11:44 +01:00
wwan wwan: core: Fix missing RTM_NEWLINK event for default link 2021-07-23 17:16:19 +01:00
xen-netback
bareudp.c
dummy.c
eql.c eql: use ndo_siocdevprivate 2021-07-27 20:11:43 +01:00
geneve.c
gtp.c
ifb.c
Kconfig mctp: Add initial driver infrastructure 2021-07-29 15:06:50 +01:00
LICENSE.SRC
loopback.c
macsec.c
macvlan.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
macvtap.c
Makefile mctp: Add initial driver infrastructure 2021-07-29 15:06:50 +01:00
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c sb1000: use ndo_siocdevprivate 2021-07-27 20:11:44 +01:00
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c veth: use skb_prepare_for_gro() 2021-07-29 12:18:12 +01:00
virtio_net.c
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c