svn commit: r270235 - stable/10/sys/dev/e1000

Luigi Rizzo luigi at FreeBSD.org
Wed Aug 20 17:33:32 UTC 2014


Author: luigi
Date: Wed Aug 20 17:33:32 2014
New Revision: 270235
URL: http://svnweb.freebsd.org/changeset/base/270235

Log:
  MFC 259907 (dates back to december)
  use the correct netmap <-> nic slot mapping on the transmit ring for 'lem'.
  This bug would manifest only in netmap mode and on packets transmitted after
  a NIC reset while netmap mode is active.

Modified:
  stable/10/sys/dev/e1000/if_lem.c

Modified: stable/10/sys/dev/e1000/if_lem.c
==============================================================================
--- stable/10/sys/dev/e1000/if_lem.c	Wed Aug 20 17:27:15 2014	(r270234)
+++ stable/10/sys/dev/e1000/if_lem.c	Wed Aug 20 17:33:32 2014	(r270235)
@@ -2678,7 +2678,7 @@ lem_setup_transmit_structures(struct ada
 			void *addr;
 
 			addr = PNMB(slot + si, &paddr);
-			adapter->tx_desc_base[si].buffer_addr = htole64(paddr);
+			adapter->tx_desc_base[i].buffer_addr = htole64(paddr);
 			/* reload the map for netmap mode */
 			netmap_load_map(adapter->txtag, tx_buffer->map, addr);
 		}


More information about the svn-src-stable mailing list