svn commit: r249339 - head/sys/dev/e1000

Jack F Vogel jfv at FreeBSD.org
Wed Apr 10 17:51:40 UTC 2013


Author: jfv
Date: Wed Apr 10 17:51:39 2013
New Revision: 249339
URL: http://svnweb.freebsd.org/changeset/base/249339

Log:
  Simplify allocate_legacy code, txr pointer was breaking LEGACY compile,
  thanks to Nick Rogers for pointing this out.

Modified:
  head/sys/dev/e1000/if_igb.c

Modified: head/sys/dev/e1000/if_igb.c
==============================================================================
--- head/sys/dev/e1000/if_igb.c	Wed Apr 10 17:51:15 2013	(r249338)
+++ head/sys/dev/e1000/if_igb.c	Wed Apr 10 17:51:39 2013	(r249339)
@@ -2474,7 +2474,6 @@ igb_allocate_legacy(struct adapter *adap
 {
 	device_t		dev = adapter->dev;
 	struct igb_queue	*que = adapter->queues;
-	struct tx_ring		*txr = adapter->tx_rings;
 	int			error, rid = 0;
 
 	/* Turn off all interrupts */
@@ -2494,7 +2493,7 @@ igb_allocate_legacy(struct adapter *adap
 	}
 
 #ifndef IGB_LEGACY_TX
-	TASK_INIT(&txr->txq_task, 0, igb_deferred_mq_start, txr);
+	TASK_INIT(&que->txr->txq_task, 0, igb_deferred_mq_start, que->txr);
 #endif
 
 	/*


More information about the svn-src-head mailing list