File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -334,6 +334,32 @@ struct smbdirect_recv_io {
334334 u8 packet [];
335335};
336336
337+ enum smbdirect_mr_state {
338+ SMBDIRECT_MR_READY ,
339+ SMBDIRECT_MR_REGISTERED ,
340+ SMBDIRECT_MR_INVALIDATED ,
341+ SMBDIRECT_MR_ERROR
342+ };
343+
344+ struct smbdirect_mr_io {
345+ struct smbdirect_socket * socket ;
346+ struct ib_cqe cqe ;
347+
348+ struct list_head list ;
349+
350+ enum smbdirect_mr_state state ;
351+ struct ib_mr * mr ;
352+ struct sg_table sgt ;
353+ enum dma_data_direction dir ;
354+ union {
355+ struct ib_reg_wr wr ;
356+ struct ib_send_wr inv_wr ;
357+ };
358+
359+ bool need_invalidate ;
360+ struct completion invalidate_done ;
361+ };
362+
337363struct smbdirect_rw_io {
338364 struct smbdirect_socket * socket ;
339365 struct ib_cqe cqe ;
You can’t perform that action at this time.
0 commit comments