Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Sep 2020 13:19:19 +0000 (UTC)
From:      Mark Johnston <markj@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: r365330 - stable/11/sys/dev/qlxgb
Message-ID:  <202009041319.084DJJtN010857@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Sep  4 13:19:18 2020
New Revision: 365330
URL: https://svnweb.freebsd.org/changeset/base/365330

Log:
  MFC r365060:
  qlxgb: Initialize if_mtu before setting max_frame_size.
  
  PR:	249050

Modified:
  stable/11/sys/dev/qlxgb/qla_os.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/qlxgb/qla_os.c
==============================================================================
--- stable/11/sys/dev/qlxgb/qla_os.c	Fri Sep  4 13:17:55 2020	(r365329)
+++ stable/11/sys/dev/qlxgb/qla_os.c	Fri Sep  4 13:19:18 2020	(r365330)
@@ -670,6 +670,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?202009041319.084DJJtN010857>