History

RDMA/core: Added missing WR and WC opcodes

Add work completion opcodes to a new ib_uverbs_wc_opcode enum in ib_user_verbs.h. This plays the same role as ib_uverbs_wr_opcode documenting the opcodes in the user space API. Assigned the IB_WC_XXX opcodes in ib_verbs.h to the IB_UVERBS_WC_XXX where they are defined. This follows the same pattern as the IB_WR_XXX opcodes. This fixes an incorrect value for LSO that had crept in but is not currently being used. Added a missing IB_WR_BIND_MW opcode in ib_verbs.h.

Bob Pearson committed 6 years ago

Commit b60b9c01 parent 1d4299e2 files · +20 −7Browse files

Showing the changes to include/uapi/rdma (1 of 2 files). Show all

Unified · Split

include/uapi/rdma/ib_user_verbs.h+11−0
@@ -457,6 +457,17 @@ struct ib_uverbs_poll_cq { · 456 unmodified lines
457 __u32 ne;457 __u32 ne;
458};458};
459 459
460enum ib_uverbs_wc_opcode {
461 IB_UVERBS_WC_SEND = 0,
462 IB_UVERBS_WC_RDMA_WRITE = 1,
463 IB_UVERBS_WC_RDMA_READ = 2,
464 IB_UVERBS_WC_COMP_SWAP = 3,
465 IB_UVERBS_WC_FETCH_ADD = 4,
466 IB_UVERBS_WC_BIND_MW = 5,
467 IB_UVERBS_WC_LOCAL_INV = 6,
468 IB_UVERBS_WC_TSO = 7,
469};
470
460struct ib_uverbs_wc {471struct ib_uverbs_wc {
461 __aligned_u64 wr_id;472 __aligned_u64 wr_id;
462 __u32 status;473 __u32 status;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t