1. 19 8月, 2009 5 次提交
  2. 15 8月, 2009 10 次提交
  3. 04 8月, 2009 1 次提交
    • M
      sky2: Avoid transmits during sky2_down() · f6caa14a
      Mike McCormack 提交于
      This patch supersedes my previous patch "sky2: Avoid transmitting
      during sky2_restart".
      
      I have reworked the patch to avoid crashes during both sky2_restart()
      and sky2_set_ringparam().
      
      Without this patch, the sky2 driver can be crashed by doing:
      
      # pktgen eth1 &    (transmit many packets on eth1)
      # ethtool -G eth1 tx 510
      
      I am aware you object to storing extra state, but I can't see a way
      around this. Without remembering that we're restarting,
      netif_wake_queue() is called in the ISR from sky2_tx_complete(), and
      netif_tx_lock() is used in sky2_tx_done().  If anybody can see a way
      around this, please let me know.
      Signed-off-by: NMike McCormack <mikem@ring3k.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f6caa14a
  4. 27 7月, 2009 1 次提交
  5. 22 7月, 2009 1 次提交
  6. 17 7月, 2009 1 次提交
  7. 27 6月, 2009 1 次提交
    • A
      sky2: Fix checksum endianness · b9389796
      Anton Vorontsov 提交于
      sky2 driver on PowerPC targets floods kernel log with following errors:
      
        eth1: hw csum failure.
        Call Trace:
        [ef84b8a0] [c00075e4] show_stack+0x50/0x160 (unreliable)
        [ef84b8d0] [c02fa178] netdev_rx_csum_fault+0x3c/0x5c
        [ef84b8f0] [c02f6920] __skb_checksum_complete_head+0x7c/0x84
        [ef84b900] [c02f693c] __skb_checksum_complete+0x14/0x24
        [ef84b910] [c0337e08] tcp_v4_rcv+0x4c8/0x6f8
        [ef84b940] [c031a9c8] ip_local_deliver+0x98/0x210
        [ef84b960] [c031a788] ip_rcv+0x38c/0x534
        [ef84b990] [c0300338] netif_receive_skb+0x260/0x36c
        [ef84b9c0] [c025de00] sky2_poll+0x5dc/0xcf8
        [ef84ba20] [c02fb7fc] net_rx_action+0xc0/0x144
      
      The NIC is Yukon-2 EC chip revision 1.
      
      Converting checksum field from le16 to CPU byte order fixes the issue.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b9389796
  8. 18 6月, 2009 9 次提交
  9. 16 6月, 2009 1 次提交
    • S
      sky2: don't look for VPD size · 6cc90a5a
      Stephen Hemminger 提交于
      The code to compute VPD size didn't handle some systems that use
      chip without VPD. Also some of the newer chips use some additional
      registers to store the actual size, and wasn't worth putting the
      additional complexity in, so just remove the code.
      
      No big loss since the code to set the VPD size was only a
      convenience so that utilities would not read the extra space past
      the end of the available VPD.
      
      Move the first PCI config read earlier to detect bad hardware
      where it returns all ones and refuse loading driver before furthur
      damage.
      Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
      Tested-by: NAndy Whitcroft <apw@canonical.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6cc90a5a
  10. 29 5月, 2009 1 次提交
  11. 07 4月, 2009 2 次提交
  12. 04 2月, 2009 4 次提交
  13. 31 1月, 2009 1 次提交
  14. 21 11月, 2008 1 次提交
  15. 20 11月, 2008 1 次提交