Move magic PCIe workaround constant to header - add appropriate comment
Suggested by: jfvogel
This commit is contained in:
parent
9f238ea6d9
commit
21e3069792
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164546
@ -2579,7 +2579,7 @@ em_allocate_transmit_structures(struct adapter *adapter)
|
||||
if ((adapter->hw.mac_type > em_82544) &&
|
||||
(adapter->hw.mac_type != em_82547)) {
|
||||
size = EM_TSO_SIZE;
|
||||
segsize = 4096; /* page size isn't always 4k */
|
||||
segsize = EM_TSO_PCIE_SEGMENT_SIZE;
|
||||
}
|
||||
|
||||
if ((error = bus_dma_tag_create(bus_get_dma_tag(dev), /* parent */
|
||||
|
@ -181,6 +181,12 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
/* #define EM_MASTER_SLAVE 2 */
|
||||
|
||||
|
||||
/*
|
||||
* Limitation of some PCIe chipsets when using TSO
|
||||
*/
|
||||
#define EM_TSO_PCIE_SEGMENT_SIZE 4096
|
||||
|
||||
/* Tunables -- End */
|
||||
|
||||
#define AUTONEG_ADV_DEFAULT (ADVERTISE_10_HALF | ADVERTISE_10_FULL | \
|
||||
|
Loading…
Reference in New Issue
Block a user