Whamcloud - gitweb
LU-9480 lnet: add sanity checks on ping-related constants 76/25776/23
authorOlaf Weber <olaf@sgi.com>
Mon, 27 Mar 2017 10:22:55 +0000 (12:22 +0200)
committerAmir Shehata <amir.shehata@intel.com>
Tue, 22 Aug 2017 16:22:02 +0000 (16:22 +0000)
commitc9fbfcbc41aed4a1fd31bfd2a66df69f86ef48e8
tree2c1bf213aa983d64dc9521c86a07b1a7a6fab2c9
parentf18b437dc934db4b960bc3c46d5e1c242ee5c8ef
LU-9480 lnet: add sanity checks on ping-related constants

Add sanity checks for LNet ping related data structures and
constants to wirecheck.c, and update the generated code in
lnet_assert_wire_constants().

In order for the structures and macros to be visible to
wirecheck.c, which is a userspace program, they were moved
from kernel-only lnet/lib-types.h to lnet/types.h

Test-Parameters: trivial
Signed-off-by: Olaf Weber <olaf@sgi.com>
Change-Id: I2949d27445b29ec69cf8c17b7769291f270a5923
Reviewed-on: https://review.whamcloud.com/25776
Reviewed-by: Amir Shehata <amir.shehata@intel.com>
Tested-by: Amir Shehata <amir.shehata@intel.com>
lnet/include/lnet/lib-types.h
lnet/include/uapi/linux/lnet/lnet-types.h
lnet/lnet/api-ni.c
lnet/utils/wirecheck.c