diff options
author | davidch <davidch@FreeBSD.org> | 2011-03-31 20:46:50 +0000 |
---|---|---|
committer | davidch <davidch@FreeBSD.org> | 2011-03-31 20:46:50 +0000 |
commit | 2b2848940917f6c3653f5ce98512538fef0da877 (patch) | |
tree | 46bf53532c0888c51a90d235245ee7516b340be4 /sys/dev/bxe/if_bxe.h | |
parent | 4c83b1bba4b449bdd0b62585ba1ebe3163ef107c (diff) | |
download | FreeBSD-src-2b2848940917f6c3653f5ce98512538fef0da877.zip FreeBSD-src-2b2848940917f6c3653f5ce98512538fef0da877.tar.gz |
- Fixed a problem where the stack passed a TSO frame larger than the 64K
size allowed by the DMA descriptor for TSO frames.
MFC after: One week
Diffstat (limited to 'sys/dev/bxe/if_bxe.h')
-rw-r--r-- | sys/dev/bxe/if_bxe.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/bxe/if_bxe.h b/sys/dev/bxe/if_bxe.h index 2b9fefb..20be94d 100644 --- a/sys/dev/bxe/if_bxe.h +++ b/sys/dev/bxe/if_bxe.h @@ -388,8 +388,9 @@ struct bxe_type { /* Reduce from 13 to leave room for the parsing buffer. */ #define BXE_MAX_SEGMENTS 12 -#define BXE_TSO_MAX_SIZE 65536 -#define BXE_TSO_MAX_SEG_SIZE 4096 +#define BXE_TSO_MAX_SEGMENTS 32 +#define BXE_TSO_MAX_SIZE (65535 + sizeof(struct ether_vlan_header)) +#define BXE_TSO_MAX_SEG_SIZE 4096 /* * Hardware Support For IP and TCP checksum. |