Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 2014 11:58:07 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r260318 - stable/9/sys/dev/e1000
Message-ID:  <201401051158.s05Bw7nq045969@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Sun Jan  5 11:58:07 2014
New Revision: 260318
URL: http://svnweb.freebsd.org/changeset/base/260318

Log:
  MFC revision 259907
  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/9/sys/dev/e1000/if_lem.c

Modified: stable/9/sys/dev/e1000/if_lem.c
==============================================================================
--- stable/9/sys/dev/e1000/if_lem.c	Sun Jan  5 10:52:57 2014	(r260317)
+++ stable/9/sys/dev/e1000/if_lem.c	Sun Jan  5 11:58:07 2014	(r260318)
@@ -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);
 		}



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