netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Francois Romieu <romieu@fr.zoreil.com>
To: netdev@vger.kernel.org
Cc: jeff@garzik.org, akpm@linux-foundation.org,
	Edward Hsu <edward_hsu@realtek.com.tw>,
	Mario Limonciello <mario_limonciello@dell.com>,
	Kasper Sandberg <lkml@metanurb.dk>
Subject: [PATCH 8/13] r8169: Tx performance tweak
Date: Sun, 29 Jun 2008 16:45:26 +0200	[thread overview]
Message-ID: <20080629144526.GI1540@electric-eye.fr.zoreil.com> (raw)
In-Reply-To: <20080629143817.GA1540@electric-eye.fr.zoreil.com>

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Edward Hsu <edward_hsu@realtek.com.tw>
---
 drivers/net/r8169.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index c2861a4..46bdcb9 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -2156,19 +2156,19 @@ static void rtl_hw_start_8169(struct net_device *dev)
 	RTL_W16(IntrMask, tp->intr_event);
 }
 
-static void rtl8168_tx_performance_tweak(struct pci_dev *pdev, unsigned int reg
-)
+static void rtl8168_tx_performance_tweak(struct pci_dev *pdev,
+					 unsigned int reg, u8 force)
 {
 	u8 ctl;
 
 	pci_read_config_byte(pdev, reg, &ctl);
-	ctl = (ctl & ~0x70) | 0x50;
+	ctl = (ctl & ~0x70) | force;
 	pci_write_config_byte(pdev, reg, ctl);
 }
 
 static void rtl_hw_start_8168bb(void __iomem *ioaddr, struct pci_dev *pdev)
 {
-	rtl8168_tx_performance_tweak(pdev, 0x69);
+	rtl8168_tx_performance_tweak(pdev, 0x69, 0x58);
 }
 
 static void rtl_hw_start_8168bef(void __iomem *ioaddr, struct pci_dev *pdev)
@@ -2178,7 +2178,7 @@ static void rtl_hw_start_8168bef(void __iomem *ioaddr, struct pci_dev *pdev)
 
 static void __rtl_hw_start_8168cpx(void __iomem *ioaddr, struct pci_dev *pdev)
 {
-	rtl8168_tx_performance_tweak(pdev, 0x69);
+	rtl8168_tx_performance_tweak(pdev, 0x79, 0x50);
 }
 
 static void rtl_hw_start_8168c(void __iomem *ioaddr, struct pci_dev *pdev)
-- 
1.5.3.3


  parent reply	other threads:[~2008-06-29 14:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-29 14:38 [RFT 0/13] r8169 branch info Francois Romieu
2008-06-29 14:39 ` [PATCH 1/13] r8169: multicast register update (sync with Realtek's 8.004.00 8168 driver) Francois Romieu
2008-06-29 14:40 ` [PATCH 2/13] r8169: remove non-napi code Francois Romieu
2008-06-29 14:41 ` [PATCH 3/13] r8169: update phy init parameters Francois Romieu
2008-06-29 14:42 ` [PATCH 4/13] r8169: new phy init parameters for the 8168b Francois Romieu
2008-06-29 14:43 ` [PATCH 5/13] r8169: shuffle some registers handling around (8168 operation only) Francois Romieu
2008-06-29 14:44 ` [PATCH 6/13] r8169: add 8168 registers description Francois Romieu
2008-06-29 14:44 ` [PATCH 7/13] r8169: make room for more specific 8168 hardware start procedure Francois Romieu
2008-06-29 14:45 ` Francois Romieu [this message]
2008-06-30 10:53   ` [PATCH 8/13] r8169: Tx performance tweak Ben Hutchings
2008-07-01 21:40     ` Francois Romieu
2008-06-29 14:46 ` [PATCH 9/13] r8169: sync existing 8168 device hardware start sequences with vendor driver Francois Romieu
2008-06-29 14:47 ` [PATCH 10/13] r8169: add a new 8168 flavor Francois Romieu
2008-06-29 14:47 ` [PATCH 11/13] r8169: add a new 8168 flavor (bis) Francois Romieu
2008-06-29 14:48 ` [PATCH 12/13] r8169: add a new 8168 flavor (ter) Francois Romieu
2008-06-29 14:49 ` [PATCH 13/13] r8169: change default behavior for mildly identified 8168c chipsets Francois Romieu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080629144526.GI1540@electric-eye.fr.zoreil.com \
    --to=romieu@fr.zoreil.com \
    --cc=akpm@linux-foundation.org \
    --cc=edward_hsu@realtek.com.tw \
    --cc=jeff@garzik.org \
    --cc=lkml@metanurb.dk \
    --cc=mario_limonciello@dell.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).