[openib-general] Re: [PATCH] cleanup dat provider registratio n

Christoph Hellwig hch at lst.de
Sun Jun 26 03:50:54 PDT 2005


On Thu, Jun 23, 2005 at 04:52:55PM +0300, Itamar Rabenstein wrote:
> i have a question:
> after we have cleaned up the dat_provider_info struct and now it is define
> as :
> 
> struct dat_provider_info {
> 	char ia_name[DAT_NAME_MAX_LENGTH];
> };
> 
> why cant we replace it with a simple char * 
> it is only a string that the only thing we do with it 
> is to store it and compare with others strings.

Two think here.  One is that the dat_provider_info is should probably
go away.  My scheme so far it to introduce a dat_hca object that will
contain the ia_name, and all of dictionary entry, and the linked list
of ia objects that I wan't to move from the dat-provider to the dat
layer.  As part of that the registration/unregistration path will be
changed a lot aswell.




More information about the general mailing list