Author: kib
Date: Sat May 23 11:55:13 2020
New Revision: 361411
URL: https://svnweb.freebsd.org/changeset/base/361411

Log:
  MFC r361276:
  mlx5_core: add "PMD type not enabled" port module event type.
  
  Sponsored by: Mellanox Technologies

Modified:
  stable/12/sys/dev/mlx5/device.h
  stable/12/sys/dev/mlx5/mlx5_core/mlx5_eq.c
  stable/12/sys/dev/mlx5/mlx5_core/mlx5_main.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/mlx5/device.h
==============================================================================
--- stable/12/sys/dev/mlx5/device.h     Sat May 23 10:32:18 2020        
(r361410)
+++ stable/12/sys/dev/mlx5/device.h     Sat May 23 11:55:13 2020        
(r361411)
@@ -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                                   ,
 };
 

Modified: stable/12/sys/dev/mlx5/mlx5_core/mlx5_eq.c
==============================================================================
--- stable/12/sys/dev/mlx5/mlx5_core/mlx5_eq.c  Sat May 23 10:32:18 2020        
(r361410)
+++ stable/12/sys/dev/mlx5/mlx5_core/mlx5_eq.c  Sat May 23 11:55:13 2020        
(r361411)
@@ -659,6 +659,8 @@ static const char *mlx5_port_module_event_error_type_t
                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";
        }

Modified: stable/12/sys/dev/mlx5/mlx5_core/mlx5_main.c
==============================================================================
--- stable/12/sys/dev/mlx5/mlx5_core/mlx5_main.c        Sat May 23 10:32:18 
2020        (r361410)
+++ stable/12/sys/dev/mlx5/mlx5_core/mlx5_main.c        Sat May 23 11:55:13 
2020        (r361411)
@@ -1302,7 +1302,8 @@ m(+1, u64, no_eeprom, "no_eeprom", "No EEPROM/retry ti
 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)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to