diff options
author | David S. Miller <davem@davemloft.net> | 2009-06-15 06:02:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-15 06:02:23 -0400 |
commit | 9cbc1cb8cd46ce1f7645b9de249b2ce8460129bb (patch) | |
tree | 8d104ec2a459346b99413b0b77421ca7b9936c1a /drivers/net/r8169.c | |
parent | ca44d6e60f9de26281fda203f58b570e1748c015 (diff) | |
parent | 45e3e1935e2857c54783291107d33323b3ef33c8 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
Documentation/feature-removal-schedule.txt
drivers/scsi/fcoe/fcoe.c
net/core/drop_monitor.c
net/core/net-traces.c
Diffstat (limited to 'drivers/net/r8169.c')
-rw-r--r-- | drivers/net/r8169.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 007c881896d2..35196faa084e 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
@@ -66,7 +66,6 @@ static const int multicast_filter_limit = 32; | |||
66 | #define RX_DMA_BURST 6 /* Maximum PCI burst, '6' is 1024 */ | 66 | #define RX_DMA_BURST 6 /* Maximum PCI burst, '6' is 1024 */ |
67 | #define TX_DMA_BURST 6 /* Maximum PCI burst, '6' is 1024 */ | 67 | #define TX_DMA_BURST 6 /* Maximum PCI burst, '6' is 1024 */ |
68 | #define EarlyTxThld 0x3F /* 0x3F means NO early transmit */ | 68 | #define EarlyTxThld 0x3F /* 0x3F means NO early transmit */ |
69 | #define RxPacketMaxSize 0x3FE8 /* 16K - 1 - ETH_HLEN - VLAN - CRC... */ | ||
70 | #define SafeMtu 0x1c20 /* ... actually life sucks beyond ~7k */ | 69 | #define SafeMtu 0x1c20 /* ... actually life sucks beyond ~7k */ |
71 | #define InterFrameGap 0x03 /* 3 means InterFrameGap = the shortest one */ | 70 | #define InterFrameGap 0x03 /* 3 means InterFrameGap = the shortest one */ |
72 | 71 | ||
@@ -2366,10 +2365,10 @@ static u16 rtl_rw_cpluscmd(void __iomem *ioaddr) | |||
2366 | return cmd; | 2365 | return cmd; |
2367 | } | 2366 | } |
2368 | 2367 | ||
2369 | static void rtl_set_rx_max_size(void __iomem *ioaddr) | 2368 | static void rtl_set_rx_max_size(void __iomem *ioaddr, unsigned int rx_buf_sz) |
2370 | { | 2369 | { |
2371 | /* Low hurts. Let's disable the filtering. */ | 2370 | /* Low hurts. Let's disable the filtering. */ |
2372 | RTL_W16(RxMaxSize, 16383); | 2371 | RTL_W16(RxMaxSize, rx_buf_sz); |
2373 | } | 2372 | } |
2374 | 2373 | ||
2375 | static void rtl8169_set_magic_reg(void __iomem *ioaddr, unsigned mac_version) | 2374 | static void rtl8169_set_magic_reg(void __iomem *ioaddr, unsigned mac_version) |
@@ -2416,7 +2415,7 @@ static void rtl_hw_start_8169(struct net_device *dev) | |||
2416 | 2415 | ||
2417 | RTL_W8(EarlyTxThres, EarlyTxThld); | 2416 | RTL_W8(EarlyTxThres, EarlyTxThld); |
2418 | 2417 | ||
2419 | rtl_set_rx_max_size(ioaddr); | 2418 | rtl_set_rx_max_size(ioaddr, tp->rx_buf_sz); |
2420 | 2419 | ||
2421 | if ((tp->mac_version == RTL_GIGA_MAC_VER_01) || | 2420 | if ((tp->mac_version == RTL_GIGA_MAC_VER_01) || |
2422 | (tp->mac_version == RTL_GIGA_MAC_VER_02) || | 2421 | (tp->mac_version == RTL_GIGA_MAC_VER_02) || |
@@ -2677,7 +2676,7 @@ static void rtl_hw_start_8168(struct net_device *dev) | |||
2677 | 2676 | ||
2678 | RTL_W8(EarlyTxThres, EarlyTxThld); | 2677 | RTL_W8(EarlyTxThres, EarlyTxThld); |
2679 | 2678 | ||
2680 | rtl_set_rx_max_size(ioaddr); | 2679 | rtl_set_rx_max_size(ioaddr, tp->rx_buf_sz); |
2681 | 2680 | ||
2682 | tp->cp_cmd |= RTL_R16(CPlusCmd) | PktCntrDisable | INTT_1; | 2681 | tp->cp_cmd |= RTL_R16(CPlusCmd) | PktCntrDisable | INTT_1; |
2683 | 2682 | ||
@@ -2855,7 +2854,7 @@ static void rtl_hw_start_8101(struct net_device *dev) | |||
2855 | 2854 | ||
2856 | RTL_W8(EarlyTxThres, EarlyTxThld); | 2855 | RTL_W8(EarlyTxThres, EarlyTxThld); |
2857 | 2856 | ||
2858 | rtl_set_rx_max_size(ioaddr); | 2857 | rtl_set_rx_max_size(ioaddr, tp->rx_buf_sz); |
2859 | 2858 | ||
2860 | tp->cp_cmd |= rtl_rw_cpluscmd(ioaddr) | PCIMulRW; | 2859 | tp->cp_cmd |= rtl_rw_cpluscmd(ioaddr) | PCIMulRW; |
2861 | 2860 | ||