aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mlx5
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-05-23 11:55:13 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-05-23 11:55:13 +0000
commit577c03a26769cd3060d8544ebca8b393fbb8c338 (patch)
tree530c4749f597238c5cf2c20ad67153292b92c76d /sys/dev/mlx5
parent27a941c0a67edfddbf8f858f4913daf2756a7a30 (diff)
Notes
Diffstat (limited to 'sys/dev/mlx5')
-rw-r--r--sys/dev/mlx5/device.h1
-rw-r--r--sys/dev/mlx5/mlx5_core/mlx5_eq.c2
-rw-r--r--sys/dev/mlx5/mlx5_core/mlx5_main.c3
3 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/mlx5/device.h b/sys/dev/mlx5/device.h
index 08bdf8681e00..10bc78d053f3 100644
--- a/sys/dev/mlx5/device.h
+++ b/sys/dev/mlx5/device.h
@@ -551,6 +551,7 @@ enum {
MLX5_MODULE_EVENT_ERROR_UNSUPPORTED_CABLE = 0x5,
MLX5_MODULE_EVENT_ERROR_HIGH_TEMPERATURE = 0x6,
MLX5_MODULE_EVENT_ERROR_CABLE_IS_SHORTED = 0x7,
+ MLX5_MODULE_EVENT_ERROR_PMD_TYPE_NOT_ENABLED = 0x8,
MLX5_MODULE_EVENT_ERROR_NUM ,
};
diff --git a/sys/dev/mlx5/mlx5_core/mlx5_eq.c b/sys/dev/mlx5/mlx5_core/mlx5_eq.c
index de08c3ec80f9..f6ba999243a4 100644
--- a/sys/dev/mlx5/mlx5_core/mlx5_eq.c
+++ b/sys/dev/mlx5/mlx5_core/mlx5_eq.c
@@ -659,6 +659,8 @@ static const char *mlx5_port_module_event_error_type_to_string(u8 error_type)
return "High Temperature";
case MLX5_MODULE_EVENT_ERROR_CABLE_IS_SHORTED:
return "Bad or shorted cable/module";
+ case MLX5_MODULE_EVENT_ERROR_PMD_TYPE_NOT_ENABLED:
+ return "PMD type is not enabled";
default:
return "Unknown error type";
}
diff --git a/sys/dev/mlx5/mlx5_core/mlx5_main.c b/sys/dev/mlx5/mlx5_core/mlx5_main.c
index 041bbf194bc0..a49cfd3cc208 100644
--- a/sys/dev/mlx5/mlx5_core/mlx5_main.c
+++ b/sys/dev/mlx5/mlx5_core/mlx5_main.c
@@ -1302,7 +1302,8 @@ m(+1, u64, no_eeprom, "no_eeprom", "No EEPROM/retry timeout") \
m(+1, u64, enforce_part_number, "enforce_part_number", "Module Enforce part number list") \
m(+1, u64, unknown_id, "unknown_id", "Module Unknown identifier") \
m(+1, u64, high_temp, "high_temp", "Module High Temperature") \
-m(+1, u64, cable_shorted, "cable_shorted", "Module Cable is shorted")
+m(+1, u64, cable_shorted, "cable_shorted", "Module Cable is shorted") \
+m(+1, u64, pmd_type_not_enabled, "pmd_type_not_enabled", "PMD type is not enabled")
static const char *mlx5_pme_err_desc[] = {
MLX5_PORT_MODULE_ERROR_STATS(MLX5_STATS_DESC)