r8169: expand received packet length indication.
authorFrancois Romieu <romieu@fr.zoreil.com>
Tue, 12 Jul 2011 06:24:28 +0000 (08:24 +0200)
committerFrancois Romieu <romieu@fr.zoreil.com>
Thu, 22 Sep 2011 09:35:26 +0000 (11:35 +0200)
commitdeb9d93c89d311714a60809b28160e538e1cbb43
tree1da2188627e00456b02bc097b726d0f52666ca25
parentc2218925f3a653ac6c39e62eb0e10232d2b44dab
r8169: expand received packet length indication.

8168d and above allow jumbo frames beyond 8k. Bump the received
packet length check before enabling jumbo frames on these chipsets.

Frame length indication covers bits 0..13 of the first Rx descriptor
32 bits for the 8169 and 8168. I only have authoritative documentation
for the allowed use of the extra (13) bit with the 8169 and 8168c.
Realtek's drivers use the same mask for the 816x and the fast ethernet
only 810x.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
drivers/net/ethernet/realtek/r8169.c