Skip to content

Commit deb9d93

Browse files
author
Francois Romieu
committed
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 <[email protected]>
1 parent c221892 commit deb9d93

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/realtek

1 file changed

+1
-1
lines changed

drivers/net/ethernet/realtek/r8169.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5533,7 +5533,7 @@ static int rtl8169_rx_interrupt(struct net_device *dev,
55335533
} else {
55345534
struct sk_buff *skb;
55355535
dma_addr_t addr = le64_to_cpu(desc->addr);
5536-
int pkt_size = (status & 0x00001FFF) - 4;
5536+
int pkt_size = (status & 0x00003fff) - 4;
55375537

55385538
/*
55395539
* The driver does not support incoming fragmented

0 commit comments

Comments
 (0)