I would like to know how to build the Offload protocol
switch module by itself. The reason for this is I am
trying to develop a differnt protocol to attach to it.
Also, I want to do this with the 2.6 kernel so the
make files won't work.
Basically I need to know what parts of the code are
necessary to build OPS.
What I have come up with that is necessary to build
that module is the following:
[base] = sf-ibal/base
[base]/linux/net/ops/ -- contains the ops switching code
[base]/linux/complib/ -- shared files for ops modules
[base]/linux/include/iba/complib/ ---headers for
needed functions
[base]/shared/complib --- more shared files
[base]/shared/include/iba/complib --- headers for the
shared files
I think there might be some other files but I haven't
tracked down what they are yet. What I have tried to
do is extract this into a seperate directory so I can
compile with my own make file (for 2.6 kernel).
One problem I've run into is how the header files are
decleared. There is a situation in
[base]/linux/net/ops/offload.h that needs cl_mutex.h
but its not declared in there as well as
offload_exports.c expecting offload.h to be in
<offload.h> instead of "offload.h". Not sure what the
deal is here.
Oh yea, another problem I have run into when compiling
a seperate module for the shared utilites (complib) is
that cl_system.c has waitpid and I get a compile error
saying that waitpid is undefined.
Thanks for any and all your help.
Logged In: YES
user_id=511562
OK, I got both the complib and ops modules seperated from
the source, compiled, and loaded with the 2.6 kernel. I did
get quite a few warnings and i had to modify the source in 2
places described below.
MOD1 [complib/cl_system.c]
commented line 137 and added pid2 = -1;
I did this because the kernel couldn't find the waitpid
function.
MOD2 [ops/offload.h]
moded line 89 to static cl_mutex_t ....
moded line 90 to static cl_qlist ...
Now I have to write a test module to see if we can hook into
the ops interface.