svn commit: r338692 - stable/11/sys/dev/ena
Marcin Wojtas
mw at FreeBSD.org
Sat Sep 15 09:03:51 UTC 2018
Author: mw
Date: Sat Sep 15 09:03:50 2018
New Revision: 338692
URL: https://svnweb.freebsd.org/changeset/base/338692
Log:
MFC r333454: Skip setting the MTU for ENA if it is not changing
Sponsored by: Amazon, Inc.
Modified:
stable/11/sys/dev/ena/ena.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/ena/ena.c
==============================================================================
--- stable/11/sys/dev/ena/ena.c Fri Sep 14 23:21:52 2018 (r338691)
+++ stable/11/sys/dev/ena/ena.c Sat Sep 15 09:03:50 2018 (r338692)
@@ -2302,6 +2302,8 @@ ena_ioctl(if_t ifp, u_long command, caddr_t data)
rc = 0;
switch (command) {
case SIOCSIFMTU:
+ if (ifp->if_mtu == ifr->ifr_mtu)
+ break;
sx_xlock(&adapter->ioctl_sx);
ena_down(adapter);
More information about the svn-src-all
mailing list