[openib-general] Re: [PATCH][kdapl]update dat_rmr_bind API & delete dapl_hash

Christoph Hellwig hch at lst.de
Fri Jun 17 09:40:55 PDT 2005


On Thu, Jun 16, 2005 at 09:20:27PM +0200, Itamar & Shira Rabenstein wrote:
> >Itamar,
> >
> >Can you seperate the RMR api change and hash table removal into a 
> >seperate patch?
> 
> I dont see why, the new input param to dat_rmr_bind (lmr_handle) come
> in order that we will be able to remove the hash table so this is one
> patch.

In the Linux world we generally prefer faine-grained patches.  While
the RMR api change is a prerequsite to remove the hash code it's not
directly related.

> >Merging the HCA and IA code into the dapl_ia.[ch] files doesn't feel 
> >right to me. I think of the HCA as a DAT object just like IAs, EPs, 
> >LMRs, etc, and hence it should have its own file.
> >
> >james
> 
> 
> There are 4 function in this files:
> 
> 2 were merged to provider code:
>       dapl_hca_alloc(13 lines) :which i think is part of the provider code .
>       dapl_hca_free (1 line) == kfree , no need a function for this.
> 2 were merged to ia code:
>       dapl_hca_link_ia (3 lines )     : no need a function to call list add
>       dapl_hca_unlink_ia(3 lines)    : no need a function to call list_del
> 
> I belive that we need to make the code more readable and to have this functions
> is not a good idea and to add 2 files for this is for sure a bad idea ...

I agree your reasoning for the second set of functions at least.  But
again this is not related to the API change at all, please separate it
out to a patch of it's own, applying ontop of the API change and hash
removal patches.




More information about the general mailing list