[openib-general] [PATCH] for OFED 1.2

Vladimir Sokolovsky vlad at mellanox.co.il
Tue Feb 27 08:53:51 PST 2007


On Tue, 2007-02-27 at 08:45 -0800, Sean Hefty wrote:
> >Please send patches that will be added to kernel_patches/fixes.
> >
> >Please update your git tree from
> >git://git.openfabrics.org/~vlad/ofed_1_2/.git  ofed_1_2
> 
> You want me to create a patch that adds a file that contains the actual patches?
Yes, actual patches should be created under kernel_patches/fixes.

Please update your git tree because the following patch fails:

        From 2e7e33936de5f92656c0565ce88f97e796367dae Mon Sep 17 00:00:00 2001
        From: Sean Hefty <sean.hefty at intel.com>
        Date: Fri, 23 Feb 2007 12:35:43 -0800
        Subject: [PATCH] rdma_cm: request reversible paths only
        
        The rdma_cm requires that path records be reversible.  Set the reversible
        bit when issuing an path record query.
        
        Signed-off-by: Sean Hefty <sean.hefty at intel.com>
        
        diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
        index 9e0ab04..171cce9 100644
        --- a/drivers/infiniband/core/cma.c
        +++ b/drivers/infiniband/core/cma.c
        @@ -1396,11 +1396,13 @@ static int cma_query_ib_route(struct rdma_id_private *id_priv, int timeout_ms,
                ib_addr_get_dgid(addr, &path_rec.dgid);
                path_rec.pkey = cpu_to_be16(ib_addr_get_pkey(addr));
                path_rec.numb_path = 1;
        +       path_rec.reversible = 1;
        
                id_priv->query_id = ib_sa_path_rec_get(&sa_client, id_priv->id.device,
                                        id_priv->id.port_num, &path_rec,
                                        IB_SA_PATH_REC_DGID | IB_SA_PATH_REC_SGID |
        -                               IB_SA_PATH_REC_PKEY | IB_SA_PATH_REC_NUMB_PATH,
        +                               IB_SA_PATH_REC_PKEY | IB_SA_PATH_REC_NUMB_PATH |
        +                               IB_SA_PATH_REC_REVERSIBLE,
                                        timeout_ms, GFP_KERNEL,
                                        cma_query_handler, work, &id_priv->query);
        

> 
> Why not apply the patches directly?
> 
To be consistent with 2.6.20 kernel.


-- 
Vladimir Sokolovsky <vlad at mellanox.co.il>
Mellanox Technologies Ltd.




More information about the general mailing list