Path: blob/main/sys/ofed/include/uapi/rdma/mlx5_user_ioctl_verbs.h
39488 views
/*1* Copyright (c) 2018, Mellanox Technologies inc. All rights reserved.2*3* This software is available to you under a choice of one of two4* licenses. You may choose to be licensed under the terms of the GNU5* General Public License (GPL) Version 2, available from the file6* COPYING in the main directory of this source tree, or the7* OpenIB.org BSD license below:8*9* Redistribution and use in source and binary forms, with or10* without modification, are permitted provided that the following11* conditions are met:12*13* - Redistributions of source code must retain the above14* copyright notice, this list of conditions and the following15* disclaimer.16*17* - Redistributions in binary form must reproduce the above18* copyright notice, this list of conditions and the following19* disclaimer in the documentation and/or other materials20* provided with the distribution.21*22* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,23* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF24* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND25* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS26* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN27* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN28* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE29* SOFTWARE.30*/3132#ifndef MLX5_USER_IOCTL_VERBS_H33#define MLX5_USER_IOCTL_VERBS_H3435#include <linux/types.h>3637enum mlx5_ib_uapi_flow_action_flags {38MLX5_IB_UAPI_FLOW_ACTION_FLAGS_REQUIRE_METADATA = 1 << 0,39};4041enum mlx5_ib_uapi_flow_table_type {42MLX5_IB_UAPI_FLOW_TABLE_TYPE_NIC_RX = 0x0,43MLX5_IB_UAPI_FLOW_TABLE_TYPE_NIC_TX = 0x1,44MLX5_IB_UAPI_FLOW_TABLE_TYPE_FDB = 0x2,45MLX5_IB_UAPI_FLOW_TABLE_TYPE_RDMA_RX = 0x3,46MLX5_IB_UAPI_FLOW_TABLE_TYPE_RDMA_TX = 0x4,47};4849enum mlx5_ib_uapi_flow_action_packet_reformat_type {50MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TUNNEL_TO_L2 = 0x0,51MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TO_L2_TUNNEL = 0x1,52MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L3_TUNNEL_TO_L2 = 0x2,53MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TO_L3_TUNNEL = 0x3,54};5556struct mlx5_ib_uapi_devx_async_cmd_hdr {57__aligned_u64 wr_id;58__u8 out_data[];59};6061enum mlx5_ib_uapi_dm_type {62MLX5_IB_UAPI_DM_TYPE_MEMIC,63MLX5_IB_UAPI_DM_TYPE_STEERING_SW_ICM,64MLX5_IB_UAPI_DM_TYPE_HEADER_MODIFY_SW_ICM,65};6667enum mlx5_ib_uapi_devx_create_event_channel_flags {68MLX5_IB_UAPI_DEVX_CR_EV_CH_FLAGS_OMIT_DATA = 1 << 0,69};7071struct mlx5_ib_uapi_devx_async_event_hdr {72__aligned_u64 cookie;73__u8 out_data[];74};7576enum mlx5_ib_uapi_pp_alloc_flags {77MLX5_IB_UAPI_PP_ALLOC_FLAGS_DEDICATED_INDEX = 1 << 0,78};7980enum mlx5_ib_uapi_uar_alloc_type {81MLX5_IB_UAPI_UAR_ALLOC_TYPE_BF = 0x0,82MLX5_IB_UAPI_UAR_ALLOC_TYPE_NC = 0x1,83};8485#endif86878889