Whamcloud - gitweb
* Changed LNetGet() LNetPut() to include a source nid parameter
authoreeb <eeb>
Thu, 29 Sep 2005 00:11:36 +0000 (00:11 +0000)
committereeb <eeb>
Thu, 29 Sep 2005 00:11:36 +0000 (00:11 +0000)
commitca534f38f59a6dbed158232056255427dac8442d
tree5ec670e02d6ee289c0a13c952aa4a09cbfb725a9
parent621817b20a175656cfe60018140a96330f836af4
*    Changed LNetGet() LNetPut() to include a source nid parameter
     Set this to LNET_NID_ANY to have the source nid set automatically,
     otherwise it checks that the destination is reachable from the given
     source NID and sends using that.   This ensures the source NID is
     deterministic in the presence of equivalent routes.

*    Changed LNetDist() to return the count of networks traversed rather than
     routers (i.e. 0 == local, 1 == local net, 2 == via 1 router etc).  It also
     returns a source NID (== NID of local LNET interface that will send).

*    Changed LNet() completion events to include the target process ID so the app
     can tell which NID the sender sent to.

*    Removed the 'implicit_loopback' lnet module parameter.  You have to use
     0@lo explicitly if you want loopback.

*    Changed lustre to remember the source NID returned by LNetDist() to ensure
     client requests always arrive with a consistent initiator NID.

*    Changed lustre to remember the target NID of incoming requests to ensure
     server replies are always sent with the same source NID that the client
     sent her requests to.

*    Changed lustre to use a NID of 0@lo if the distance to the target NID is 0
     (i.e use the loopback LNET interface when talking to local servers).
19 files changed:
lnet/include/lnet/api.h
lnet/include/lnet/lib-lnet.h
lnet/include/lnet/types.h
lnet/klnds/iiblnd/iiblnd_cb.c
lnet/klnds/openiblnd/openiblnd.c
lnet/klnds/openiblnd/openiblnd_cb.c
lnet/klnds/qswlnd/qswlnd_cb.c
lnet/klnds/ralnd/ralnd_cb.c
lnet/klnds/viblnd/viblnd_cb.c
lnet/lnet/api-ni.c
lnet/lnet/config.c
lnet/lnet/lib-move.c
lnet/lnet/lib-msg.c
lnet/lnet/router.c
lnet/tests/ping_cli.c
lnet/tests/ping_srv.c
lnet/tests/sping_cli.c
lnet/tests/sping_srv.c
lnet/tests/ut_cli.c