devices/e1000/e1000_main-2.6.20-ethercat.c
branchstable-1.5
changeset 2421 bc2d4bf9cbe5
parent 2050 a3e59f2a8589
child 2471 fc64a4b1ec1a
equal deleted inserted replaced
2420:69056c46aa4d 2421:bc2d4bf9cbe5
    21 
    21 
    22   Contact Information:
    22   Contact Information:
    23   Linux NICS <linux.nics@intel.com>
    23   Linux NICS <linux.nics@intel.com>
    24   e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
    24   e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
    25   Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
    25   Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
    26   
    26 
    27   vim: noexpandtab
    27   vim: noexpandtab
    28 
    28 
    29 *******************************************************************************/
    29 *******************************************************************************/
    30 
    30 
    31 #include "e1000-2.6.20-ethercat.h"
    31 #include "e1000-2.6.20-ethercat.h"
  2401 
  2401 
  2402 	if (!adapter->netdev && netif_running(netdev)) {
  2402 	if (!adapter->netdev && netif_running(netdev)) {
  2403 		/* No need to loop, because 82542 supports only 1 queue */
  2403 		/* No need to loop, because 82542 supports only 1 queue */
  2404 		struct e1000_rx_ring *ring = &adapter->rx_ring[0];
  2404 		struct e1000_rx_ring *ring = &adapter->rx_ring[0];
  2405 		e1000_configure_rx(adapter);
  2405 		e1000_configure_rx(adapter);
  2406 		if (adapter->ecdev) { 
  2406 		if (adapter->ecdev) {
  2407 			/* fill rx ring completely! */
  2407 			/* fill rx ring completely! */
  2408 			adapter->alloc_rx_buf(adapter, ring, ring->count);
  2408 			adapter->alloc_rx_buf(adapter, ring, ring->count);
  2409 		} else {
  2409 		} else {
  2410             /* this one leaves the last ring element unallocated! */
  2410             /* this one leaves the last ring element unallocated! */
  2411 			adapter->alloc_rx_buf(adapter, ring, E1000_DESC_UNUSED(ring));
  2411 			adapter->alloc_rx_buf(adapter, ring, E1000_DESC_UNUSED(ring));