diff options
author | yongari <yongari@FreeBSD.org> | 2014-04-14 04:51:59 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2014-04-14 04:51:59 +0000 |
commit | fa731335a20543877153a2aabbf27e200ec99974 (patch) | |
tree | 933fe7b4e09574af8155058254d209d53d59c352 /sys/dev/alc | |
parent | bfa777d36fc90a10299c7dfda42c27512bbdb0a0 (diff) | |
download | FreeBSD-src-fa731335a20543877153a2aabbf27e200ec99974.zip FreeBSD-src-fa731335a20543877153a2aabbf27e200ec99974.tar.gz |
MFC r263957:
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.
Diffstat (limited to 'sys/dev/alc')
-rw-r--r-- | sys/dev/alc/if_alcvar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/alc/if_alcvar.h b/sys/dev/alc/if_alcvar.h index b7c9d38..f2d806f 100644 --- a/sys/dev/alc/if_alcvar.h +++ b/sys/dev/alc/if_alcvar.h @@ -42,7 +42,7 @@ #define ALC_TSO_MAXSEGSIZE 4096 #define ALC_TSO_MAXSIZE (65535 + sizeof(struct ether_vlan_header)) -#define ALC_MAXTXSEGS 32 +#define ALC_MAXTXSEGS 35 #define ALC_ADDR_LO(x) ((uint64_t) (x) & 0xFFFFFFFF) #define ALC_ADDR_HI(x) ((uint64_t) (x) >> 32) |