From: Ben Hutchings <bhutchings@solarflare.com>
To: Francois Romieu <romieu@fr.zoreil.com>
Cc: netdev@vger.kernel.org, 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: Re: [PATCH 8/13] r8169: Tx performance tweak
Date: Mon, 30 Jun 2008 11:53:59 +0100 [thread overview]
Message-ID: <20080630105357.GH4050@solarflare.com> (raw)
In-Reply-To: <20080629144526.GI1540@electric-eye.fr.zoreil.com>
Francois Romieu wrote:
> 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);
[...]
This would be a lot more understandable if you used pci_find_capability()
and the named constants from <linux/pci_regs.h>:
#define PCI_EXP_DEVCTL 8 /* Device Control */
#define PCI_EXP_DEVCTL_NOSNOOP_EN 0x0800 /* Enable No Snoop */
#define PCI_EXP_DEVCTL_READRQ 0x7000 /* Max_Read_Request_Size */
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
next prev parent reply other threads:[~2008-06-30 10:54 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 ` [PATCH 8/13] r8169: Tx performance tweak Francois Romieu
2008-06-30 10:53 ` Ben Hutchings [this message]
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=20080630105357.GH4050@solarflare.com \
--to=bhutchings@solarflare.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 \
--cc=romieu@fr.zoreil.com \
/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).