]> git.baikalelectronics.ru Git - kernel.git/commit
net: vlan: suppress "failed to kill vid" warnings
authorJulian Wiedmann <jwi@linux.ibm.com>
Mon, 17 Feb 2020 12:27:58 +0000 (13:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 22:30:54 +0000 (14:30 -0800)
commitd8c064ac96d873222e43747a39a437a7efcc73e2
treeea4e9fd226dcaec59d14d0b17b6998982bdb69c3
parent9245698021a28682f39210d079052270d8b062d3
net: vlan: suppress "failed to kill vid" warnings

When a real dev unregisters, vlan_device_event() also unregisters all
of its vlan interfaces. For each VID this ends up in __vlan_vid_del(),
which attempts to remove the VID from the real dev's VLAN filter.

But the unregistering real dev might no longer be able to issue the
required IOs, and return an error. Subsequently we raise a noisy warning
msg that is not appropriate for this situation: the real dev is being
torn down anyway, there shouldn't be any worry about cleanly releasing
all of its HW-internal resources.

So to avoid scaring innocent users, suppress this warning when the
failed deletion happens on an unregistering device.
While at it also convert the raw pr_warn() to a more fitting
netdev_warn().

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_core.c