diff options
Diffstat (limited to 'drivers/net/forcedeth.c')
-rw-r--r-- | drivers/net/forcedeth.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c index cc7328b15521..765210ea097d 100644 --- a/drivers/net/forcedeth.c +++ b/drivers/net/forcedeth.c | |||
@@ -818,7 +818,7 @@ struct fe_priv { | |||
818 | * Maximum number of loops until we assume that a bit in the irq mask | 818 | * Maximum number of loops until we assume that a bit in the irq mask |
819 | * is stuck. Overridable with module param. | 819 | * is stuck. Overridable with module param. |
820 | */ | 820 | */ |
821 | static int max_interrupt_work = 5; | 821 | static int max_interrupt_work = 15; |
822 | 822 | ||
823 | /* | 823 | /* |
824 | * Optimization can be either throuput mode or cpu mode | 824 | * Optimization can be either throuput mode or cpu mode |
@@ -2735,7 +2735,6 @@ static int nv_rx_process(struct net_device *dev, int limit) | |||
2735 | #else | 2735 | #else |
2736 | netif_rx(skb); | 2736 | netif_rx(skb); |
2737 | #endif | 2737 | #endif |
2738 | dev->last_rx = jiffies; | ||
2739 | dev->stats.rx_packets++; | 2738 | dev->stats.rx_packets++; |
2740 | dev->stats.rx_bytes += len; | 2739 | dev->stats.rx_bytes += len; |
2741 | next_pkt: | 2740 | next_pkt: |
@@ -2848,7 +2847,6 @@ static int nv_rx_process_optimized(struct net_device *dev, int limit) | |||
2848 | } | 2847 | } |
2849 | } | 2848 | } |
2850 | 2849 | ||
2851 | dev->last_rx = jiffies; | ||
2852 | dev->stats.rx_packets++; | 2850 | dev->stats.rx_packets++; |
2853 | dev->stats.rx_bytes += len; | 2851 | dev->stats.rx_bytes += len; |
2854 | } else { | 2852 | } else { |
@@ -5420,7 +5418,6 @@ static int __devinit nv_probe(struct pci_dev *pci_dev, const struct pci_device_i | |||
5420 | u32 powerstate, txreg; | 5418 | u32 powerstate, txreg; |
5421 | u32 phystate_orig = 0, phystate; | 5419 | u32 phystate_orig = 0, phystate; |
5422 | int phyinitialized = 0; | 5420 | int phyinitialized = 0; |
5423 | DECLARE_MAC_BUF(mac); | ||
5424 | static int printed_version; | 5421 | static int printed_version; |
5425 | 5422 | ||
5426 | if (!printed_version++) | 5423 | if (!printed_version++) |
@@ -5653,8 +5650,8 @@ static int __devinit nv_probe(struct pci_dev *pci_dev, const struct pci_device_i | |||
5653 | * to 01:23:45:67:89:ab | 5650 | * to 01:23:45:67:89:ab |
5654 | */ | 5651 | */ |
5655 | dev_printk(KERN_ERR, &pci_dev->dev, | 5652 | dev_printk(KERN_ERR, &pci_dev->dev, |
5656 | "Invalid Mac address detected: %s\n", | 5653 | "Invalid Mac address detected: %pM\n", |
5657 | print_mac(mac, dev->dev_addr)); | 5654 | dev->dev_addr); |
5658 | dev_printk(KERN_ERR, &pci_dev->dev, | 5655 | dev_printk(KERN_ERR, &pci_dev->dev, |
5659 | "Please complain to your hardware vendor. Switching to a random MAC.\n"); | 5656 | "Please complain to your hardware vendor. Switching to a random MAC.\n"); |
5660 | dev->dev_addr[0] = 0x00; | 5657 | dev->dev_addr[0] = 0x00; |
@@ -5663,8 +5660,8 @@ static int __devinit nv_probe(struct pci_dev *pci_dev, const struct pci_device_i | |||
5663 | get_random_bytes(&dev->dev_addr[3], 3); | 5660 | get_random_bytes(&dev->dev_addr[3], 3); |
5664 | } | 5661 | } |
5665 | 5662 | ||
5666 | dprintk(KERN_DEBUG "%s: MAC Address %s\n", | 5663 | dprintk(KERN_DEBUG "%s: MAC Address %pM\n", |
5667 | pci_name(pci_dev), print_mac(mac, dev->dev_addr)); | 5664 | pci_name(pci_dev), dev->dev_addr); |
5668 | 5665 | ||
5669 | /* set mac address */ | 5666 | /* set mac address */ |
5670 | nv_copy_mac_to_hw(dev); | 5667 | nv_copy_mac_to_hw(dev); |