tg3: Expand 4g_overflow_test workaround to skb fragments of any size.
authorNithin Sujir <nsujir@broadcom.com>
Fri, 20 Dec 2013 01:44:11 +0000 (17:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Dec 2013 17:51:44 +0000 (12:51 -0500)
commit375679104ab3ccfd18dcbd7ba503734fb9a2c63a
tree9b6a1c98a813167084e219931c1999fb989a63d6
parent1a29321ed045e3aad23c5f7b63036e465ee3093a
tg3: Expand 4g_overflow_test workaround to skb fragments of any size.

The current driver assumes that an skb fragment can only be upto jumbo
size. Presumably this was a fast-path optimization. This assumption is
no longer true as fragments can be upto 32k.

v2: Remove unnecessary parantheses per Eric Dumazet.

Cc: stable@vger.kernel.org
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c