xprtrdma: Expose transport header errors
authorChuck Lever <chuck.lever@oracle.com>
Wed, 19 Dec 2018 15:59:28 +0000 (10:59 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 2 Jan 2019 17:05:18 +0000 (12:05 -0500)
For better observability of parsing errors, return the error code
generated in the decoders to the upper layer consumer.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c

index 939f84adbbdae18ed7dbb04acb5a8e1cb44db0ef..8de0b9fc975bd6ef2098f80abb8c71d3ddfa8001 100644 (file)
@@ -1246,7 +1246,6 @@ out:
 out_badheader:
        trace_xprtrdma_reply_hdr(rep);
        r_xprt->rx_stats.bad_reply_count++;
-       status = -EIO;
        goto out;
 }