lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 29 Jun 2008 16:45:26 +0200 From: Francois Romieu <romieu@...zoreil.com> To: netdev@...r.kernel.org Cc: jeff@...zik.org, akpm@...ux-foundation.org, Edward Hsu <edward_hsu@...ltek.com.tw>, Mario Limonciello <mario_limonciello@...l.com>, Kasper Sandberg <lkml@...anurb.dk> Subject: [PATCH 8/13] r8169: Tx performance tweak Signed-off-by: Francois Romieu <romieu@...zoreil.com> Cc: Edward Hsu <edward_hsu@...ltek.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 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists