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 <[email protected]>
  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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to