Author: yongari
Date: Mon May  7 04:56:26 2012
New Revision: 235119
URL: http://svn.freebsd.org/changeset/base/235119

Log:
  Restore jumbo frame configuration which was broken in r218423.
  
  Submitted by: Andrey Zonov <andrey <> zonov dot org > (initial version)
  Tested by:    Andrey Zonov <andrey <> zonov dot org >
  MFC after:    1 week

Modified:
  head/sys/dev/bce/if_bce.c

Modified: head/sys/dev/bce/if_bce.c
==============================================================================
--- head/sys/dev/bce/if_bce.c   Mon May  7 04:36:48 2012        (r235118)
+++ head/sys/dev/bce/if_bce.c   Mon May  7 04:56:26 2012        (r235119)
@@ -6842,6 +6842,8 @@ bce_init_locked(struct bce_softc *sc)
        bcopy(IF_LLADDR(sc->bce_ifp), sc->eaddr, ETHER_ADDR_LEN);
        bce_set_mac_addr(sc);
 
+       if (bce_hdr_split == FALSE)
+               bce_get_rx_buffer_sizes(sc, ifp->if_mtu);
        /*
         * Calculate and program the hardware Ethernet MTU
         * size. Be generous on the receive if we have room
@@ -7436,22 +7438,10 @@ bce_ioctl(struct ifnet *ifp, u_long comm
 
                BCE_LOCK(sc);
                ifp->if_mtu = ifr->ifr_mtu;
-
-               if (bce_hdr_split == FALSE) {
-                       if (ifp->if_drv_flags & IFF_DRV_RUNNING) {
-                               /*
-                                * Because allocation size is used in RX
-                                * buffer allocation, stop controller if
-                                * it is already running.
-                                */
-                               bce_stop(sc);
-                       }
-
-                       bce_get_rx_buffer_sizes(sc, ifp->if_mtu);
-
+               if (ifp->if_drv_flags & IFF_DRV_RUNNING) {
+                       ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
                        bce_init_locked(sc);
                }
-
                BCE_UNLOCK(sc);
                break;
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to