svn commit: r365330 - stable/11/sys/dev/qlxgb

Mark Johnston markj at FreeBSD.org
Fri Sep 4 13:19:19 UTC 2020


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;


More information about the svn-src-stable mailing list