aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/qed
diff options
context:
space:
mode:
authorYuval Basson <yuval.bason@marvell.com>2020-05-26 09:41:20 +0300
committerDavid S. Miller <davem@davemloft.net>2020-05-26 15:15:40 -0700
commitff937b916eb6316fe4644564a572ed3b5867bc1f (patch)
tree4459b01559e710a6fd660f989a621a2b9ab6374f /include/linux/qed
parenttcp: tcp_v4_err() icmp skb is named icmp_skb (diff)
downloadlinux-dev-ff937b916eb6316fe4644564a572ed3b5867bc1f.tar.xz
linux-dev-ff937b916eb6316fe4644564a572ed3b5867bc1f.zip
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: f10939403352 ("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>
Diffstat (limited to 'include/linux/qed')
-rw-r--r--include/linux/qed/qed_rdma_if.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/qed/qed_rdma_if.h b/include/linux/qed/qed_rdma_if.h
index f93edd5750a5..584077565f12 100644
--- a/include/linux/qed/qed_rdma_if.h
+++ b/include/linux/qed/qed_rdma_if.h
@@ -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 {