openvswitch: Warn over-mtu packets only if iface is UP.
authorFlavio Leitner <fbl@sysclose.org>
Tue, 16 Mar 2021 20:14:27 +0000 (17:14 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2021 23:28:30 +0000 (16:28 -0700)
commitebfbc46b35cb70b9fbd88f376d7a33b79f60adff
tree7149adcd9fbe0f317c57af926c7d1109a67bbd8b
parent01035bcc0f9195a19a76c8a006b3c520428acb61
openvswitch: Warn over-mtu packets only if iface is UP.

It is not unusual to have the bridge port down. Sometimes
it has the old MTU, which is fine since it's not being used.

However, the kernel spams the log with a warning message
when a packet is going to be sent over such port. Fix that
by warning only if the interface is UP.

Signed-off-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport.c