Author: hselasky
Date: Thu May 16 16:01:11 2019
New Revision: 347737
URL: https://svnweb.freebsd.org/changeset/base/347737

Log:
  MFC r347273:
  Add reading the mcam_reg in mlx5core.
  
  Submitted by: slavash@
  Sponsored by: Mellanox Technologies

Modified:
  stable/12/sys/dev/mlx5/mlx5_core/mlx5_fw.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/mlx5/mlx5_core/mlx5_fw.c
==============================================================================
--- stable/12/sys/dev/mlx5/mlx5_core/mlx5_fw.c  Thu May 16 16:00:37 2019        
(r347736)
+++ stable/12/sys/dev/mlx5/mlx5_core/mlx5_fw.c  Thu May 16 16:01:11 2019        
(r347737)
@@ -215,6 +215,12 @@ int mlx5_query_hca_caps(struct mlx5_core_dev *dev)
                        return err;
        }
 
+       if (MLX5_CAP_GEN(dev, mcam_reg)) {
+               err = mlx5_get_mcam_reg(dev);
+               if (err)
+                       return err;
+       }
+
        err = mlx5_core_query_special_contexts(dev);
        if (err)
                return err;
_______________________________________________
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