1. 09 11月, 2016 16 次提交
  2. 27 9月, 2016 1 次提交
  3. 24 8月, 2016 1 次提交
    • J
      scsi: fcoe: provide translation table between Ethernet and FC port speeds · 0b924e55
      Johannes Thumshirn 提交于
      Provide a translation table between Ethernet and FC port speeds so odd
      speeds (from a Ethernet POV) like 8 Gbit are correctly mapped to sysfs
      and open-fcoe's fcoeadm.
      
      Before:
          Description:      BCM57840 NetXtreme II 10/20-Gigabit Ethernet
          Revision:         11
          Manufacturer:     Broadcom Corporation
          Serial Number:    6CC2173EA1D0
      
          Driver:           bnx2x 1.712.30-0
          Number of Ports:  1
      
              Symbolic Name:     bnx2fc (QLogic BCM57840) v2.10.3 over eth2
              OS Device Name:    host1
              Node Name:         0x20006cc2173ea1d1
              Port Name:         0x10006cc2173ea1d1
              FabricName:        0x100000c0dd0ce717
              Speed:             unknown
              Supported Speed:   1 Gbit, 10 Gbit
              MaxFrameSize:      2048 bytes
              FC-ID (Port ID):   0x660702
              State:             Online
      
      After:
          Description:      BCM57840 NetXtreme II 10/20-Gigabit Ethernet
          Revision:         11
          Manufacturer:     Broadcom Corporation
          Serial Number:    6CC2173EA1D0
      
          Driver:           bnx2x 1.712.30-0
          Number of Ports:  1
      
              Symbolic Name:     bnx2fc (QLogic BCM57840) v2.10.3 over eth2
              OS Device Name:    host1
              Node Name:         0x20006cc2173ea1d1
              Port Name:         0x10006cc2173ea1d1
              FabricName:        0x100000c0dd0ce717
              Speed:             8 Gbit
              Supported Speed:   1 Gbit, 10 Gbit
              MaxFrameSize:      2048 bytes
              FC-ID (Port ID):   0x660701
              State:             Online
      Signed-off-by: NJohannes Thumshirn <jthumshirn@suse.de>
      Reviewed-by: NHannes Reinicke <hare@suse.de>
      Reviewed-by: NLee Duncan <lduncan@suse.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      0b924e55
  4. 05 8月, 2016 1 次提交
  5. 02 8月, 2016 1 次提交
  6. 27 7月, 2016 1 次提交
  7. 21 7月, 2016 2 次提交
  8. 14 7月, 2016 5 次提交
  9. 13 7月, 2016 2 次提交
    • S
      fcoe: convert to kworker · 4b9bc86d
      Sebastian Andrzej Siewior 提交于
      The driver creates its own per-CPU threads which are updated based on
      CPU hotplug events. It is also possible to use kworkers and remove some
      of the kthread infrastrucure.
      
      The code checked ->thread to decide if there is an active per-CPU
      thread. By using the kworker infrastructure this is no longer
      possible (or required). The thread pointer is saved in `kthread' instead
      of `thread' so anything trying to use thread is caught by the
      compiler. Currently only the bnx2fc driver is using struct fcoe_percpu_s
      and the kthread member.
      
      After a CPU went offline, we may still enqueue items on the "offline"
      CPU. This isn't much of a problem. The work will be done on a random
      CPU. The allocated crc_eof_page page won't be cleaned up. It is probably
      expected that the CPU comes up at some point so it should not be a
      problem. The crc_eof_page memory is released of course once the module
      is removed.
      
      This patch was only compile-tested due to -ENODEV.
      
      Cc: Vasu Dev <vasu.dev@intel.com>
      Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: fcoe-devel@open-fcoe.org
      Cc: linux-scsi@vger.kernel.org
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Tested-by: NJohannes Thumshirn <jthumshirn@suse.de>
      Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      4b9bc86d
    • H
      libfc: Update rport reference counting · baa6719f
      Hannes Reinecke 提交于
      Originally libfc would just be initializing the refcount to '1', and
      using the disc_mutex to synchronize if and when the final put should be
      happening.  This has a race condition as the mutex might be delayed,
      causing other threads to access an invalid structure.  This patch
      updates the rport reference counting to increase the reference every
      time 'rport_lookup' is called, and decreases the reference
      correspondingly.  This removes the need to hold 'disc_mutex' when
      removing the structure, and avoids the above race condition.
      Signed-off-by: NHannes Reinecke <hare@suse.com>
      Acked-by: NVasu Dev <vasu.dev@intel.com>
      Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      baa6719f
  10. 01 3月, 2016 1 次提交
  11. 26 2月, 2016 1 次提交
  12. 16 12月, 2015 1 次提交
  13. 10 11月, 2015 2 次提交
  14. 07 9月, 2015 1 次提交
  15. 07 8月, 2015 1 次提交
  16. 04 12月, 2014 1 次提交
  17. 24 11月, 2014 2 次提交