Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Mar 2018 20:05:22 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r331571 - stable/11/sys/dev/mlx5/mlx5_core
Message-ID:  <201803262005.w2QK5MHq006283@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon Mar 26 20:05:22 2018
New Revision: 331571
URL: https://svnweb.freebsd.org/changeset/base/331571

Log:
  MFC r330598:
  Use a macro in mlx5_command_str() instead of copying OP name.
  
  linux commit 42ca502e179d0654ef441333a9d0f35c948734f3
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/sys/dev/mlx5/mlx5_core/mlx5_cmd.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mlx5/mlx5_core/mlx5_cmd.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_core/mlx5_cmd.c	Mon Mar 26 20:01:58 2018	(r331570)
+++ stable/11/sys/dev/mlx5/mlx5_core/mlx5_cmd.c	Mon Mar 26 20:05:22 2018	(r331571)
@@ -296,403 +296,141 @@ static void dump_buf(void *buf, int size, int data_onl
 
 const char *mlx5_command_str(int command)
 {
-	switch (command) {
-	case MLX5_CMD_OP_QUERY_HCA_CAP:
-		return "QUERY_HCA_CAP";
+        #define MLX5_COMMAND_STR_CASE(__cmd) case MLX5_CMD_OP_ ## __cmd: return #__cmd
 
-	case MLX5_CMD_OP_SET_HCA_CAP:
-		return "SET_HCA_CAP";
-
-	case MLX5_CMD_OP_QUERY_ADAPTER:
-		return "QUERY_ADAPTER";
-
-	case MLX5_CMD_OP_INIT_HCA:
-		return "INIT_HCA";
-
-	case MLX5_CMD_OP_TEARDOWN_HCA:
-		return "TEARDOWN_HCA";
-
-	case MLX5_CMD_OP_ENABLE_HCA:
-		return "MLX5_CMD_OP_ENABLE_HCA";
-
-	case MLX5_CMD_OP_DISABLE_HCA:
-		return "MLX5_CMD_OP_DISABLE_HCA";
-
-	case MLX5_CMD_OP_QUERY_PAGES:
-		return "QUERY_PAGES";
-
-	case MLX5_CMD_OP_MANAGE_PAGES:
-		return "MANAGE_PAGES";
-
-	case MLX5_CMD_OP_QUERY_ISSI:
-		return "QUERY_ISSI";
-
-	case MLX5_CMD_OP_SET_ISSI:
-		return "SET_ISSI";
-
-	case MLX5_CMD_OP_CREATE_MKEY:
-		return "CREATE_MKEY";
-
-	case MLX5_CMD_OP_QUERY_MKEY:
-		return "QUERY_MKEY";
-
-	case MLX5_CMD_OP_DESTROY_MKEY:
-		return "DESTROY_MKEY";
-
-	case MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS:
-		return "QUERY_SPECIAL_CONTEXTS";
-
-	case MLX5_CMD_OP_PAGE_FAULT_RESUME:
-		return "PAGE_FAULT_RESUME";
-
-	case MLX5_CMD_OP_CREATE_EQ:
-		return "CREATE_EQ";
-
-	case MLX5_CMD_OP_DESTROY_EQ:
-		return "DESTROY_EQ";
-
-	case MLX5_CMD_OP_QUERY_EQ:
-		return "QUERY_EQ";
-
-	case MLX5_CMD_OP_GEN_EQE:
-		return "GEN_EQE";
-
-	case MLX5_CMD_OP_CREATE_CQ:
-		return "CREATE_CQ";
-
-	case MLX5_CMD_OP_DESTROY_CQ:
-		return "DESTROY_CQ";
-
-	case MLX5_CMD_OP_QUERY_CQ:
-		return "QUERY_CQ";
-
-	case MLX5_CMD_OP_MODIFY_CQ:
-		return "MODIFY_CQ";
-
-	case MLX5_CMD_OP_CREATE_QP:
-		return "CREATE_QP";
-
-	case MLX5_CMD_OP_DESTROY_QP:
-		return "DESTROY_QP";
-
-	case MLX5_CMD_OP_RST2INIT_QP:
-		return "RST2INIT_QP";
-
-	case MLX5_CMD_OP_INIT2RTR_QP:
-		return "INIT2RTR_QP";
-
-	case MLX5_CMD_OP_RTR2RTS_QP:
-		return "RTR2RTS_QP";
-
-	case MLX5_CMD_OP_RTS2RTS_QP:
-		return "RTS2RTS_QP";
-
-	case MLX5_CMD_OP_SQERR2RTS_QP:
-		return "SQERR2RTS_QP";
-
-	case MLX5_CMD_OP_2ERR_QP:
-		return "2ERR_QP";
-
-	case MLX5_CMD_OP_2RST_QP:
-		return "2RST_QP";
-
-	case MLX5_CMD_OP_QUERY_QP:
-		return "QUERY_QP";
-
-	case MLX5_CMD_OP_SQD_RTS_QP:
-		return "SQD_RTS_QP";
-
-	case MLX5_CMD_OP_MAD_IFC:
-		return "MAD_IFC";
-
-	case MLX5_CMD_OP_INIT2INIT_QP:
-		return "INIT2INIT_QP";
-
-	case MLX5_CMD_OP_CREATE_PSV:
-		return "CREATE_PSV";
-
-	case MLX5_CMD_OP_DESTROY_PSV:
-		return "DESTROY_PSV";
-
-	case MLX5_CMD_OP_CREATE_SRQ:
-		return "CREATE_SRQ";
-
-	case MLX5_CMD_OP_DESTROY_SRQ:
-		return "DESTROY_SRQ";
-
-	case MLX5_CMD_OP_QUERY_SRQ:
-		return "QUERY_SRQ";
-
-	case MLX5_CMD_OP_ARM_RQ:
-		return "ARM_RQ";
-
-	case MLX5_CMD_OP_CREATE_XRC_SRQ:
-		return "CREATE_XRC_SRQ";
-
-	case MLX5_CMD_OP_DESTROY_XRC_SRQ:
-		return "DESTROY_XRC_SRQ";
-
-	case MLX5_CMD_OP_QUERY_XRC_SRQ:
-		return "QUERY_XRC_SRQ";
-
-	case MLX5_CMD_OP_ARM_XRC_SRQ:
-		return "ARM_XRC_SRQ";
-
-	case MLX5_CMD_OP_CREATE_DCT:
-		return "CREATE_DCT";
-
-	case MLX5_CMD_OP_SET_DC_CNAK_TRACE:
-		return "SET_DC_CNAK_TRACE";
-
-	case MLX5_CMD_OP_DESTROY_DCT:
-		return "DESTROY_DCT";
-
-	case MLX5_CMD_OP_DRAIN_DCT:
-		return "DRAIN_DCT";
-
-	case MLX5_CMD_OP_QUERY_DCT:
-		return "QUERY_DCT";
-
-	case MLX5_CMD_OP_ARM_DCT_FOR_KEY_VIOLATION:
-		return "ARM_DCT_FOR_KEY_VIOLATION";
-
-	case MLX5_CMD_OP_QUERY_VPORT_STATE:
-		return "QUERY_VPORT_STATE";
-
-	case MLX5_CMD_OP_MODIFY_VPORT_STATE:
-		return "MODIFY_VPORT_STATE";
-
-	case MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT:
-		return "QUERY_ESW_VPORT_CONTEXT";
-
-	case MLX5_CMD_OP_MODIFY_ESW_VPORT_CONTEXT:
-		return "MODIFY_ESW_VPORT_CONTEXT";
-
-	case MLX5_CMD_OP_QUERY_NIC_VPORT_CONTEXT:
-		return "QUERY_NIC_VPORT_CONTEXT";
-
-	case MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT:
-		return "MODIFY_NIC_VPORT_CONTEXT";
-
-	case MLX5_CMD_OP_QUERY_ROCE_ADDRESS:
-		return "QUERY_ROCE_ADDRESS";
-
-	case MLX5_CMD_OP_SET_ROCE_ADDRESS:
-		return "SET_ROCE_ADDRESS";
-
-	case MLX5_CMD_OP_QUERY_HCA_VPORT_CONTEXT:
-		return "QUERY_HCA_VPORT_CONTEXT";
-
-	case MLX5_CMD_OP_MODIFY_HCA_VPORT_CONTEXT:
-		return "MODIFY_HCA_VPORT_CONTEXT";
-
-	case MLX5_CMD_OP_QUERY_HCA_VPORT_GID:
-		return "QUERY_HCA_VPORT_GID";
-
-	case MLX5_CMD_OP_QUERY_HCA_VPORT_PKEY:
-		return "QUERY_HCA_VPORT_PKEY";
-
-	case MLX5_CMD_OP_QUERY_VPORT_COUNTER:
-		return "QUERY_VPORT_COUNTER";
-
-	case MLX5_CMD_OP_SET_WOL_ROL:
-		return "SET_WOL_ROL";
-
-	case MLX5_CMD_OP_QUERY_WOL_ROL:
-		return "QUERY_WOL_ROL";
-
-	case MLX5_CMD_OP_ALLOC_Q_COUNTER:
-		return "ALLOC_Q_COUNTER";
-
-	case MLX5_CMD_OP_DEALLOC_Q_COUNTER:
-		return "DEALLOC_Q_COUNTER";
-
-	case MLX5_CMD_OP_QUERY_Q_COUNTER:
-		return "QUERY_Q_COUNTER";
-
-	case MLX5_CMD_OP_ALLOC_PD:
-		return "ALLOC_PD";
-
-	case MLX5_CMD_OP_DEALLOC_PD:
-		return "DEALLOC_PD";
-
-	case MLX5_CMD_OP_ALLOC_UAR:
-		return "ALLOC_UAR";
-
-	case MLX5_CMD_OP_DEALLOC_UAR:
-		return "DEALLOC_UAR";
-
-	case MLX5_CMD_OP_CONFIG_INT_MODERATION:
-		return "CONFIG_INT_MODERATION";
-
-	case MLX5_CMD_OP_ATTACH_TO_MCG:
-		return "ATTACH_TO_MCG";
-
-	case MLX5_CMD_OP_DETACH_FROM_MCG:
-		return "DETACH_FROM_MCG";
-
-	case MLX5_CMD_OP_GET_DROPPED_PACKET_LOG:
-		return "GET_DROPPED_PACKET_LOG";
-
-	case MLX5_CMD_OP_QUERY_MAD_DEMUX:
-		return "QUERY_MAD_DEMUX";
-
-	case MLX5_CMD_OP_SET_MAD_DEMUX:
-		return "SET_MAD_DEMUX";
-
-	case MLX5_CMD_OP_NOP:
-		return "NOP";
-
-	case MLX5_CMD_OP_ALLOC_XRCD:
-		return "ALLOC_XRCD";
-
-	case MLX5_CMD_OP_DEALLOC_XRCD:
-		return "DEALLOC_XRCD";
-
-	case MLX5_CMD_OP_ALLOC_TRANSPORT_DOMAIN:
-		return "ALLOC_TRANSPORT_DOMAIN";
-
-	case MLX5_CMD_OP_DEALLOC_TRANSPORT_DOMAIN:
-		return "DEALLOC_TRANSPORT_DOMAIN";
-
-	case MLX5_CMD_OP_QUERY_CONG_STATUS:
-		return "QUERY_CONG_STATUS";
-
-	case MLX5_CMD_OP_MODIFY_CONG_STATUS:
-		return "MODIFY_CONG_STATUS";
-
-	case MLX5_CMD_OP_QUERY_CONG_PARAMS:
-		return "QUERY_CONG_PARAMS";
-
-	case MLX5_CMD_OP_MODIFY_CONG_PARAMS:
-		return "MODIFY_CONG_PARAMS";
-
-	case MLX5_CMD_OP_QUERY_CONG_STATISTICS:
-		return "QUERY_CONG_STATISTICS";
-
-	case MLX5_CMD_OP_ADD_VXLAN_UDP_DPORT:
-		return "ADD_VXLAN_UDP_DPORT";
-
-	case MLX5_CMD_OP_DELETE_VXLAN_UDP_DPORT:
-		return "DELETE_VXLAN_UDP_DPORT";
-
-	case MLX5_CMD_OP_SET_L2_TABLE_ENTRY:
-		return "SET_L2_TABLE_ENTRY";
-
-	case MLX5_CMD_OP_QUERY_L2_TABLE_ENTRY:
-		return "QUERY_L2_TABLE_ENTRY";
-
-	case MLX5_CMD_OP_DELETE_L2_TABLE_ENTRY:
-		return "DELETE_L2_TABLE_ENTRY";
-
-	case MLX5_CMD_OP_CREATE_RMP:
-		return "CREATE_RMP";
-
-	case MLX5_CMD_OP_MODIFY_RMP:
-		return "MODIFY_RMP";
-
-	case MLX5_CMD_OP_DESTROY_RMP:
-		return "DESTROY_RMP";
-
-	case MLX5_CMD_OP_QUERY_RMP:
-		return "QUERY_RMP";
-
-	case MLX5_CMD_OP_CREATE_RQT:
-		return "CREATE_RQT";
-
-	case MLX5_CMD_OP_MODIFY_RQT:
-		return "MODIFY_RQT";
-
-	case MLX5_CMD_OP_DESTROY_RQT:
-		return "DESTROY_RQT";
-
-	case MLX5_CMD_OP_QUERY_RQT:
-		return "QUERY_RQT";
-
-	case MLX5_CMD_OP_ACCESS_REG:
-		return "MLX5_CMD_OP_ACCESS_REG";
-
-	case MLX5_CMD_OP_CREATE_SQ:
-		return "CREATE_SQ";
-
-	case MLX5_CMD_OP_MODIFY_SQ:
-		return "MODIFY_SQ";
-
-	case MLX5_CMD_OP_DESTROY_SQ:
-		return "DESTROY_SQ";
-
-	case MLX5_CMD_OP_QUERY_SQ:
-		return "QUERY_SQ";
-
-	case MLX5_CMD_OP_CREATE_RQ:
-		return "CREATE_RQ";
-
-	case MLX5_CMD_OP_MODIFY_RQ:
-		return "MODIFY_RQ";
-
-	case MLX5_CMD_OP_DESTROY_RQ:
-		return "DESTROY_RQ";
-
-	case MLX5_CMD_OP_QUERY_RQ:
-		return "QUERY_RQ";
-
-	case MLX5_CMD_OP_CREATE_TIR:
-		return "CREATE_TIR";
-
-	case MLX5_CMD_OP_MODIFY_TIR:
-		return "MODIFY_TIR";
-
-	case MLX5_CMD_OP_DESTROY_TIR:
-		return "DESTROY_TIR";
-
-	case MLX5_CMD_OP_QUERY_TIR:
-		return "QUERY_TIR";
-
-	case MLX5_CMD_OP_CREATE_TIS:
-		return "CREATE_TIS";
-
-	case MLX5_CMD_OP_MODIFY_TIS:
-		return "MODIFY_TIS";
-
-	case MLX5_CMD_OP_DESTROY_TIS:
-		return "DESTROY_TIS";
-
-	case MLX5_CMD_OP_QUERY_TIS:
-		return "QUERY_TIS";
-
-	case MLX5_CMD_OP_CREATE_FLOW_TABLE:
-		return "CREATE_FLOW_TABLE";
-
-	case MLX5_CMD_OP_DESTROY_FLOW_TABLE:
-		return "DESTROY_FLOW_TABLE";
-
-	case MLX5_CMD_OP_QUERY_FLOW_TABLE:
-		return "QUERY_FLOW_TABLE";
-
-	case MLX5_CMD_OP_CREATE_FLOW_GROUP:
-		return "CREATE_FLOW_GROUP";
-
-	case MLX5_CMD_OP_DESTROY_FLOW_GROUP:
-		return "DESTROY_FLOW_GROUP";
-
-	case MLX5_CMD_OP_QUERY_FLOW_GROUP:
-		return "QUERY_FLOW_GROUP";
-
-	case MLX5_CMD_OP_SET_FLOW_TABLE_ENTRY:
-		return "SET_FLOW_TABLE_ENTRY";
-
-	case MLX5_CMD_OP_QUERY_FLOW_TABLE_ENTRY:
-		return "QUERY_FLOW_TABLE_ENTRY";
-
-	case MLX5_CMD_OP_DELETE_FLOW_TABLE_ENTRY:
-		return "DELETE_FLOW_TABLE_ENTRY";
-
-	case MLX5_CMD_OP_SET_DIAGNOSTICS:
-		return "MLX5_CMD_OP_SET_DIAGNOSTICS";
-
-	case MLX5_CMD_OP_QUERY_DIAGNOSTICS:
-		return "MLX5_CMD_OP_QUERY_DIAGNOSTICS";
-
+	switch (command) {
+	MLX5_COMMAND_STR_CASE(QUERY_HCA_CAP);
+	MLX5_COMMAND_STR_CASE(SET_HCA_CAP);
+	MLX5_COMMAND_STR_CASE(QUERY_ADAPTER);
+	MLX5_COMMAND_STR_CASE(INIT_HCA);
+	MLX5_COMMAND_STR_CASE(TEARDOWN_HCA);
+	MLX5_COMMAND_STR_CASE(ENABLE_HCA);
+	MLX5_COMMAND_STR_CASE(DISABLE_HCA);
+	MLX5_COMMAND_STR_CASE(QUERY_PAGES);
+	MLX5_COMMAND_STR_CASE(MANAGE_PAGES);
+	MLX5_COMMAND_STR_CASE(QUERY_ISSI);
+	MLX5_COMMAND_STR_CASE(SET_ISSI);
+	MLX5_COMMAND_STR_CASE(CREATE_MKEY);
+	MLX5_COMMAND_STR_CASE(QUERY_MKEY);
+	MLX5_COMMAND_STR_CASE(DESTROY_MKEY);
+	MLX5_COMMAND_STR_CASE(QUERY_SPECIAL_CONTEXTS);
+	MLX5_COMMAND_STR_CASE(PAGE_FAULT_RESUME);
+	MLX5_COMMAND_STR_CASE(CREATE_EQ);
+	MLX5_COMMAND_STR_CASE(DESTROY_EQ);
+	MLX5_COMMAND_STR_CASE(QUERY_EQ);
+	MLX5_COMMAND_STR_CASE(GEN_EQE);
+	MLX5_COMMAND_STR_CASE(CREATE_CQ);
+	MLX5_COMMAND_STR_CASE(DESTROY_CQ);
+	MLX5_COMMAND_STR_CASE(QUERY_CQ);
+	MLX5_COMMAND_STR_CASE(MODIFY_CQ);
+	MLX5_COMMAND_STR_CASE(CREATE_QP);
+	MLX5_COMMAND_STR_CASE(DESTROY_QP);
+	MLX5_COMMAND_STR_CASE(RST2INIT_QP);
+	MLX5_COMMAND_STR_CASE(INIT2RTR_QP);
+	MLX5_COMMAND_STR_CASE(RTR2RTS_QP);
+	MLX5_COMMAND_STR_CASE(RTS2RTS_QP);
+	MLX5_COMMAND_STR_CASE(SQERR2RTS_QP);
+	MLX5_COMMAND_STR_CASE(2ERR_QP);
+	MLX5_COMMAND_STR_CASE(2RST_QP);
+	MLX5_COMMAND_STR_CASE(QUERY_QP);
+	MLX5_COMMAND_STR_CASE(SQD_RTS_QP);
+	MLX5_COMMAND_STR_CASE(MAD_IFC);
+	MLX5_COMMAND_STR_CASE(INIT2INIT_QP);
+	MLX5_COMMAND_STR_CASE(CREATE_PSV);
+	MLX5_COMMAND_STR_CASE(DESTROY_PSV);
+	MLX5_COMMAND_STR_CASE(CREATE_SRQ);
+	MLX5_COMMAND_STR_CASE(DESTROY_SRQ);
+	MLX5_COMMAND_STR_CASE(QUERY_SRQ);
+	MLX5_COMMAND_STR_CASE(ARM_RQ);
+	MLX5_COMMAND_STR_CASE(CREATE_XRC_SRQ);
+	MLX5_COMMAND_STR_CASE(DESTROY_XRC_SRQ);
+	MLX5_COMMAND_STR_CASE(QUERY_XRC_SRQ);
+	MLX5_COMMAND_STR_CASE(ARM_XRC_SRQ);
+	MLX5_COMMAND_STR_CASE(CREATE_DCT);
+	MLX5_COMMAND_STR_CASE(SET_DC_CNAK_TRACE);
+	MLX5_COMMAND_STR_CASE(DESTROY_DCT);
+	MLX5_COMMAND_STR_CASE(DRAIN_DCT);
+	MLX5_COMMAND_STR_CASE(QUERY_DCT);
+	MLX5_COMMAND_STR_CASE(ARM_DCT_FOR_KEY_VIOLATION);
+	MLX5_COMMAND_STR_CASE(QUERY_VPORT_STATE);
+	MLX5_COMMAND_STR_CASE(MODIFY_VPORT_STATE);
+	MLX5_COMMAND_STR_CASE(QUERY_ESW_VPORT_CONTEXT);
+	MLX5_COMMAND_STR_CASE(MODIFY_ESW_VPORT_CONTEXT);
+	MLX5_COMMAND_STR_CASE(QUERY_NIC_VPORT_CONTEXT);
+	MLX5_COMMAND_STR_CASE(MODIFY_NIC_VPORT_CONTEXT);
+	MLX5_COMMAND_STR_CASE(QUERY_ROCE_ADDRESS);
+	MLX5_COMMAND_STR_CASE(SET_ROCE_ADDRESS);
+	MLX5_COMMAND_STR_CASE(QUERY_HCA_VPORT_CONTEXT);
+	MLX5_COMMAND_STR_CASE(MODIFY_HCA_VPORT_CONTEXT);
+	MLX5_COMMAND_STR_CASE(QUERY_HCA_VPORT_GID);
+	MLX5_COMMAND_STR_CASE(QUERY_HCA_VPORT_PKEY);
+	MLX5_COMMAND_STR_CASE(QUERY_VPORT_COUNTER);
+	MLX5_COMMAND_STR_CASE(SET_WOL_ROL);
+	MLX5_COMMAND_STR_CASE(QUERY_WOL_ROL);
+	MLX5_COMMAND_STR_CASE(ALLOC_Q_COUNTER);
+	MLX5_COMMAND_STR_CASE(DEALLOC_Q_COUNTER);
+	MLX5_COMMAND_STR_CASE(QUERY_Q_COUNTER);
+	MLX5_COMMAND_STR_CASE(ALLOC_PD);
+	MLX5_COMMAND_STR_CASE(DEALLOC_PD);
+	MLX5_COMMAND_STR_CASE(ALLOC_UAR);
+	MLX5_COMMAND_STR_CASE(DEALLOC_UAR);
+	MLX5_COMMAND_STR_CASE(CONFIG_INT_MODERATION);
+	MLX5_COMMAND_STR_CASE(ATTACH_TO_MCG);
+	MLX5_COMMAND_STR_CASE(DETACH_FROM_MCG);
+	MLX5_COMMAND_STR_CASE(GET_DROPPED_PACKET_LOG);
+	MLX5_COMMAND_STR_CASE(QUERY_MAD_DEMUX);
+	MLX5_COMMAND_STR_CASE(SET_MAD_DEMUX);
+	MLX5_COMMAND_STR_CASE(NOP);
+	MLX5_COMMAND_STR_CASE(ALLOC_XRCD);
+	MLX5_COMMAND_STR_CASE(DEALLOC_XRCD);
+	MLX5_COMMAND_STR_CASE(ALLOC_TRANSPORT_DOMAIN);
+	MLX5_COMMAND_STR_CASE(DEALLOC_TRANSPORT_DOMAIN);
+	MLX5_COMMAND_STR_CASE(QUERY_CONG_STATUS);
+	MLX5_COMMAND_STR_CASE(MODIFY_CONG_STATUS);
+	MLX5_COMMAND_STR_CASE(QUERY_CONG_PARAMS);
+	MLX5_COMMAND_STR_CASE(MODIFY_CONG_PARAMS);
+	MLX5_COMMAND_STR_CASE(QUERY_CONG_STATISTICS);
+	MLX5_COMMAND_STR_CASE(ADD_VXLAN_UDP_DPORT);
+	MLX5_COMMAND_STR_CASE(DELETE_VXLAN_UDP_DPORT);
+	MLX5_COMMAND_STR_CASE(SET_L2_TABLE_ENTRY);
+	MLX5_COMMAND_STR_CASE(QUERY_L2_TABLE_ENTRY);
+	MLX5_COMMAND_STR_CASE(DELETE_L2_TABLE_ENTRY);
+	MLX5_COMMAND_STR_CASE(CREATE_RMP);
+	MLX5_COMMAND_STR_CASE(MODIFY_RMP);
+	MLX5_COMMAND_STR_CASE(DESTROY_RMP);
+	MLX5_COMMAND_STR_CASE(QUERY_RMP);
+	MLX5_COMMAND_STR_CASE(CREATE_RQT);
+	MLX5_COMMAND_STR_CASE(MODIFY_RQT);
+	MLX5_COMMAND_STR_CASE(DESTROY_RQT);
+	MLX5_COMMAND_STR_CASE(QUERY_RQT);
+	MLX5_COMMAND_STR_CASE(ACCESS_REG);
+	MLX5_COMMAND_STR_CASE(CREATE_SQ);
+	MLX5_COMMAND_STR_CASE(MODIFY_SQ);
+	MLX5_COMMAND_STR_CASE(DESTROY_SQ);
+	MLX5_COMMAND_STR_CASE(QUERY_SQ);
+	MLX5_COMMAND_STR_CASE(CREATE_RQ);
+	MLX5_COMMAND_STR_CASE(MODIFY_RQ);
+	MLX5_COMMAND_STR_CASE(DESTROY_RQ);
+	MLX5_COMMAND_STR_CASE(QUERY_RQ);
+	MLX5_COMMAND_STR_CASE(CREATE_TIR);
+	MLX5_COMMAND_STR_CASE(MODIFY_TIR);
+	MLX5_COMMAND_STR_CASE(DESTROY_TIR);
+	MLX5_COMMAND_STR_CASE(QUERY_TIR);
+	MLX5_COMMAND_STR_CASE(CREATE_TIS);
+	MLX5_COMMAND_STR_CASE(MODIFY_TIS);
+	MLX5_COMMAND_STR_CASE(DESTROY_TIS);
+	MLX5_COMMAND_STR_CASE(QUERY_TIS);
+	MLX5_COMMAND_STR_CASE(CREATE_FLOW_TABLE);
+	MLX5_COMMAND_STR_CASE(DESTROY_FLOW_TABLE);
+	MLX5_COMMAND_STR_CASE(QUERY_FLOW_TABLE);
+	MLX5_COMMAND_STR_CASE(CREATE_FLOW_GROUP);
+	MLX5_COMMAND_STR_CASE(DESTROY_FLOW_GROUP);
+	MLX5_COMMAND_STR_CASE(QUERY_FLOW_GROUP);
+	MLX5_COMMAND_STR_CASE(SET_FLOW_TABLE_ENTRY);
+	MLX5_COMMAND_STR_CASE(QUERY_FLOW_TABLE_ENTRY);
+	MLX5_COMMAND_STR_CASE(DELETE_FLOW_TABLE_ENTRY);
+	MLX5_COMMAND_STR_CASE(SET_DIAGNOSTICS);
+	MLX5_COMMAND_STR_CASE(QUERY_DIAGNOSTICS);
 	default: return "unknown command opcode";
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803262005.w2QK5MHq006283>