* [PATCH net v4] r8169: Prevent nic to start xmit without default priority.
@ 2016-02-04 6:09 Corcodel Marian
0 siblings, 0 replies; only message in thread
From: Corcodel Marian @ 2016-02-04 6:09 UTC (permalink / raw)
To: netdev; +Cc: Corcodel Marian
This patch set default priority before xmit operations and, also when nic running
on worst speed (500Mbs-1Mbs), this patch increase speed to 8-10Mbs.
Signed-off-by: Corcodel Marian <asd@marian1000.go.ro>
---
drivers/net/ethernet/realtek/r8169.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index 7588ba7..30eed0d 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -7113,6 +7113,8 @@ static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb,
u32 opts[2];
int frags;
+ RTL_W8(TxPoll, NPQ);
+
if (unlikely(!TX_FRAGS_READY_FOR(tp, skb_shinfo(skb)->nr_frags))) {
netif_err(tp, drv, dev, "BUG! Tx Ring full when queue awake!\n");
goto err_stop_0;
@@ -7166,7 +7168,6 @@ static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb,
tp->cur_tx += frags + 1;
- RTL_W8(TxPoll, NPQ);
mmiowb();
--
2.5.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-04 6:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-04 6:09 [PATCH net v4] r8169: Prevent nic to start xmit without default priority Corcodel Marian
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.