aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-06-22 10:53:27 -0400
committerJason Gunthorpe <jgg@mellanox.com>2018-06-22 10:53:27 -0400
commit4d7dff2b8b24d0087c75afb8e53140acdd1dc2bd (patch)
treead4935b76e81ff0e19384274e3f80a75198f2bca /include/linux/mlx5
parentcfdeb8934b6f85f235071e9d3700756a0a12758d (diff)
parent9f876f3de6616f02960d7d88ad52c805946f4b63 (diff)
Merge branch 'icrc-counter' into rdma.git for-next
For dependencies, branch based on 'mellanox/mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git Pull RoCE ICRC counters from Leon Romanovsky: ==================== This series exposes RoCE ICRC counter through existing RDMA hw_counters sysfs interface. The first patch has all HW definitions in mlx5_ifc.h file and second patch is the actual counter implementation. ==================== * branch 'icrc-counter': IB/mlx5: Support RoCE ICRC encapsulated error counter net/mlx5: Add RoCE RX ICRC encapsulated counter
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/mlx5_ifc.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 00b539303f5d..743d9b9efb33 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -1685,7 +1685,11 @@ struct mlx5_ifc_eth_extended_cntrs_grp_data_layout_bits {
1685 1685
1686 u8 rx_buffer_full_low[0x20]; 1686 u8 rx_buffer_full_low[0x20];
1687 1687
1688 u8 reserved_at_1c0[0x600]; 1688 u8 rx_icrc_encapsulated_high[0x20];
1689
1690 u8 rx_icrc_encapsulated_low[0x20];
1691
1692 u8 reserved_at_200[0x5c0];
1689}; 1693};
1690 1694
1691struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits { 1695struct mlx5_ifc_eth_3635_cntrs_grp_data_layout_bits {
@@ -8048,8 +8052,9 @@ struct mlx5_ifc_peir_reg_bits {
8048}; 8052};
8049 8053
8050struct mlx5_ifc_pcam_enhanced_features_bits { 8054struct mlx5_ifc_pcam_enhanced_features_bits {
8051 u8 reserved_at_0[0x76]; 8055 u8 reserved_at_0[0x6d];
8052 8056 u8 rx_icrc_encapsulated_counter[0x1];
8057 u8 reserved_at_6e[0x8];
8053 u8 pfcc_mask[0x1]; 8058 u8 pfcc_mask[0x1];
8054 u8 reserved_at_77[0x4]; 8059 u8 reserved_at_77[0x4];
8055 u8 rx_buffer_fullness_counters[0x1]; 8060 u8 rx_buffer_fullness_counters[0x1];