1. 29 6月, 2007 1 次提交
  2. 27 6月, 2007 1 次提交
  3. 09 5月, 2007 1 次提交
  4. 26 4月, 2007 10 次提交
  5. 18 4月, 2007 1 次提交
  6. 11 2月, 2007 1 次提交
  7. 13 12月, 2006 1 次提交
  8. 12 12月, 2006 2 次提交
    • A
      [NETPOLL]: Fix local_bh_enable() warning. · a49f99ff
      Andrew Morton 提交于
      During boot we get:
      
      netconsole: device eth0 not up yet, forcing it
      e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex
      WARNING (!__warned) at kernel/softirq.c:137 local_bh_enable()
      
      Call Trace:
       [<ffffffff80235baf>] local_bh_enable+0x41/0xa3
       [<ffffffff8045ab8e>] netpoll_send_skb+0x116/0x144
       [<ffffffff8045b1ee>] netpoll_send_udp+0x263/0x271
       [<ffffffff803d41ec>] write_msg+0x42/0x5e
       [<ffffffff80230c9b>] __call_console_drivers+0x5f/0x70
       [<ffffffff80230d19>] _call_console_drivers+0x6d/0x71
       [<ffffffff802313f0>] release_console_sem+0x148/0x1ec
       [<ffffffff802316ce>] register_console+0x1b1/0x1ba
       [<ffffffff803d4178>] init_netconsole+0x54/0x68
       [<ffffffff802071ae>] init+0x152/0x308
       [<ffffffff804dac8b>] _spin_unlock_irq+0x14/0x30
       [<ffffffff8022c15e>] schedule_tail+0x43/0x9f
       [<ffffffff8020a758>] child_rip+0xa/0x12
      
      Herbert sayeth:
      
        Normally networking isn't invoked with interrupts turned off, but I
        suppose we don't have a choice here.  This is unique being a place where you
        can get called with BH on, off, or IRQs off.
      
        Given that this is only used for printk, the easiest solution is probably
        just to disable local IRQs instead of BH.
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a49f99ff
    • A
  9. 09 12月, 2006 1 次提交
    • N
      [NETPOLL]: make arp replies through netpoll use mac address of sender · 47bbec02
      Neil Horman 提交于
      Back in 2.4 arp requests that were recevied by netpoll were processed
      in netconsole_receive_skb, where they were responded to using the src
      mac of the request sender.  In the 2.6 kernel arp_reply is responsible
      for this function, but instead of using the src mac address of the
      incomming request, the stored mac address that was registered for the
      netconsole application is used.  While this is usually ok, it can lead
      to failures in netpoll in some situations (specifically situations
      where a network may have two gateways, as arp requests from one may be
      responded to using the mac address of the other).  This patch reverts
      the behavior to what we had in 2.4, in which all arp requests are sent
      back using the src address of the request sender.
      Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
      Acked-by: NChris Lalancette <clalance@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      47bbec02
  10. 03 12月, 2006 13 次提交
  11. 22 11月, 2006 1 次提交
  12. 08 11月, 2006 1 次提交
  13. 20 10月, 2006 1 次提交
  14. 23 9月, 2006 1 次提交
  15. 26 6月, 2006 2 次提交
  16. 18 6月, 2006 1 次提交
    • H
      [NET]: Add netif_tx_lock · 932ff279
      Herbert Xu 提交于
      Various drivers use xmit_lock internally to synchronise with their
      transmission routines.  They do so without setting xmit_lock_owner.
      This is fine as long as netpoll is not in use.
      
      With netpoll it is possible for deadlocks to occur if xmit_lock_owner
      isn't set.  This is because if a printk occurs while xmit_lock is held
      and xmit_lock_owner is not set can cause netpoll to attempt to take
      xmit_lock recursively.
      
      While it is possible to resolve this by getting netpoll to use
      trylock, it is suboptimal because netpoll's sole objective is to
      maximise the chance of getting the printk out on the wire.  So
      delaying or dropping the message is to be avoided as much as possible.
      
      So the only alternative is to always set xmit_lock_owner.  The
      following patch does this by introducing the netif_tx_lock family of
      functions that take care of setting/unsetting xmit_lock_owner.
      
      I renamed xmit_lock to _xmit_lock to indicate that it should not be
      used directly.  I didn't provide irq versions of the netif_tx_lock
      functions since xmit_lock is meant to be a BH-disabling lock.
      
      This is pretty much a straight text substitution except for a small
      bug fix in winbond.  It currently uses
      netif_stop_queue/spin_unlock_wait to stop transmission.  This is
      unsafe as an IRQ can potentially wake up the queue.  So it is safer to
      use netif_tx_disable.
      
      The hamradio bits used spin_lock_irq but it is unnecessary as
      xmit_lock must never be taken in an IRQ handler.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      932ff279
  17. 21 3月, 2006 1 次提交