1. 24 6月, 2014 1 次提交
    • T
      enic: fix lockdep around devcmd_lock · 8e091340
      Tony Camuso 提交于
      We were experiencing occasional "BUG: scheduling while atomic" splats
      in our testing. Enabling DEBUG_SPINLOCK and DEBUG_LOCKDEP in the kernel
      exposed a lockdep in the enic driver.
      
      enic 0000:0b:00.0 eth2: Link UP
      
      ======================================================
      [ INFO: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected ]
      3.12.0-rc1.x86_64-dbg+ #2 Tainted: GF       W
      ------------------------------------------------------
      NetworkManager/4209 [HC0[0]:SC0[2]:HE1:SE0] is trying to acquire:
      (&(&enic->devcmd_lock)->rlock){+.+...}, at: [<ffffffffa026b7e4>] enic_dev_packet_filter+0x44/0x90 [enic]
      
      The fix was to replace spin_lock with spin_lock_bh for the enic
      devcmd_lock, so that soft irqs would be disabled while the lock
      is held.
      Signed-off-by: NSujith Sankar <ssujith@cisco.com>
      Signed-off-by: NTony Camuso <tcamuso@redhat.com>
      Signed-off-by: NGovindarajulu Varadarajan <_govind@gmx.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8e091340
  2. 03 6月, 2014 1 次提交
    • A
      enic: Update driver to use __dev_uc/mc_sync/unsync calls · f009618a
      Alexander Duyck 提交于
      This change updates the enic driver to make use of __dev_uc_sync and
      __dev_mc_sync calls.  Previously the driver was doing its own list
      management by storing the mc_addr and uc_addr list in a 32 address array.
      With this change the sync data is stored in the netdev_addr_list structures
      and instead we just track how many addresses we have written to the device.
      When we encounter 32 we stop and print a message as occurred previously with
      the old approach.
      
      Other than the core change the only other bit needed was to propagate the
      constant attribute with the MAC address as there were several spots where
      is twas only passed as a u8 * instead of a const u8 *.
      
      This patch is meant to maintain the original functionality without the use
      of the mc_addr and uc_addr arrays.
      Signed-off-by: NAlexander Duyck <alexander.h.duyck@intel.com>
      Acked-by: NGovindarajulu Varadarajan <_govind@gmx.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f009618a
  3. 25 7月, 2013 1 次提交
  4. 20 4月, 2013 1 次提交
  5. 09 12月, 2011 1 次提交
  6. 27 9月, 2011 1 次提交
  7. 11 8月, 2011 1 次提交
    • J
      enic: Move the Cisco driver · a6a5580c
      Jeff Kirsher 提交于
      Move the Cisco driver into drivers/net/ethernet/cisco/ and make the
      necessary Kconfig and Makefile changes.
      
      CC: Christian Benvenuti <benve@cisco.com>
      CC: Vasanthy Kolluri <vkolluri@cisco.com>
      CC: Roopa Prabhu <roprabhu@cisco.com>
      CC: David Wang <dwang2@cisco.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      a6a5580c
  8. 01 7月, 2011 1 次提交
  9. 31 3月, 2011 1 次提交
  10. 08 2月, 2011 2 次提交