1. 15 12月, 2011 1 次提交
  2. 25 5月, 2011 1 次提交
  3. 01 5月, 2011 1 次提交
  4. 31 3月, 2011 1 次提交
  5. 13 2月, 2011 3 次提交
  6. 22 12月, 2010 8 次提交
  7. 26 10月, 2010 1 次提交
  8. 28 7月, 2010 17 次提交
  9. 17 5月, 2010 4 次提交
  10. 12 4月, 2010 2 次提交
    • C
      [SCSI] libfc, fcoe: normalize format specifies for world wide names · 9f8f3aa6
      Chris Leech 提交于
      Print all world wide node names (node, port and fabric) with the same
      format specifier of "%16.16llx".  That makes sure they all print as a
      16 character hex string, with lower case letters, no 0x prefix, and
      without stripping off any leading 0s.
      Signed-off-by: NChris Leech <christopher.leech@intel.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      9f8f3aa6
    • R
      [SCSI] libfcoe: Don't fill MAC desc in FLOGI if FIP negotiated FPMA · 593abc07
      Robert Love 提交于
      FPMA indicates that the Fabric will provide the host's
      N_Port's MAC address. When sending a FLOGI/FDISC frame
      and FPMA was negotiated through FIP discovery we still
      need to provide the MAC descriptor, as per the
      specification, but the MAC should be zero'd out since
      the FCF will be providing it in the FLOGI/FDISC ACC.
      
      In FC-BB-5 section 7.8.7.4.2 (Fabric login) it states:
      
      The MAC address field in the MAC address descriptor of a FIP FLOGI
      Request operation or a FIP NPIV FDISC Request operation shall contain:
      a) the proposed MAC address to use as VN_Port MAC address if the ENode
         is requesting to use SPMA (see table 27);
      b) all zeroes to indicate no MAC address is proposed if the ENode is
         requesting to use FPMA (see table 27); or
      c) the proposed MAC address to use as VN_Port MAC address if the ENode
         supports both SPMA and FPMA and leaves the decision of which
         addressing scheme to use to the FCF (i.e., if both the FP and SP
         bits are set to one, see table 27).
      
      This patch fixes case B.
      
      This patch also adds debug statements to illustrate
      whether a FPMA or SPMA MAC is added to a FLOGI/FDISC
      frame.
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NChris Leech <christopher.leech@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      593abc07
  11. 11 4月, 2010 1 次提交
    • J
      [SCSI] libfc, libfcoe, fcoe: use smp_processor_id() only when preempt disabled · f018b73a
      Joe Eykholt 提交于
      When the kernel is configured for preemption, using smp_processor_id()
      when preemption is enabled causes a warning backtrace and is wrong
      since we could move off of that CPU as soon as we get the ID,
      and we would be referencing the wrong CPU, and possibly an invalid one
      if it could be hotswapped out.
      
      Remove the fc_lport_get_stats() function and explicitly use per_cpu_ptr()
      to get the statistics.  Where preemption has been disabled by holding
      a _bh lock continue to use smp_processor_id(), but otherwise use
      get_cpu()/put_cpu().
      
      In fcoe_recv_frame() also changed the cases where we return in the
      middle to do a goto to the code which bumps ErrorFrames and does
      a put_cpu().  Two of these cases didn't bump ErrorFrames before, but
      doing so is harmless because they "can't happen", due to prior length
      checks.
      
      Also rearranged code in fcoe_recv_frame() to have only one call to
      fc_exch_recv().  It's just as efficient and saves a call to put_cpu().
      
      In fc_fcp.c, adjusted a FIXME comment for code which doesn't need fixing.
      Signed-off-by: NJoe Eykholt <jeykholt@cisco.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      f018b73a