Whamcloud - gitweb
LU-15944 lnet: remove crash with UDSP 01/48801/7
authorCyril Bordage <cbordage@whamcloud.com>
Thu, 29 Sep 2022 15:19:19 +0000 (17:19 +0200)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Mar 2023 03:28:04 +0000 (03:28 +0000)
commitc56b9455f05f760aea6785c47061761bbc76f3b6
treefdcf1e8d45722315c1b3458a29ba2a656c275b0b
parentf8e129198b002589daf4acdaf10cb970e9dab44a
LU-15944 lnet: remove crash with UDSP

The following sequence of commands caused a crash:
  # lnetctl udsp add --dst tcp --prio 1
  # lnetctl discover 192.168.122.60@tcp
Pointer to lnet_peer_net in udsp_info is checked before used.

Comments about syntax of "lnetctl udsp" command were updated.

Test-Parameters: trivial testlist=lnet-selftest,sanity-lnet
Signed-off-by: Cyril Bordage <cbordage@whamcloud.com>
Change-Id: Ie3ae40b184e22627655e7f3813c5d16d38a6cfb8
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48801
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/udsp.c
lnet/utils/lnetctl.c
lustre/tests/sanity-lnet.sh