Date: Tue, 3 Jan 2017 14:52:39 +0000 (UTC) From: Sean Bruno <sbruno@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r311154 - head/sys/dev/ixl Message-ID: <201701031452.v03Eqdrt039285@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701031452.v03Eqdrt039285>