summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/mlx5_ifc.h
diff options
context:
space:
mode:
authorEyal Davidovich2018-10-07 14:18:37 +0200
committerSaeed Mahameed2018-12-11 23:52:20 +0100
commit75370eb0d3b802f54600f2fc3ae5255fe9270112 (patch)
tree6ad185ba9d93fb9d0028749c0f86d138bf969d22 /include/linux/mlx5/mlx5_ifc.h
parentnet/mlx5e: Use CQE padding for Ethernet CQs (diff)
downloadkernel-qcow2-linux-75370eb0d3b802f54600f2fc3ae5255fe9270112.tar.gz
kernel-qcow2-linux-75370eb0d3b802f54600f2fc3ae5255fe9270112.tar.xz
kernel-qcow2-linux-75370eb0d3b802f54600f2fc3ae5255fe9270112.zip
net/mlx5e: Avoid query PPCNT register if not supported by the device
PPCNT is not supported if PCAM access reg is supported and ppcnt bit is clear. Signed-off-by: Eyal Davidovich <eyald@mellanox.com> Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/mlx5_ifc.h')
-rw-r--r--include/linux/mlx5/mlx5_ifc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 60c1d49eb40c..c12b0dec2889 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -8283,7 +8283,9 @@ struct mlx5_ifc_pcam_regs_5000_to_507f_bits {
u8 port_access_reg_cap_mask_31_to_13[0x13];
u8 pbmc[0x1];
u8 pptb[0x1];
- u8 port_access_reg_cap_mask_10_to_0[0xb];
+ u8 port_access_reg_cap_mask_10_to_09[0x2];
+ u8 ppcnt[0x1];
+ u8 port_access_reg_cap_mask_07_to_00[0x8];
};
struct mlx5_ifc_pcam_reg_bits {