Date: Wed, 2 Oct 2019 09:33:39 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r352969 - head/sys/dev/mlx5/mlx5_core Message-ID: <201910020933.x929XdDQ010457@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Wed Oct 2 09:33:38 2019 New Revision: 352969 URL: https://svnweb.freebsd.org/changeset/base/352969 Log: Use the MLX5_VSC_DOMAIN_SEMAPHORES constant instead of hand-rolled symbol in mlx5core. Submitted by: kib@ MFC after: 3 days Sponsored by: Mellanox Technologies Modified: head/sys/dev/mlx5/mlx5_core/mlx5_vsc.c Modified: head/sys/dev/mlx5/mlx5_core/mlx5_vsc.c ============================================================================== --- head/sys/dev/mlx5/mlx5_core/mlx5_vsc.c Wed Oct 2 09:32:41 2019 (r352968) +++ head/sys/dev/mlx5/mlx5_core/mlx5_vsc.c Wed Oct 2 09:33:38 2019 (r352969) @@ -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?201910020933.x929XdDQ010457>