diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2011-11-16 02:00:55 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2011-11-16 02:00:55 +0000 |
commit | dcc20f4b7f9bc236b8ee1e44d7d3b1e0978954e0 (patch) | |
tree | b178deba79f7d3cdf716cb33a69a3a8f4896cfcb /sys | |
parent | a5e583eea09bfbe838558738a4f32f0a07fa522d (diff) | |
download | src-dcc20f4b7f9bc236b8ee1e44d7d3b1e0978954e0.tar.gz src-dcc20f4b7f9bc236b8ee1e44d7d3b1e0978954e0.zip |
The maximum TSO frame size should be:
maximum IP datagram size (65535 bytes) +
Ethernet header size (14 bytes) +
2 * VLAN tag size (4 bytes) [1].
[1] We need to multiply by 2 to account for the double VLAN tag
provision added in IEEE 802.1ad.
Submitted by: David Somayajulu (david.somayajulu qlogic.com)
MFC after: 4 days
Notes
Notes:
svn path=/head/; revision=227547
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/qlxgb/qla_def.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/qlxgb/qla_def.h b/sys/dev/qlxgb/qla_def.h index 8a761f483094..d40d5e2af2bb 100644 --- a/sys/dev/qlxgb/qla_def.h +++ b/sys/dev/qlxgb/qla_def.h @@ -86,7 +86,7 @@ typedef struct qla_tx_buf qla_tx_buf_t; #define QLA_MAX_SEGMENTS 63 /* maximum # of segs in a sg list */ #define QLA_MAX_FRAME_SIZE MJUM9BYTES #define QLA_STD_FRAME_SIZE 1514 -#define QLA_MAX_TSO_FRAME_SIZE (64 * 1024 - 1) +#define QLA_MAX_TSO_FRAME_SIZE ((64 * 1024 - 1) + 22) /* Number of MSIX/MSI Vectors required */ #define Q8_MSI_COUNT 4 |