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);
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to