net/mlx5: Add HW definition of reg_c_preserve
authorPaul Blakey <paulb@mellanox.com>
Tue, 12 Jan 2021 07:05:24 +0000 (23:05 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jan 2021 23:45:32 +0000 (15:45 -0800)
Add capability bit to test whether reg_c value is preserved on
recirculation.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/mlx5/mlx5_ifc.h

index 442c016..823411e 100644 (file)
@@ -1278,7 +1278,9 @@ struct mlx5_ifc_cmd_hca_cap_bits {
 
        u8         reserved_at_a0[0x3];
        u8         ece_support[0x1];
-       u8         reserved_at_a4[0x7];
+       u8         reserved_at_a4[0x5];
+       u8         reg_c_preserve[0x1];
+       u8         reserved_at_aa[0x1];
        u8         log_max_srq[0x5];
        u8         reserved_at_b0[0x1];
        u8         uplink_follow[0x1];