diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2018-12-19 10:59:07 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2019-01-02 12:05:17 -0500 |
commit | 0a93fbcb16e6b1f36780f9a20d6427f26cec761d (patch) | |
tree | cb665350bc1ed9073b010ab8ef99910a7c4f1323 /fs/kernfs/file.c | |
parent | 5f62412be3ff738c9575b28c1f4a9b010ac22316 (diff) |
xprtrdma: Plant XID in on-the-wire RDMA offset (FRWR)
Place the associated RPC transaction's XID in the upper 32 bits of
each RDMA segment's rdma_offset field. There are two reasons to do
this:
- The R_key only has 8 bits that are different from registration to
registration. The XID adds more uniqueness to each RDMA segment to
reduce the likelihood of a software bug on the server reading from
or writing into memory it's not supposed to.
- On-the-wire RDMA Read and Write requests do not otherwise carry
any identifier that matches them up to an RPC. The XID in the
upper 32 bits will act as an eye-catcher in network captures.
Suggested-by: Tom Talpey <ttalpey@microsoft.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/kernfs/file.c')
0 files changed, 0 insertions, 0 deletions