diff options
author | Luigi Rizzo <luigi@FreeBSD.org> | 2013-12-26 05:22:38 +0000 |
---|---|---|
committer | Luigi Rizzo <luigi@FreeBSD.org> | 2013-12-26 05:22:38 +0000 |
commit | 7091cd69d06131f12c79621aa45681f97addf049 (patch) | |
tree | 9b971001b5a645a9825c0ad3f2b2523988efa2ab /sys/dev/e1000 | |
parent | b8b4cfcdf6f6444685b2cbc8af6814f92463c20e (diff) | |
download | src-7091cd69d06131f12c79621aa45681f97addf049.tar.gz src-7091cd69d06131f12c79621aa45681f97addf049.zip |
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
Notes
Notes:
svn path=/head/; revision=259907
Diffstat (limited to 'sys/dev/e1000')
-rw-r--r-- | sys/dev/e1000/if_lem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/e1000/if_lem.c b/sys/dev/e1000/if_lem.c index 1df8de951ab6..a3da50c176ed 100644 --- a/sys/dev/e1000/if_lem.c +++ b/sys/dev/e1000/if_lem.c @@ -2679,7 +2679,7 @@ lem_setup_transmit_structures(struct adapter *adapter) 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); } |