lkml.org 
[lkml]   [2011]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 092/176] RDMA/cxgb4: Set the correct device physical function for iWARP connections
    2.6.36-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Steve Wise <swise@opengridcomputing.com>

    commit 94788657c94169171971968c9d4b6222c5e704aa upstream.

    The PF passed to FW was 0, causing PCI failures in an SR-IOV environment.

    Signed-off-by: Steve Wise <swise@opengridcomputing.com>
    Signed-off-by: Roland Dreier <roland@purestorage.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/infiniband/hw/cxgb4/cm.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/infiniband/hw/cxgb4/cm.c
    +++ b/drivers/infiniband/hw/cxgb4/cm.c
    @@ -383,7 +383,7 @@ static void send_flowc(struct c4iw_ep *e
    16)) | FW_WR_FLOWID(ep->hwtid));

    flowc->mnemval[0].mnemonic = FW_FLOWC_MNEM_PFNVFN;
    - flowc->mnemval[0].val = cpu_to_be32(0);
    + flowc->mnemval[0].val = cpu_to_be32(PCI_FUNC(ep->com.dev->rdev.lldi.pdev->devfn) << 8);
    flowc->mnemval[1].mnemonic = FW_FLOWC_MNEM_CH;
    flowc->mnemval[1].val = cpu_to_be32(ep->tx_chan);
    flowc->mnemval[2].mnemonic = FW_FLOWC_MNEM_PORT;



    \
     
     \ /
      Last update: 2011-02-16 02:11    [W:0.021 / U:0.032 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site