diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2013-04-02 14:36:46 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-05 00:46:13 -0400 |
commit | 31d1670e73f4911fe401273a8f576edc9c2b5fea (patch) | |
tree | c486c48066545f816af98306660cb439428405b6 /drivers/net/ethernet/atheros/atl1e/atl1e.h | |
parent | 4543fbefe6e06a9e40d9f2b28d688393a299f079 (diff) |
atl1e: limit gso segment size to prevent generation of wrong ip length fields
The limit of 0x3c00 is taken from the windows driver.
Suggested-by: Huang, Xiong <xiong@qca.qualcomm.com>
Cc: Huang, Xiong <xiong@qca.qualcomm.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros/atl1e/atl1e.h')
-rw-r--r-- | drivers/net/ethernet/atheros/atl1e/atl1e.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e.h b/drivers/net/ethernet/atheros/atl1e/atl1e.h index edfdf6b950e..b5fd934585e 100644 --- a/drivers/net/ethernet/atheros/atl1e/atl1e.h +++ b/drivers/net/ethernet/atheros/atl1e/atl1e.h @@ -186,7 +186,7 @@ struct atl1e_tpd_desc { /* how about 0x2000 */ #define MAX_TX_BUF_LEN 0x2000 #define MAX_TX_BUF_SHIFT 13 -/*#define MAX_TX_BUF_LEN 0x3000 */ +#define MAX_TSO_SEG_SIZE 0x3c00 /* rrs word 1 bit 0:31 */ #define RRS_RX_CSUM_MASK 0xFFFF |