net/mlx4_core: Introduce ACCESS_REG CMD and eth_prot_ctrl dev cap
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx4 / cmd.c
index b16e1b95566f4db9708540742c4002233a429cb2..916459effcfa9060de816423832fccfca1d3101b 100644 (file)
@@ -1338,6 +1338,15 @@ static struct mlx4_cmd_info cmd_info[] = {
                .verify = NULL,
                .wrapper = mlx4_QUERY_IF_STAT_wrapper
        },
+       {
+               .opcode = MLX4_CMD_ACCESS_REG,
+               .has_inbox = true,
+               .has_outbox = true,
+               .out_is_imm = false,
+               .encode_slave_id = false,
+               .verify = NULL,
+               .wrapper = NULL,
+       },
        /* Native multicast commands are not available for guests */
        {
                .opcode = MLX4_CMD_QP_ATTACH,