18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright (c) 2018, Mellanox Technologies inc. All rights reserved. 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * This software is available to you under a choice of one of two 58c2ecf20Sopenharmony_ci * licenses. You may choose to be licensed under the terms of the GNU 68c2ecf20Sopenharmony_ci * General Public License (GPL) Version 2, available from the file 78c2ecf20Sopenharmony_ci * COPYING in the main directory of this source tree, or the 88c2ecf20Sopenharmony_ci * OpenIB.org BSD license below: 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * Redistribution and use in source and binary forms, with or 118c2ecf20Sopenharmony_ci * without modification, are permitted provided that the following 128c2ecf20Sopenharmony_ci * conditions are met: 138c2ecf20Sopenharmony_ci * 148c2ecf20Sopenharmony_ci * - Redistributions of source code must retain the above 158c2ecf20Sopenharmony_ci * copyright notice, this list of conditions and the following 168c2ecf20Sopenharmony_ci * disclaimer. 178c2ecf20Sopenharmony_ci * 188c2ecf20Sopenharmony_ci * - Redistributions in binary form must reproduce the above 198c2ecf20Sopenharmony_ci * copyright notice, this list of conditions and the following 208c2ecf20Sopenharmony_ci * disclaimer in the documentation and/or other materials 218c2ecf20Sopenharmony_ci * provided with the distribution. 228c2ecf20Sopenharmony_ci * 238c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 248c2ecf20Sopenharmony_ci * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 258c2ecf20Sopenharmony_ci * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 268c2ecf20Sopenharmony_ci * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 278c2ecf20Sopenharmony_ci * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 288c2ecf20Sopenharmony_ci * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 298c2ecf20Sopenharmony_ci * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 308c2ecf20Sopenharmony_ci * SOFTWARE. 318c2ecf20Sopenharmony_ci */ 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci#ifndef MLX5_USER_IOCTL_VERBS_H 348c2ecf20Sopenharmony_ci#define MLX5_USER_IOCTL_VERBS_H 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci#include <linux/types.h> 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_cienum mlx5_ib_uapi_flow_action_flags { 398c2ecf20Sopenharmony_ci MLX5_IB_UAPI_FLOW_ACTION_FLAGS_REQUIRE_METADATA = 1 << 0, 408c2ecf20Sopenharmony_ci}; 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_cienum mlx5_ib_uapi_flow_table_type { 438c2ecf20Sopenharmony_ci MLX5_IB_UAPI_FLOW_TABLE_TYPE_NIC_RX = 0x0, 448c2ecf20Sopenharmony_ci MLX5_IB_UAPI_FLOW_TABLE_TYPE_NIC_TX = 0x1, 458c2ecf20Sopenharmony_ci MLX5_IB_UAPI_FLOW_TABLE_TYPE_FDB = 0x2, 468c2ecf20Sopenharmony_ci MLX5_IB_UAPI_FLOW_TABLE_TYPE_RDMA_RX = 0x3, 478c2ecf20Sopenharmony_ci MLX5_IB_UAPI_FLOW_TABLE_TYPE_RDMA_TX = 0x4, 488c2ecf20Sopenharmony_ci}; 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_cienum mlx5_ib_uapi_flow_action_packet_reformat_type { 518c2ecf20Sopenharmony_ci MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TUNNEL_TO_L2 = 0x0, 528c2ecf20Sopenharmony_ci MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TO_L2_TUNNEL = 0x1, 538c2ecf20Sopenharmony_ci MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L3_TUNNEL_TO_L2 = 0x2, 548c2ecf20Sopenharmony_ci MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TO_L3_TUNNEL = 0x3, 558c2ecf20Sopenharmony_ci}; 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_cistruct mlx5_ib_uapi_devx_async_cmd_hdr { 588c2ecf20Sopenharmony_ci __aligned_u64 wr_id; 598c2ecf20Sopenharmony_ci __u8 out_data[]; 608c2ecf20Sopenharmony_ci}; 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_cienum mlx5_ib_uapi_dm_type { 638c2ecf20Sopenharmony_ci MLX5_IB_UAPI_DM_TYPE_MEMIC, 648c2ecf20Sopenharmony_ci MLX5_IB_UAPI_DM_TYPE_STEERING_SW_ICM, 658c2ecf20Sopenharmony_ci MLX5_IB_UAPI_DM_TYPE_HEADER_MODIFY_SW_ICM, 668c2ecf20Sopenharmony_ci}; 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_cienum mlx5_ib_uapi_devx_create_event_channel_flags { 698c2ecf20Sopenharmony_ci MLX5_IB_UAPI_DEVX_CR_EV_CH_FLAGS_OMIT_DATA = 1 << 0, 708c2ecf20Sopenharmony_ci}; 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_cistruct mlx5_ib_uapi_devx_async_event_hdr { 738c2ecf20Sopenharmony_ci __aligned_u64 cookie; 748c2ecf20Sopenharmony_ci __u8 out_data[]; 758c2ecf20Sopenharmony_ci}; 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_cienum mlx5_ib_uapi_pp_alloc_flags { 788c2ecf20Sopenharmony_ci MLX5_IB_UAPI_PP_ALLOC_FLAGS_DEDICATED_INDEX = 1 << 0, 798c2ecf20Sopenharmony_ci}; 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_cienum mlx5_ib_uapi_uar_alloc_type { 828c2ecf20Sopenharmony_ci MLX5_IB_UAPI_UAR_ALLOC_TYPE_BF = 0x0, 838c2ecf20Sopenharmony_ci MLX5_IB_UAPI_UAR_ALLOC_TYPE_NC = 0x1, 848c2ecf20Sopenharmony_ci}; 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci#endif 878c2ecf20Sopenharmony_ci 88