qed: Add EDPM mode type for user-fw compatibility

In older FW versions the completion flag was treated as the ack flag in
edpm messages. Expose the FW option of setting which mode the QP is in
by adding a flag to the qedr <-> qed API.

Flag is added for backward compatibility with libqedr.
This flag will be set by qedr after determining whether the libqedr is
using the updated version.

Fixes: f109394033 ("qed: Add support for QP verbs")
Signed-off-by: Yuval Basson <yuval.bason@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Yuval Basson
2020-05-26 09:41:20 +03:00
committed by David S. Miller
parent 239174945d
commit ff937b916e
4 changed files with 8 additions and 0 deletions

View File

@@ -335,6 +335,9 @@ struct qed_rdma_create_qp_in_params {
u16 xrcd_id;
u8 stats_queue;
enum qed_rdma_qp_type qp_type;
u8 flags;
#define QED_ROCE_EDPM_MODE_MASK 0x1
#define QED_ROCE_EDPM_MODE_SHIFT 0
};
struct qed_rdma_create_qp_out_params {