26 Jul, 2014

2 commits

  • This patch remove variables that are initialized with a constant,
    are never updated, and are only used as parameter of return.
    Return the constant instead of using a variable.

    Verified by compilation only.

    The coccinelle script that find and fixes this issue is:
    //
    @@
    type T;
    constant C;
    identifier ret;
    @@
    - T ret = C;
    ... when != ret
    when strict
    return
    - ret
    + C
    ;
    //

    Signed-off-by: Peter Senna Tschudin
    Acked-by: Sudarsana Kalluru
    Signed-off-by: Christoph Hellwig

    Peter Senna Tschudin
     
  • Use the zeroing function instead of dma_alloc_coherent & memset(,0,)

    Signed-off-by: Joe Perches
    Acked-by: Anil Gurumurthy
    Signed-off-by: Christoph Hellwig

    Joe Perches
     

16 Mar, 2014

1 commit


19 Dec, 2013

1 commit

  • This patch includes change to enable firmware patch simplication
    feature. This feature is targeted to address the requirement to have
    independent patch release for firmware. Prior to 3.2.3, releasing a
    patch fix for firmware requires changes to bfa, to use new firmware
    images. But with these changes, if the new firmware is flashed on to the
    HBA with brocade adapter management utilites, driver uses the new
    firmware after checking the patch release byte in the firmware version.

    Signed-off-by: Vijaya Mohan Guvva
    Signed-off-by: James Bottomley

    Vijaya Mohan Guvva
     

27 Jun, 2013

4 commits

  • 1. While FRU VPD data update, inform firmware to send a completion event
    on I2C bus. Without this change, firmware used to send completion
    message on I2C bus for every chunk of FRU VPD update.
    2. Support for FRU VPN update on CHINOOK2 cards.
    3. Append port count to the model name to differentiate between single
    port and dual port model of 1860.
    4. Update the size of the model name to 16bytes

    Signed-off-by: Vijaya Mohan Guvva
    Signed-off-by: James Bottomley

    Vijaya Mohan Guvva
     
  • Replaced usage of void * with u64 in data structure shared between
    brocade user space libraries and the bfa driver to address pointer
    size changes across 32-bit vs 64-bit to have the compatibility between
    32bit library and 64bit driver and vice versa.

    Signed-off-by: Vijaya Mohan Guvva
    Signed-off-by: James Bottomley

    Vijaya Mohan Guvva
     
  • D-Port is a new port type created with the intention of running link
    level diagnostic tests like loopback, traffic test. In static D-port
    mode, user configures the port to D-port mode and starts the test, but
    in dynamic D-port, once the Brocade switch port is configured to
    D-port, it will reject the regular FLOGI from HBA with reason that it is
    in D-port mode. So based on the reason code HBA port will turn itself into
    D-port and start diagnostic test.

    Signed-off-by: Sudarsana Reddy Kalluru
    Signed-off-by: Vijaya Mohan Guvva
    Signed-off-by: James Bottomley

    Vijaya Mohan Guvva
     
  • This patch includes changes to 1) Enable/disable fc credit recovery on
    Brocade FC adapter port operating at max supported speed. 2) Get credit
    recovery status and stats related to credit loss and recovered credits

    Signed-off-by: Vijaya Mohan Guvva
    Signed-off-by: James Bottomley

    Vijaya Mohan Guvva
     

07 Oct, 2012

6 commits


24 Sep, 2012

3 commits

  • - Changes to avoid discovering NPIV port as remote port by the other
    NPIV ports created on same physical port when all the NPIV ports are
    part of the same zone in a fabric.
    - Provided mechanism to support maximum number of target ports for a
    given initiator port (physical port + NPIV ports) irrespective of the
    way in which the initiator and target ports are zoned in the fabric.
    - Introduced module_parameter max_rport_logins to restrict number of
    remote ports discovery which includes target and initiator remote ports.

    Signed-off-by: Vijaya Mohan Guvva
    Signed-off-by: Krishna Gudipati
    Signed-off-by: James Bottomley

    Krishna Gudipati
     
  • - Made changes to split FCXP resources as request and response resources.
    - The split will reduce the contention for FCXP resources in an open zone
    config.

    Signed-off-by: Krishna Gudipati
    Signed-off-by: James Bottomley

    Krishna Gudipati
     
  • - Introduced rport qualifier structure and modified design to
    export remote ports with valid pid or valid pwwn to the user space.
    - Introduced old_pid field in the rport structure and made changes to
    prevent re-creating a new remote port for an already existing rport
    that is transitioning to a delete state. (Happens if we receive a RSCN
    on the existing remote port that is getting deleted).

    Signed-off-by: Krishna Gudipati
    Signed-off-by: James Bottomley

    Krishna Gudipati
     

20 Jul, 2012

1 commit


28 Mar, 2012

2 commits

  • Made changes to set the rport maxfrsize param to use a value that is
    equal to or less than the Buffer-to-Buffer Receive Data_Field size
    specified in the Common Service Parameters.
    Increased the diag memtest timeout for the Brocade-1860 adapters.
    Made changes to enable valid port speed configuration check for all adapters.
    Made changes to increase the max hw segments in a request, in order to
    support larger data transfers from user space.

    Signed-off-by: Krishna Gudipati
    Signed-off-by: James Bottomley

    Krishna Gudipati
     
  • Made changes to the Fabric Assigned Address(FAA) feature implementation.
    Introduced the IOCFC state machine, which now handles the FAA logic,
    IOC and BFA sub-modules enablement.
    Removed un-wanted FAA enable/disable routines; FAA is enabled by default.

    Signed-off-by: Krishna Gudipati
    Signed-off-by: James Bottomley

    Krishna Gudipati
     

27 Mar, 2012

1 commit


19 Feb, 2012

1 commit

  • If 'drv_fcxp = kzalloc(sizeof(struct bfad_fcxp), GFP_KERNEL);' fails
    and returns NULL, then we'll leak the memory allocated to 'bsg_fcpt'
    when we jump to 'out:' and the variable subsequently goes out of
    scope.

    Also remove the cast of the kzalloc() return value. kzalloc() returns
    a void* which is implicitly converted, so the explicit cast is
    pointless.

    Signed-off-by: Jesper Juhl
    Acked-by: Krishna Gudipati
    Signed-off-by: James Bottomley

    Jesper Juhl
     

11 Jan, 2012

1 commit

  • This patch re-implements LUN Masking feature using SCSI Slave Callouts. With
    the new design in the slave_alloc entry point; for each new LUN discovered we
    check with our internal LUN Masking config whether to expose or to mask this
    particular LUN. We return -ENXIO (No such device or address) from slave_alloc
    for the LUNs we don't want to be exposed. We also notify the SCSI mid-layer
    to do a sequential LUN scan rather than REPORT_LUNS based scan if LUN masking
    is enabled on our HBA port, since a -ENXIO from any LUN in REPORT_LUNS based
    scan translates to a scan abort. This patch also handles the dynamic lun
    masking config change from enable to disable or vice-versa by resetting
    sdev_bflags of LUN 0 appropriately.

    Signed-off-by: Krishna Gudipati
    Signed-off-by: James Bottomley

    Krishna Gudipati
     

27 Jul, 2011

10 commits


30 Jun, 2011

7 commits