aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/mlx5/mlx5_ifc.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2024-01-30 13:08:31 +0100
committerPaolo Abeni <pabeni@redhat.com>2024-02-01 15:39:44 +0100
commit2c54a4d71246379f4ffb9beb6a780f9a49fdfc24 (patch)
treefdf632f4f2dd2f7bd0dca938829d3139b0966989 /include/linux/mlx5/mlx5_ifc.h
parentdpll: extend lock_status_get() op by status error and expose to user (diff)
downloadwireguard-linux-2c54a4d71246379f4ffb9beb6a780f9a49fdfc24.tar.xz
wireguard-linux-2c54a4d71246379f4ffb9beb6a780f9a49fdfc24.zip
net/mlx5: DPLL, Implement lock status error value
Fill-up the lock status error value properly. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Acked-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux/mlx5/mlx5_ifc.h')
-rw-r--r--include/linux/mlx5/mlx5_ifc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index c726f90ab752..6c44f107b8ba 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -12705,6 +12705,14 @@ enum mlx5_msees_oper_status {
MLX5_MSEES_OPER_STATUS_FAIL_FREE_RUNNING = 0x5,
};
+enum mlx5_msees_failure_reason {
+ MLX5_MSEES_FAILURE_REASON_UNDEFINED_ERROR = 0x0,
+ MLX5_MSEES_FAILURE_REASON_PORT_DOWN = 0x1,
+ MLX5_MSEES_FAILURE_REASON_TOO_HIGH_FREQUENCY_DIFF = 0x2,
+ MLX5_MSEES_FAILURE_REASON_NET_SYNCHRONIZER_DEVICE_ERROR = 0x3,
+ MLX5_MSEES_FAILURE_REASON_LACK_OF_RESOURCES = 0x4,
+};
+
struct mlx5_ifc_msees_reg_bits {
u8 reserved_at_0[0x8];
u8 local_port[0x8];