Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next] r8169:Set RxConfig on same func. with TxConfig
@ 2015-08-18 19:10 Corcodel Marian
  2015-08-18 19:42 ` David Miller
  2015-08-18 20:04 ` Eric Dumazet
  0 siblings, 2 replies; 5+ messages in thread
From: Corcodel Marian @ 2015-08-18 19:10 UTC (permalink / raw)
  To: netdev; +Cc: Corcodel Marian

 Add set DMA burst size and  Rx FIFO threshold on RxConfig  
  register to function rtl_set_rx_tx_config_register.


Signed-off-by: Corcodel Marian <corcodel.marian@gmail.com>

diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index 6d16de3..c3c908c 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -5183,6 +5183,7 @@ static void rtl_set_rx_tx_config_registers(struct rtl8169_private *tp)
 	/* Set DMA burst size and Interframe Gap Time */
 	RTL_W32(TxConfig, (TX_DMA_BURST << TxDMAShift) |
                 (InterFrameGap << TxInterFrameGapShift) | InterFrameGap2);
+	RTL_W32(RxConfig, RX_FIFO_THRESHOLD | RX_DMA_BURST);
 }
 
 static void rtl_hw_start(struct net_device *dev)
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-19 13:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-18 19:10 [PATCH net-next] r8169:Set RxConfig on same func. with TxConfig Corcodel Marian
2015-08-18 19:42 ` David Miller
2015-08-18 20:04 ` Eric Dumazet
2015-08-19  5:39   ` Marian Corcodel
2015-08-19 13:34     ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox