Re: [PATCH] staging: lustre: lnet: use correct 'magic' test

2018-03-21 Thread NeilBrown
On Wed, Mar 21 2018, Justin Skists wrote: > Use the lnet_magic_accept() function to compare 'magic' against > LNET_PROTO_TCP_MAGIC for the appropriate string for an error message. > > The original fix removed an unneeded byte-ordering cast because the define > was already CPU byte-ordered and it

[PATCH] staging: lustre: lnet: use correct 'magic' test

2018-03-21 Thread Justin Skists
Use the lnet_magic_accept() function to compare 'magic' against LNET_PROTO_TCP_MAGIC for the appropriate string for an error message. The original fix removed an unneeded byte-ordering cast because the define was already CPU byte-ordered and it was assumed that 'magic' was CPU byte-ordered, too.