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 939f84a..8de0b9f 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;
 }