]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Skip setting the MTU for ENA if it is not changing
authormw <mw@FreeBSD.org>
Thu, 10 May 2018 09:32:59 +0000 (09:32 +0000)
committermw <mw@FreeBSD.org>
Thu, 10 May 2018 09:32:59 +0000 (09:32 +0000)
commite2ad139b86622c7be3d0b2f393479eb347393d78
tree6af614e7d6b7b59ba4076043522ad45680728d92
parent18c1d537254f375055df4eaae6f11f685bbd364c
Skip setting the MTU for ENA if it is not changing

On AWS, a network interface can get reinitialized every 30 minutes due
to the MTU being (re)set when a new DHCP lease is obtained. This can
cause packet drop, along with annoying syslog messages.

Skip setting the MTU in the ena driver if the new MTU is the same as the
old MTU. Note this fix is already in the netfront driver.

Testing: Verified ena up/down messages do not appear every 30 min in
/var/log/messages with the fix in place.

Submitted by:   Krishna Yenduri <kyenduri@brkt.com>
Reviewed by: Michal Krawczyk <mk@semihalf.com>
sys/dev/ena/ena.c