diff options
author | Andrew Rybchenko <arybchik@FreeBSD.org> | 2017-01-07 10:55:38 +0000 |
---|---|---|
committer | Andrew Rybchenko <arybchik@FreeBSD.org> | 2017-01-07 10:55:38 +0000 |
commit | 6a09b206559ba5d40622944c4f086179d47c0229 (patch) | |
tree | ce72f6f042a1c68e397d3bbdefc5b0b02d2e0213 /sys/dev/sfxge/common/hunt_nic.c | |
parent | 1eec14756f9019ab50d687c9a5d7d868f9e80636 (diff) | |
download | src-6a09b206559ba5d40622944c4f086179d47c0229.tar.gz src-6a09b206559ba5d40622944c4f086179d47c0229.zip |
sfxge(4): allow DMA descs to cross 4k boundary on EF10
Siena has limitation on maximum byte count and 4k boundary crosssing
(which is stricter than maximum byte count).
EF10 has limitation on maximum byte count only.
Reviewed by: philip
Sponsored by: Solarflare Communications, Inc.
MFC after: 2 days
Differential Revision: https://reviews.freebsd.org/D9061
Notes
Notes:
svn path=/head/; revision=311640
Diffstat (limited to 'sys/dev/sfxge/common/hunt_nic.c')
-rw-r--r-- | sys/dev/sfxge/common/hunt_nic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/sfxge/common/hunt_nic.c b/sys/dev/sfxge/common/hunt_nic.c index 14d6c1fb7b84..477fa76da05f 100644 --- a/sys/dev/sfxge/common/hunt_nic.c +++ b/sys/dev/sfxge/common/hunt_nic.c @@ -304,6 +304,10 @@ hunt_board_cfg( /* Alignment for WPTR updates */ encp->enc_rx_push_align = EF10_RX_WPTR_ALIGN; + encp->enc_tx_dma_desc_size_max = EFX_MASK32(ESF_DZ_RX_KER_BYTE_CNT); + /* No boundary crossing limits */ + encp->enc_tx_dma_desc_boundary = 0; + /* * Set resource limits for MC_CMD_ALLOC_VIS. Note that we cannot use * MC_CMD_GET_RESOURCE_LIMITS here as that reports the available |