atl1e: limit gso segment size to prevent generation of wrong ip length fields
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Tue, 2 Apr 2013 14:36:46 +0000 (14:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 May 2013 16:41:06 +0000 (09:41 -0700)
commit74595d06f51d68bbc25c5864d15566ea5049a33a
tree528c86b75a9564be4c9341efafb6ce14c697b6b5
parent617f13b4194b6aad612733a932bc89d883d9325e
atl1e: limit gso segment size to prevent generation of wrong ip length fields

[ Upstream commit 31d1670e73f4911fe401273a8f576edc9c2b5fea ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/atheros/atl1e/atl1e.h
drivers/net/ethernet/atheros/atl1e/atl1e_main.c