MLX5_SET(query_hca_vport_context_in, in, port_num, port_num);returnmlx5_cmd_exec_check_status(mdev, in,sizeof(in), out, outlen); } 开发者ID:2asoft,项目名称:freebsd,代码行数:30,代码来源:mlx5_vport.c 示例3: mlx5_modify_vport_admin_state ▲点赞 4▼ intmlx5_modify_vport_ad...
MLX5_CMD_OP_SYNC_STEERING = 0xb00, }; enum { MLX5_CMD_STAT_OK = 0x0, MLX5_CMD_STAT_INT_ERR = 0x1, MLX5_CMD_STAT_BAD_OP_ERR = 0x2, MLX5_CMD_STAT_BAD_PARAM_ERR = 0x3, MLX5_CMD_STAT_BAD_SYS_STATE_ERR = 0x4, MLX5_CMD_STAT_BAD_RES_ERR = 0x5, MLX5_CMD_STAT_RE...
struct mlx5_create_qp_mbox_in *in,intinlen){structmlx5_create_qp_mbox_outout;structmlx5_destroy_qp_mbox_indin;structmlx5_destroy_qp_mbox_outdout;interr;memset(&out,0,sizeof(out)); in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_QP); err =mlx5_cmd_exec(dev, in, inlen, &...