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
This commit is contained in:
Luigi Rizzo 2013-12-26 05:22:38 +00:00
parent b8b4cfcdf6
commit 7091cd69d0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259907

View File

@ -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);
}