Whamcloud - gitweb
LU-10391 socklnd: don't deref lnet_hdr in LNDs 02/43602/11
authorMr NeilBrown <neilb@suse.de>
Mon, 11 May 2020 03:52:34 +0000 (13:52 +1000)
committerJames Simmons <jsimmons@infradead.org>
Fri, 7 Jan 2022 01:11:26 +0000 (20:11 -0500)
commit24fe28bd4413fd97358a129c6b63ffc2e832a631
tree57d401ed1320f983e855b1e88b60b35c3eb11574
parent206d32e46c221b5c32729be3fe3f5ebd1c3fc29f
LU-10391 socklnd: don't deref lnet_hdr in LNDs

The lnd_hdr structure needs to be extended to support larger
addresses.  To assist this we need to minimize the number of places
that its content are accessed.

Currently the internals of lnet_hdr are larely untouched inside the
various LNDs, but there are some exceptions in socklnd.
These exceptions are not necessary - the same data is available from
elsewhere in the lnet_msg.

So change those accesses to use the lnet_msg info instead.

Test-Parameters: trivial
Test-Parameters: serverversion=2.12 serverdistro=el7.9 testlist=runtests
Test-Parameters: clientversion=2.12 testlist=runtests
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ia37548323fafc77df7a42a1ac956c926f1b9ebf9
lnet/klnds/socklnd/socklnd_cb.c