Skip to content

Commit

Permalink
net/mlx5: Add structures layout for new MCAM access reg groups
Browse files Browse the repository at this point in the history
MCAM has 3 access_reg_groups (0-2). Defines data structures in order to
read and parse access_reg_groups #1 and #2.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
  • Loading branch information
Eran Ben Elisha authored and Saeed Mahameed committed Jan 16, 2020
1 parent ca1992c commit f397464
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions include/linux/mlx5/mlx5_ifc.h
Original file line number Diff line number Diff line change
Expand Up @@ -8832,6 +8832,28 @@ struct mlx5_ifc_mcam_access_reg_bits {
u8 regs_31_to_0[0x20];
};

struct mlx5_ifc_mcam_access_reg_bits1 {
u8 regs_127_to_96[0x20];

u8 regs_95_to_64[0x20];

u8 regs_63_to_32[0x20];

u8 regs_31_to_0[0x20];
};

struct mlx5_ifc_mcam_access_reg_bits2 {
u8 regs_127_to_99[0x1d];
u8 mirc[0x1];
u8 regs_97_to_96[0x2];

u8 regs_95_to_64[0x20];

u8 regs_63_to_32[0x20];

u8 regs_31_to_0[0x20];
};

struct mlx5_ifc_mcam_reg_bits {
u8 reserved_at_0[0x8];
u8 feature_group[0x8];
Expand All @@ -8842,6 +8864,8 @@ struct mlx5_ifc_mcam_reg_bits {

union {
struct mlx5_ifc_mcam_access_reg_bits access_regs;
struct mlx5_ifc_mcam_access_reg_bits1 access_regs1;
struct mlx5_ifc_mcam_access_reg_bits2 access_regs2;
u8 reserved_at_0[0x80];
} mng_access_reg_cap_mask;

Expand Down

0 comments on commit f397464

Please sign in to comment.