Skip to content

Commit 3090bd9

Browse files
hayesorzFrancois Romieu
authored andcommitted
r8169: define the early size for 8111evl
For RTL8111EVL, the register of MaxTxPacketSize doesn't acctually limit the tx size. It influnces the feature of early tx. Signed-off-by: Hayes Wang <[email protected]>
1 parent 8decf86 commit 3090bd9

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

drivers/net/ethernet/realtek/r8169.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ enum rtl_registers {
311311
MaxTxPacketSize = 0xec, /* 8101/8168. Unit of 128 bytes. */
312312

313313
#define TxPacketMax (8064 >> 7)
314+
#define EarlySize 0x27
314315

315316
FuncEvent = 0xf0,
316317
FuncEventMask = 0xf4,
@@ -4479,7 +4480,7 @@ static void rtl_hw_start_8168e_2(void __iomem *ioaddr, struct pci_dev *pdev)
44794480
rtl_w1w0_eri(ioaddr, 0x0d4, ERIAR_MASK_0011, 0x0c00, 0xff00,
44804481
ERIAR_EXGMAC);
44814482

4482-
RTL_W8(MaxTxPacketSize, 0x27);
4483+
RTL_W8(MaxTxPacketSize, EarlySize);
44834484

44844485
rtl_disable_clock_request(pdev);
44854486

0 commit comments

Comments
 (0)