linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] net/mlx5: Define interface bits for fencing UMR wqe
@ 2017-05-28  7:53 Max Gurtovoy
       [not found] ` <1495957991-19223-1-git-send-email-maxg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Max Gurtovoy @ 2017-05-28  7:53 UTC (permalink / raw)
  To: linux-nvme-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	sagi-NQWnxTmZq1alnMjI0IkVqw, linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	hch-jcswGhMUV9g
  Cc: shahar.salzman-Re5JQEeQqe8AvxtiuMwx3w,
	joseph.r.gruher-ral2JQCrhuEAvxtiuMwx3w,
	mrybczyn-FNhOzJFKnXGHXe+LvDLADg, leon-DgEjT+Ai2ygdnm+yROfE0A,
	vladimirk-VPRAkNaXOzVWk0Htik3J/w, oren-VPRAkNaXOzVWk0Htik3J/w,
	Max Gurtovoy

HW can implement UMR wqe re-transmission in various ways.
Thus, add HCA cap to distinguish the needed fence for UMR to make
sure that the wqe wouldn't fail on mkey checks.

Signed-off-by: Max Gurtovoy <maxg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Acked-by: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---

No changes from v1 in this patch (PATCH 1/2).

---
 include/linux/mlx5/mlx5_ifc.h |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 32de072..edafedb 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -766,6 +766,12 @@ enum {
 	MLX5_CAP_PORT_TYPE_ETH = 0x1,
 };
 
+enum {
+	MLX5_CAP_UMR_FENCE_STRONG	= 0x0,
+	MLX5_CAP_UMR_FENCE_SMALL	= 0x1,
+	MLX5_CAP_UMR_FENCE_NONE		= 0x2,
+};
+
 struct mlx5_ifc_cmd_hca_cap_bits {
 	u8         reserved_at_0[0x80];
 
@@ -875,7 +881,9 @@ struct mlx5_ifc_cmd_hca_cap_bits {
 	u8         reserved_at_202[0x1];
 	u8         ipoib_enhanced_offloads[0x1];
 	u8         ipoib_basic_offloads[0x1];
-	u8         reserved_at_205[0xa];
+	u8         reserved_at_205[0x5];
+	u8         umr_fence[0x2];
+	u8         reserved_at_20c[0x3];
 	u8         drain_sigerr[0x1];
 	u8         cmdif_checksum[0x2];
 	u8         sigerr_cqe[0x1];
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-06-01 22:51 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-28  7:53 [PATCH v2 1/2] net/mlx5: Define interface bits for fencing UMR wqe Max Gurtovoy
     [not found] ` <1495957991-19223-1-git-send-email-maxg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2017-05-28  7:53   ` [PATCH v2 2/2] IB/mlx5: set UMR wqe fence according to HCA cap Max Gurtovoy
     [not found]     ` <1495957991-19223-2-git-send-email-maxg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2017-05-28  9:07       ` Christoph Hellwig
     [not found]         ` <20170528090705.GM13083-jcswGhMUV9g@public.gmane.org>
2017-05-28  9:53           ` Max Gurtovoy
     [not found]             ` <19a1d347-91da-7e5f-8877-86772204a80a-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2017-05-29 10:05               ` Leon Romanovsky
     [not found]                 ` <20170529100504.GZ17751-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-05-29 12:21                   ` Max Gurtovoy
     [not found]                     ` <89409b6d-466d-070a-7082-1f7bbb9ad7c7-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2017-05-29 16:06                       ` Leon Romanovsky
     [not found]                         ` <20170529160609.GA17751-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-05-30 10:51                           ` Sagi Grimberg
     [not found]                             ` <d23a5a6f-bd9f-3b1a-34d5-25e8eb2a041c-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
2017-05-30 17:15                               ` Leon Romanovsky
2017-05-30 10:48       ` Sagi Grimberg
     [not found]         ` <700d9410-56e7-d70f-9de4-87e4e37bca28-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
2017-05-30 11:15           ` Max Gurtovoy
     [not found]             ` <9562e253-bc15-4ea1-3880-0430fd540410-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2017-05-30 11:22               ` Sagi Grimberg
     [not found]                 ` <bcd8ef4b-60f9-34e4-a020-0d34407da61e-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
2017-05-30 11:24                   ` Max Gurtovoy
     [not found]                     ` <e93ca49a-63d0-495f-1348-89d6fecf9f54-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2017-05-30 14:28                       ` Sagi Grimberg
     [not found]                         ` <ad73e8d4-f519-3f50-400f-905d075e5ceb-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
2017-05-30 20:41                           ` Max Gurtovoy
2017-05-28  9:14   ` [PATCH v2 1/2] net/mlx5: Define interface bits for fencing UMR wqe Christoph Hellwig
2017-06-01 22:51   ` Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).