X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lnet%2Finclude%2Flnet%2Flib-types.h;h=ad3440c67a0a83a2dd0c3b5662d4bea42a618eca;hb=a1c6026257d0ce303a40c39ea986170fb56ecd2d;hp=3dfda4624b323096a8a52a111950b8482825129d;hpb=6e3ec5812ebd1b5ecf7cae584f429b013ffe7431;p=fs%2Flustre-release.git diff --git a/lnet/include/lnet/lib-types.h b/lnet/include/lnet/lib-types.h index 3dfda46..ad3440c 100644 --- a/lnet/include/lnet/lib-types.h +++ b/lnet/include/lnet/lib-types.h @@ -58,11 +58,17 @@ #define WIRE_ATTR __attribute__((packed)) +/* Packed version of lnet_process_id_t to transfer via network */ +#include +typedef struct { + lnet_nid_t nid; + lnet_pid_t pid; /* node id / process id */ +} WIRE_ATTR lnet_process_id_packed_t; + /* The wire handle's interface cookie only matches one network interface in * one epoch (i.e. new cookie when the interface restarts or the node * reboots). The object cookie only matches one object on that interface * during that object's lifetime (i.e. no cookie re-use). */ -#include typedef struct { __u64 wh_interface_cookie; __u64 wh_object_cookie;