diff options
| author | Justin Skists <j.skists@gmail.com> | 2018-03-21 22:53:09 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-22 20:15:35 +0300 |
| commit | 127aaef460ebb715f22d185db2b4d4149bd91c89 (patch) | |
| tree | 1d23ed718d1c57abfd1cb38afc79d47165b16861 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | f65d6eb430010b123d923ea79eeb11a92118a7ab (diff) | |
| download | linux-127aaef460ebb715f22d185db2b4d4149bd91c89.tar.xz | |
staging: lustre: lnet: use correct 'magic' test
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.
Now modify the if-statement to use the appropriate lnet_accept_magic()
function in order to be consistent with similar tests. This will allow
the code to be consistent with the general understanding that 'magic'
should be in host-byte-order for the peer that sent the message.
Fixes: 80782927e3aa ("staging: lustre: Fix unneeded byte-ordering cast")
Signed-off-by: Justin Skists <j.skists@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
