Skip to content

Commit c6b6677

Browse files
MarkZhang81rleon
authored andcommitted
net/mlx5: mlx5_ifc update for accessing ppcnt register of plane ports
This patch adds new fields to support multi-plane and the extend port counters group. Actual support will be added in the next patch. Signed-off-by: Mark Zhang <[email protected]> Link: https://lore.kernel.org/r/70221cdd79aad0e21cbf385d9567e3ebffbc5137.1718553901.git.leon@kernel.org Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 3b43399 commit c6b6677

File tree

1 file changed

+45
-2
lines changed

1 file changed

+45
-2
lines changed

include/linux/mlx5/mlx5_ifc.h

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,6 +2651,46 @@ struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits {
26512651
u8 port_xmit_wait[0x20];
26522652
};
26532653

2654+
struct mlx5_ifc_ib_ext_port_cntrs_grp_data_layout_bits {
2655+
u8 reserved_at_0[0x300];
2656+
2657+
u8 port_xmit_data_high[0x20];
2658+
2659+
u8 port_xmit_data_low[0x20];
2660+
2661+
u8 port_rcv_data_high[0x20];
2662+
2663+
u8 port_rcv_data_low[0x20];
2664+
2665+
u8 port_xmit_pkts_high[0x20];
2666+
2667+
u8 port_xmit_pkts_low[0x20];
2668+
2669+
u8 port_rcv_pkts_high[0x20];
2670+
2671+
u8 port_rcv_pkts_low[0x20];
2672+
2673+
u8 reserved_at_400[0x80];
2674+
2675+
u8 port_unicast_xmit_pkts_high[0x20];
2676+
2677+
u8 port_unicast_xmit_pkts_low[0x20];
2678+
2679+
u8 port_multicast_xmit_pkts_high[0x20];
2680+
2681+
u8 port_multicast_xmit_pkts_low[0x20];
2682+
2683+
u8 port_unicast_rcv_pkts_high[0x20];
2684+
2685+
u8 port_unicast_rcv_pkts_low[0x20];
2686+
2687+
u8 port_multicast_rcv_pkts_high[0x20];
2688+
2689+
u8 port_multicast_rcv_pkts_low[0x20];
2690+
2691+
u8 reserved_at_580[0x240];
2692+
};
2693+
26542694
struct mlx5_ifc_eth_per_tc_prio_grp_data_layout_bits {
26552695
u8 transmit_queue_high[0x20];
26562696

@@ -4543,6 +4583,7 @@ union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits {
45434583
struct mlx5_ifc_eth_per_tc_prio_grp_data_layout_bits eth_per_tc_prio_grp_data_layout;
45444584
struct mlx5_ifc_eth_per_tc_congest_prio_grp_data_layout_bits eth_per_tc_congest_prio_grp_data_layout;
45454585
struct mlx5_ifc_ib_port_cntrs_grp_data_layout_bits ib_port_cntrs_grp_data_layout;
4586+
struct mlx5_ifc_ib_ext_port_cntrs_grp_data_layout_bits ib_ext_port_cntrs_grp_data_layout;
45464587
struct mlx5_ifc_phys_layer_cntrs_bits phys_layer_cntrs;
45474588
struct mlx5_ifc_phys_layer_statistical_cntrs_bits phys_layer_statistical_cntrs;
45484589
u8 reserved_at_0[0x7c0];
@@ -9851,8 +9892,10 @@ struct mlx5_ifc_ppcnt_reg_bits {
98519892
u8 grp[0x6];
98529893

98539894
u8 clr[0x1];
9854-
u8 reserved_at_21[0x1c];
9855-
u8 prio_tc[0x3];
9895+
u8 reserved_at_21[0x13];
9896+
u8 plane_ind[0x4];
9897+
u8 reserved_at_38[0x3];
9898+
u8 prio_tc[0x5];
98569899

98579900
union mlx5_ifc_eth_cntrs_grp_data_layout_auto_bits counter_set;
98589901
};

0 commit comments

Comments
 (0)