diff options
author | Pyun YongHyeon <yongari@FreeBSD.org> | 2014-03-31 01:54:59 +0000 |
---|---|---|
committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2014-03-31 01:54:59 +0000 |
commit | 52ee8ac0274e8d4f75a146944803b2cdaad092bb (patch) | |
tree | 74de747b83372a8f57da81c4b04485edfa799ecc /sys/dev/ale | |
parent | 8a27a339b6563b3b83347a427c75b08261d5e85f (diff) | |
download | src-52ee8ac0274e8d4f75a146944803b2cdaad092bb.tar.gz src-52ee8ac0274e8d4f75a146944803b2cdaad092bb.zip |
Increase the number of TX DMA segments from 32 to 35. It turned
out 32 is not enough to support a full sized TSO packet.
While I'm here fix a long standing bug introduced in r169632 in
bce(4) where it didn't include L2 header length of TSO packet in
the maximum DMA segment size calculation.
In collaboration with: rmacklem
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=263957
Diffstat (limited to 'sys/dev/ale')
-rw-r--r-- | sys/dev/ale/if_alevar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ale/if_alevar.h b/sys/dev/ale/if_alevar.h index abf2d2e39a7c..8995c693f8b0 100644 --- a/sys/dev/ale/if_alevar.h +++ b/sys/dev/ale/if_alevar.h @@ -40,7 +40,7 @@ #define ALE_TSO_MAXSEGSIZE 4096 #define ALE_TSO_MAXSIZE (65535 + sizeof(struct ether_vlan_header)) -#define ALE_MAXTXSEGS 32 +#define ALE_MAXTXSEGS 35 #define ALE_ADDR_LO(x) ((uint64_t) (x) & 0xFFFFFFFF) #define ALE_ADDR_HI(x) ((uint64_t) (x) >> 32) |