Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2019 09:09:25 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r353212 - stable/11/sys/dev/mlx5/mlx5_core
Message-ID:  <201910070909.x9799PHq073788@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon Oct  7 09:09:25 2019
New Revision: 353212
URL: https://svnweb.freebsd.org/changeset/base/353212

Log:
  MFC r352969:
  Use the MLX5_VSC_DOMAIN_SEMAPHORES constant instead of hand-rolled symbol
  in mlx5core.
  
  Submitted by:	kib@
  Sponsored by:	Mellanox Technologies

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

Modified: stable/11/sys/dev/mlx5/mlx5_core/mlx5_vsc.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_core/mlx5_vsc.c	Mon Oct  7 09:08:33 2019	(r353211)
+++ stable/11/sys/dev/mlx5/mlx5_core/mlx5_vsc.c	Mon Oct  7 09:09:25 2019	(r353212)
@@ -29,8 +29,6 @@
 #include <dev/mlx5/device.h>
 #include <dev/mlx5/mlx5_core/mlx5_core.h>
 
-#define	MLX5_SEMAPHORE_SPACE_DOMAIN 0xA
-
 int mlx5_vsc_lock(struct mlx5_core_dev *mdev)
 {
 	device_t dev = mdev->pdev->dev.bsddev;
@@ -188,7 +186,7 @@ int mlx5_vsc_lock_addr_space(struct mlx5_core_dev *mde
 	int ret;
 	u32 id;
 
-	ret = mlx5_vsc_set_space(mdev, MLX5_SEMAPHORE_SPACE_DOMAIN);
+	ret = mlx5_vsc_set_space(mdev, MLX5_VSC_DOMAIN_SEMAPHORES);
 	if (ret)
 		return ret;
 
@@ -215,7 +213,7 @@ int mlx5_vsc_unlock_addr_space(struct mlx5_core_dev *m
 	u32 data = 0;
 	int ret;
 
-	ret = mlx5_vsc_set_space(mdev, MLX5_SEMAPHORE_SPACE_DOMAIN);
+	ret = mlx5_vsc_set_space(mdev, MLX5_VSC_DOMAIN_SEMAPHORES);
 	if (ret)
 		return ret;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910070909.x9799PHq073788>