]> www.infradead.org Git - users/jedix/linux-maple.git/commit
r8169: expand received packet length indication.
authorFrancois Romieu <romieu@fr.zoreil.com>
Tue, 12 Jul 2011 06:24:28 +0000 (08:24 +0200)
committerJoe Jin <joe.jin@oracle.com>
Fri, 18 May 2012 02:18:39 +0000 (10:18 +0800)
commitd78299c95e6c534b7f09734ad49c9d38c2f6f8fd
tree7ae5192e7321a43950ff227895238833c6d2d75e
parentfa77ad79292cfbe23576410200eb9f5b7d00e7e9
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.

(cherry picked from commit deb9d93c89d311714a60809b28160e538e1cbb43)
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/r8169.c