]> git.karo-electronics.de Git - karo-tx-linux.git/commit
r8169: expand received packet length indication.
authorFrancois Romieu <romieu@fr.zoreil.com>
Fri, 5 Oct 2012 21:29:12 +0000 (23:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:28:12 +0000 (05:28 +0900)
commit11bd9becc350ab8adbb7f749c10536741d617d8a
treec1ac26eefabf0824c862edda19ad4c63989b77d9
parentcc669c37ba4a9c5c54c7842d0c9428aab64d62d7
r8169: expand received packet length indication.

commit deb9d93c89d311714a60809b28160e538e1cbb43 upstream.

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>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/r8169.c