Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jul 2012 17:25:48 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Jack F Vogel <jfv@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r238148 - in head/sys: conf dev/e1000 modules/igb
Message-ID:  <201207051725.48614.jhb@freebsd.org>
In-Reply-To: <201207052026.q65KQw9m016770@svn.freebsd.org>
References:  <201207052026.q65KQw9m016770@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, July 05, 2012 4:26:58 pm Jack F Vogel wrote:
> Author: jfv
> Date: Thu Jul  5 20:26:57 2012
> New Revision: 238148
> URL: http://svn.freebsd.org/changeset/base/238148
> 
> Log:
>   Sync with Intel internal source:
>      shared code update and small changes in core required
>   Add support for new i210/i211 devices
>   Improve queue calculation based on mac type
>   
>   MFC after:5 days

I only spot two small regressions in this merge:

Index: if_igb.c
===================================================================
--- if_igb.c	(revision 238148)
+++ if_igb.c	(working copy)
@@ -767,8 +767,6 @@ igb_detach(device_t dev)
 	if (adapter->vlan_detach != NULL)
 		EVENTHANDLER_DEREGISTER(vlan_unconfig, adapter->vlan_detach);
 
-	ether_ifdetach(adapter->ifp);
-
 	callout_drain(&adapter->timer);
 
 #ifdef DEV_NETMAP
@@ -965,7 +963,7 @@ igb_mq_start(struct ifnet *ifp, struct mbuf *m)
 		IGB_TX_UNLOCK(txr);
 	} else {
 		err = drbr_enqueue(ifp, txr->br, m);
-		taskqueue_enqueue(que->tq, &que->que_task);
+		taskqueue_enqueue(que->tq, &txr->txq_task);
 	}
 
 	return (err);

(The current driver calls ether_ifdetach() twice, and the second change 
refixes the issue with packets being delivered out-of-order.)

However, the changes to add a (int *)cast to eee_disable are not safe.
You will need to add some sort of SYSCTL_PROC wrapper that sets the
boolean directly instead.  I don't think it is safe to rely on bool
being an int.

-- 
John Baldwin



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