summaryrefslogtreecommitdiffstats
path: root/sys/dev/mlx5/mlx5_core
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2016-05-25 12:03:21 +0000
committerhselasky <hselasky@FreeBSD.org>2016-05-25 12:03:21 +0000
commit0d8f1c25a265d68105325be3bc9678389fbce43e (patch)
tree73f54a7eb35fc5a4152b6c01d5c2eba818c792ba /sys/dev/mlx5/mlx5_core
parent738d07cfc5e98f5ee607466cbbff2ccf43f911b0 (diff)
downloadFreeBSD-src-0d8f1c25a265d68105325be3bc9678389fbce43e.zip
FreeBSD-src-0d8f1c25a265d68105325be3bc9678389fbce43e.tar.gz
Prepare for activation of LinuxKPI module parameters as read-only
tunable SYSCTL's. Linux module parameters are associated with the module they belong to. FreeBSD does not share this concept of a parent module. Instead add macros which define the prefix to use for the module parameters in the LinuxKPI consumers. While at it convert all "bool" LinuxKPI module parameters to "byte" type, because we don't have a "bool" type of SYSCTL in FreeBSD. Sponsored by: Mellanox Technologies MFC after: 1 week
Diffstat (limited to 'sys/dev/mlx5/mlx5_core')
-rw-r--r--sys/dev/mlx5/mlx5_core/mlx5_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/mlx5/mlx5_core/mlx5_main.c b/sys/dev/mlx5/mlx5_core/mlx5_main.c
index 5e5a9ee..2bf3cc0 100644
--- a/sys/dev/mlx5/mlx5_core/mlx5_main.c
+++ b/sys/dev/mlx5/mlx5_core/mlx5_main.c
@@ -25,6 +25,8 @@
* $FreeBSD$
*/
+#define LINUXKPI_PARAM_PREFIX mlx5_
+
#include <linux/kmod.h>
#include <linux/module.h>
#include <linux/errno.h>
OpenPOWER on IntegriCloud