Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 2020 20:13:51 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365060 - head/sys/dev/qlxgb
Message-ID:  <202009012013.081KDprF079610@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Tue Sep  1 20:13:50 2020
New Revision: 365060
URL: https://svnweb.freebsd.org/changeset/base/365060

Log:
  qlxgb: Initialize if_mtu before setting max_frame_size.
  
  Previously we were relying on ether_ifattach() to set if_mtu, but
  max_frame_size is initialized earlier.  This fixes a regression
  introduced by r250375.
  
  PR:		249050
  Submitted by:	Christian Vallières <novacrash_@hotmail.com>
  MFC after:	3 days

Modified:
  head/sys/dev/qlxgb/qla_os.c

Modified: head/sys/dev/qlxgb/qla_os.c
==============================================================================
--- head/sys/dev/qlxgb/qla_os.c	Tue Sep  1 19:54:43 2020	(r365059)
+++ head/sys/dev/qlxgb/qla_os.c	Tue Sep  1 20:13:50 2020	(r365060)
@@ -671,6 +671,7 @@ qla_init_ifnet(device_t dev, qla_host_t *ha)
 
 	if_initname(ifp, device_get_name(dev), device_get_unit(dev));
 
+	ifp->if_mtu = ETHERMTU;
 	ifp->if_baudrate = IF_Gbps(10);
 	ifp->if_init = qla_init;
 	ifp->if_softc = ha;



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