Go to the documentation of this file.
37 #include <linux/compiler.h>
38 #include <linux/list.h>
50 #define MLX4_IB_DRV_NAME "mlx4_ib"
55 #define pr_fmt(fmt) "<" MLX4_IB_DRV_NAME "> %s: " fmt, __func__
57 #define mlx4_ib_warn(ibdev, format, arg...) \
58 dev_warn((ibdev)->dma_device, MLX4_IB_DRV_NAME ": " format, ## arg)
65 #define MLX4_IB_SQ_HEADROOM(shift) ((MLX4_IB_MAX_HEADROOM >> (shift)) + 1)
66 #define MLX4_IB_SQ_MAX_SPARE (MLX4_IB_SQ_HEADROOM(MLX4_IB_SQ_MIN_WQE_SHIFT))
181 #define MLX4_IB_QPT_ANY_SRIOV (MLX4_IB_QPT_PROXY_SMI_OWNER | \
182 MLX4_IB_QPT_PROXY_SMI | MLX4_IB_QPT_PROXY_GSI | MLX4_IB_QPT_TUN_SMI_OWNER | \
183 MLX4_IB_QPT_TUN_SMI | MLX4_IB_QPT_TUN_GSI)
287 #define NUM_PORT_ALIAS_GUID 2
288 #define NUM_ALIAS_GUID_IN_REC 8
289 #define NUM_ALIAS_GUID_REC_IN_PORT 16
290 #define GUID_REC_SIZE 8
291 #define NUM_ALIAS_GUID_PER_PORT 128
292 #define MLX4_NOT_SET_GUID (0x00LL)
293 #define MLX4_GUID_FOR_DELETE_VAL (~(0x00LL))
580 u64 virt_addr,
int access_flags,
584 int max_page_list_len);
620 int attr_mask,
struct ib_udata *udata);
630 void *in_mad,
void *response_mad);
654 static inline int mlx4_ib_ah_grh_present(
struct mlx4_ib_ah *
ah)
661 return !!(ah->
av.
ib.g_slid & 0x80);