svn commit: r311154 - head/sys/dev/ixl

Sean Bruno sbruno at FreeBSD.org
Tue Jan 3 14:52:40 UTC 2017


Author: sbruno
Date: Tue Jan  3 14:52:39 2017
New Revision: 311154
URL: https://svnweb.freebsd.org/changeset/base/311154

Log:
  Restore r302384 that was dropped when r303816 updated the driver to 1.6.6.-k
  
  Original log:
  Do not initialize the adapter on MTU change when adapter status is down.
  This fixes long-standing problems when changing settings of the adapter.
  
  Discussed in:
  https://lists.freebsd.org/pipermail/freebsd-net/2016-June/045509.html
  
  Reported by:	Franco Fichtner <franco at opnsense.org>
  MFH:		2 days

Modified:
  head/sys/dev/ixl/ixl_pf_main.c

Modified: head/sys/dev/ixl/ixl_pf_main.c
==============================================================================
--- head/sys/dev/ixl/ixl_pf_main.c	Tue Jan  3 05:44:24 2017	(r311153)
+++ head/sys/dev/ixl/ixl_pf_main.c	Tue Jan  3 14:52:39 2017	(r311154)
@@ -4927,7 +4927,8 @@ ixl_ioctl(struct ifnet * ifp, u_long com
 			vsi->max_frame_size =
 				ifp->if_mtu + ETHER_HDR_LEN + ETHER_CRC_LEN
 			    + ETHER_VLAN_ENCAP_LEN;
-			ixl_init_locked(pf);
+			if (ifp->if_drv_flags & IFF_DRV_RUNNING)
+				ixl_init_locked(pf);
 			IXL_PF_UNLOCK(pf);
 		}
 		break;


More information about the svn-src-all mailing list