Message ID | 1495957991-19223-1-git-send-email-maxg@mellanox.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On Sun, May 28, 2017 at 10:53:10AM +0300, Max Gurtovoy wrote: > 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@mellanox.com> > Acked-by: Leon Romanovsky <leon@kernel.org> > --- > > No changes from v1 in this patch (PATCH 1/2). Still: Reviewed-by: Christoph Hellwig <hch@lst.de> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Sun, 2017-05-28 at 10:53 +0300, Max Gurtovoy wrote: > 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@mellanox.com> > Acked-by: Leon Romanovsky <leon@kernel.org> Series, with Christoph's fixup, applied.
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];