Author: luigi
Date: Thu Dec 26 05:22:38 2013
New Revision: 259907
URL: http://svnweb.freebsd.org/changeset/base/259907

Log:
  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.
  
  MFC after:    3 days

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

Modified: head/sys/dev/e1000/if_lem.c
==============================================================================
--- head/sys/dev/e1000/if_lem.c Thu Dec 26 04:24:08 2013        (r259906)
+++ head/sys/dev/e1000/if_lem.c Thu Dec 26 05:22:38 2013        (r259907)
@@ -2679,7 +2679,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);
                }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to