Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2018 09:03:50 +0000 (UTC)
From:      Marcin Wojtas <mw@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r338692 - stable/11/sys/dev/ena
Message-ID:  <201809150903.w8F93og1069147@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809150903.w8F93og1069147>