1. 21 7月, 2011 1 次提交
    • P
      treewide: fix potentially dangerous trailing ';' in #defined values/expressions · 497888cf
      Phil Carmody 提交于
      All these are instances of
        #define NAME value;
      or
        #define NAME(params_opt) value;
      
      These of course fail to build when used in contexts like
        if(foo $OP NAME)
        while(bar $OP NAME)
      and may silently generate the wrong code in contexts such as
        foo = NAME + 1;    /* foo = value; + 1; */
        bar = NAME - 1;    /* bar = value; - 1; */
        baz = NAME & quux; /* baz = value; & quux; */
      
      Reported on comp.lang.c,
      Message-ID: <ab0d55fe-25e5-482b-811e-c475aa6065c3@c29g2000yqd.googlegroups.com>
      Initial analysis of the dangers provided by Keith Thompson in that thread.
      
      There are many more instances of more complicated macros having unnecessary
      trailing semicolons, but this pile seems to be all of the cases of simple
      values suffering from the problem. (Thus things that are likely to be found
      in one of the contexts above, more complicated ones aren't.)
      Signed-off-by: NPhil Carmody <ext-phil.2.carmody@nokia.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      497888cf
  2. 27 5月, 2011 3 次提交
  3. 10 5月, 2011 1 次提交
  4. 24 3月, 2011 3 次提交
  5. 19 2月, 2011 2 次提交
  6. 22 12月, 2010 3 次提交
  7. 26 10月, 2010 1 次提交
  8. 08 10月, 2010 1 次提交
  9. 07 8月, 2010 2 次提交
    • J
      [SCSI] lpfc 8.3.16: FCoE Discovery and Failover Fixes · 38b92ef8
      James Smart 提交于
      - Add support for re-reg'ing changed VPI w/o unregister VPI
      - Copy WWN and state from old nodelist when target DID change.
      - Clean up old nodelist rport and put the nodelist when target DID change.
      - Clear the VFI_REGISTERED flag when UNREG_VFI completes.
      - Made both checks of port_state against LPFC_FLOGI and LPFC_FDISC
        non-inclusive for ignoring CVL events.
      - Added logic to stop retrying of the ongoing PLOGI and FDISC if
        transitioned back to the FCF rediscovery state in reaction to CVL.
      - Removed the dependency of scanning of all the available FCF table
        entries for bulding round-robin bitmap.
      - Use the lpfc_sli4_fcf_rr_read_fcf_rec() in responding to
        individual New FCF found event.
      Signed-off-by: NAlex Iannicelli <alex.iannicelli@emulex.com>
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      38b92ef8
    • J
      [SCSI] lpfc 8.3.16: SLI Additions, updates, and code cleanup · bc73905a
      James Smart 提交于
      - Remove unneeded Endian swap for Block Guard IOCB response
      - Add a check for mailbox active before issuing the heartbeat command
      - Correct heartbeat last_completion updates to avoid unneeded heartbeats
      - Add Security crypto support to CONFIG_PORT mailbox command
      - Add fips level and fips spec revision sysfs parameters
      - Remove duplicate setting of ext_byte_len fields in lpfc_bsg_issue_mbox
      - Switch call to memcpy_toio to __write32_copy to prevent unaligned 64 bit copy
      - Change log message 0318 from an error to a warning as it is not an error
      - Patch an incorrect call to lpfc_drain_txq on SLI-3 functions
      Signed-off-by: NAlex Iannicelli <alex.iannicelli@emulex.com>
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      bc73905a
  10. 28 7月, 2010 3 次提交
  11. 12 4月, 2010 3 次提交
  12. 11 4月, 2010 1 次提交
  13. 09 2月, 2010 2 次提交
  14. 05 12月, 2009 5 次提交
    • J
      [SCSI] lpfc 8.3.6 : Hardware related fixes and changes · a747c9ce
      James Smart 提交于
      Hardware related Fixes and Changes.
       - Added new Adapter IDs and update default Adapter names.
       - Added PCI read after EQarm doorbell PCI write to flush the write
         and avoid spurrious interrupts when in INTx mode.
       - Phase out use of ONLINE registers.
       - Fix for lost MSI interrupt
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      a747c9ce
    • J
      [SCSI] lpfc 8.3.6 : FC Protocol Fixes · 5ffc266e
      James Smart 提交于
      FC protocol fixes.
       - Fix send sequence logic to handle multi SGL IOCBs.
       - Fix FDISC completion always setting VPORT state to failed.
       - Ported the fix on reporting of max_vpi to uppper layer.
       - Fix incorrect number of Vports allowed to be created.
       - Fixed Dead FCoE port after creating vports.
       - Added handling of ELS request for Reinstate Recovery Qualifier (RRQ)
       - Handle unsolicited CT exchange initiator receiving CT exchange ABTS
       - Migrate LUN queue depth ramp up code to scsi mid-layer.
       - Made ABTS WQE go to the same WQ as the WQE to be aborted.
       - Fix Vport does not rediscover after FCF goes away.
       - Fixed lpfc_unreg_vfi failure after devloss timeout.
       - Fixed RPI bit leak.
       - Fix hbq pointer corruption during target discovery.
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      5ffc266e
    • J
      [SCSI] lpfc 8.3.6 : FCoE Protocol Fixes · c868595d
      James Smart 提交于
      FCoE Protocol fixes.
       - Fixed FIP frame designation for ELS commands.
       - Fix CVL received on Port 1 not processed by driver.
       - Fix Zeroed frame on wire after FLOGI
       - Fix vport keep-alive does not contain the correct WWN.
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      c868595d
    • J
      [SCSI] lpfc 8.3.5: fix sysfs parameters, vport creation and other bugs and update logging · 6a9c52cf
      James Smart 提交于
      This patch include the following fixes and changes:
      - Fix crash when "error" is echoed to board_mode sysfs parameter
      - Fix FCoE Parameter parsing in regions 23
      - Fix driver crash when creating vport with large number of targets on SLI4
      - Fix bug with npiv message being logged when it is not supported by the adapter
      - Fix a potential dereferencing mailbox structure after free bug
      - Fix firmware crash after vport create with high target count
      - Error out requests to set board_mode to warm restart via sysfs on SLI4 HBAs
      - Fix Block guard logging
      - Fix a memory corruption issue during GID_FT IO prep
      - Fix crash while processing unsolicited FC frames
      - Fix failed to allocate XRI message is not a critical failure
      - Update and fix formatting in some log messages
      - Fix missing new line characters in log messages
      - Removed the use of the locally defined FC transport layer related macros
      - Check the rsplen in lpfc_handle_fcp_err function before using rsplen
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      6a9c52cf
    • J
      [SCSI] lpfc 8.3.5: fix VPI registration, error clean up and add support for vlink events · 6669f9bb
      James Smart 提交于
      This patch includes the following fixes and new features:
      - Fix mask size for CT field in WQE
      - Fix VPI base not used when unregistering VPI on port 1.
      - Fix UNREG_VPI mailbox command to unreg the correct VPI
      - Fixed Check for aborted els command
      - Fix error when trying to load driver with wrong firmware on FCoE HBA.
      - Fix bug with probe_one routines not putting the Scsi_Host back upon error
      - Add support for Clear Virtual Link Async Events
      - Add support for unsolicited CT exchange sequence abort
      - Add 0x0714 OCeXXXXX PCI ID
      Signed-off-by: NJames Smart <james.smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      6669f9bb
  15. 23 8月, 2009 1 次提交
  16. 15 6月, 2009 1 次提交
    • J
      [SCSI] lpfc 8.3.3 : Fix various SLI-3 vs SLI-4 differences · f1126688
      James Smart 提交于
      Contains the following changes
      - Set the CT field of FDISC to 3
      - Fixed over allocation of SCSI buffers on SLI4
      - Removed unused jump table entries
      - Increase LPFC_WQE_DEF_COUNT to 256
      - Updated FDISC context to VPI
      - Fixed immediate SCSI command for LUN reset translation to WQE
      - Extended mailbox handling to allow MBX_POLL commands in between async
        MBQ commands
      - Fixed SID used for FDISC
      - Fix crash when accessing ctlregs from sysfs for SLI4 HBAs
      - Fix SLI4 firmware version not being saved or displayed correctly
      - Expand CQID field in WQE structure to 16 bits
      - Fix post header template mailbox command timing out
      - Removed FCoE PCI device ID 0x0705
      Signed-off-by: NJames Smart <James.Smart@emulex.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      f1126688
  17. 09 6月, 2009 2 次提交
  18. 30 12月, 2008 4 次提交
  19. 13 10月, 2008 1 次提交