Commit faae55ad authored by Xin Zhao's avatar Xin Zhao
Browse files

Add new pkt flags for different LOCK ACKs.

Add new flags for four different kinds of LOCK ACKs:

(1) LOCK_GRANTED: lock is granted on target.
(2) LOCK_QUEUED_DATA_QUEUED: lock is not granted on target,
    but it is safely queued on target. If this lock request
    is sent with an RMA operation, the operation data is also
    safely queued on target.
(3) LOCK_QUEUED_DATA_DISCARDED: lock is not granted on target,
    but it is safely queued on target. If this lock request
    is sent with an RMA operation, the operation data is discarded
    on target due to out of resources.
(4) LOCK_DISCARDED: lock is not granted on target, and it is
    not queued up on target due to out of resources. If this
    lock request is set with an RMA opration, the operation data
    is also discarded on target.

No reviewer.
parent e36203c3
......@@ -119,8 +119,11 @@ typedef enum {
MPIDI_CH3_PKT_FLAG_RMA_FLUSH_ACK = 256,
MPIDI_CH3_PKT_FLAG_RMA_UNLOCK_ACK = 512,
MPIDI_CH3_PKT_FLAG_RMA_LOCK_GRANTED = 1024,
MPIDI_CH3_PKT_FLAG_RMA_UNLOCK_NO_ACK = 2048,
MPIDI_CH3_PKT_FLAG_RMA_IMMED_RESP = 4096
MPIDI_CH3_PKT_FLAG_RMA_LOCK_QUEUED_DATA_QUEUED = 2048,
MPIDI_CH3_PKT_FLAG_RMA_LOCK_QUEUED_DATA_DISCARDED = 4096,
MPIDI_CH3_PKT_FLAG_RMA_LOCK_DISCARDED = 8192,
MPIDI_CH3_PKT_FLAG_RMA_UNLOCK_NO_ACK = 16384,
MPIDI_CH3_PKT_FLAG_RMA_IMMED_RESP = 32768
} MPIDI_CH3_Pkt_flags_t;
typedef struct MPIDI_CH3_Pkt_send {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment