Whamcloud - gitweb
LU-12678 lnet: use lnet_accept_magic, not le32_to_cpu.
[fs/lustre-release.git] / lnet / lnet / acceptor.c
index 232018b..9f1fc51 100644 (file)
@@ -252,7 +252,7 @@ lnet_accept(struct socket *sock, __u32 magic)
                        return -EPROTO;
                }
 
-               if (magic == le32_to_cpu(LNET_PROTO_TCP_MAGIC))
+               if (lnet_accept_magic(magic, LNET_PROTO_TCP_MAGIC))
                        str = "'old' socknal/tcpnal";
                else
                        str = "unrecognised";