X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fmlx5%2Flinux%2Fmlx5_common_os.h;h=83066e752d0c6bdf6d7a0fb2672c47655a1e702c;hb=e6a6829f9996b1cf066669ad1721b3d04552c048;hp=c3202b67869593ffedb935d9a4158795962f3748;hpb=d3c521265eddf9fe604167e1b902909cb65f426b;p=dpdk.git diff --git a/drivers/common/mlx5/linux/mlx5_common_os.h b/drivers/common/mlx5/linux/mlx5_common_os.h index c3202b6786..83066e752d 100644 --- a/drivers/common/mlx5/linux/mlx5_common_os.h +++ b/drivers/common/mlx5/linux/mlx5_common_os.h @@ -203,14 +203,6 @@ mlx5_os_get_devx_uar_page_id(void *uar) #endif } -__rte_internal -static inline void * -mlx5_os_alloc_pd(void *ctx) -{ - return mlx5_glue->alloc_pd(ctx); -} - -__rte_internal static inline int mlx5_os_dealloc_pd(void *pd) { @@ -289,11 +281,26 @@ mlx5_os_free(void *addr) free(addr); } -struct ibv_device * -mlx5_os_get_ibv_device(const struct rte_pci_addr *addr); +void +mlx5_set_context_attr(struct rte_device *dev, struct ibv_context *ctx); -__rte_internal -struct ibv_device * -mlx5_os_get_ibv_dev(const struct rte_device *dev); +/** + * This is used to query system_image_guid as describing in PRM. + * + * @param dev[in] + * Pointer to a device instance as PCIe id. + * @param guid[out] + * Pointer to the buffer to hold device guid. + * Guid is uint64_t and corresponding to 17 bytes string. + * @param len[in] + * Guid buffer length, 17 bytes at least. + * + * @return + * -1 if internal failure. + * 0 if OFED doesn't support. + * >0 if success. + */ +int +mlx5_get_device_guid(const struct rte_pci_addr *dev, uint8_t *guid, size_t len); #endif /* RTE_PMD_MLX5_COMMON_OS_H_ */