summaryrefslogtreecommitdiffstats
path: root/sys/dev/e1000
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2014-08-20 17:33:32 +0000
committerluigi <luigi@FreeBSD.org>2014-08-20 17:33:32 +0000
commitb2918a5219ed18937d07c00d9877350976d9043d (patch)
tree19b4fa69e06815f3e818ad53a65fae3419c97a80 /sys/dev/e1000
parent4c6c2c8b89f4687abb454f6a29001367f7125cf1 (diff)
downloadFreeBSD-src-b2918a5219ed18937d07c00d9877350976d9043d.zip
FreeBSD-src-b2918a5219ed18937d07c00d9877350976d9043d.tar.gz
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.
Diffstat (limited to 'sys/dev/e1000')
-rw-r--r--sys/dev/e1000/if_lem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/e1000/if_lem.c b/sys/dev/e1000/if_lem.c
index 8732838..bc25e18 100644
--- a/sys/dev/e1000/if_lem.c
+++ b/sys/dev/e1000/if_lem.c
@@ -2678,7 +2678,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);
}
OpenPOWER on IntegriCloud