diff options
author | NeilBrown <neilb@suse.com> | 2018-05-21 14:35:13 +1000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-25 18:29:10 +0200 |
commit | 525609ed58e7c743987ed6bba228da02392ca090 (patch) | |
tree | e81033ec6f137bc64be17cf74368b5bf12b21e8e /drivers/staging/lustre/include | |
parent | 17bcf37aac8c9beb050e1339cf6821e9d16bc71c (diff) | |
download | op-kernel-dev-525609ed58e7c743987ed6bba228da02392ca090.zip op-kernel-dev-525609ed58e7c743987ed6bba228da02392ca090.tar.gz |
staging: lustre: move RESV_PORT definitions to lnet/lib-lnet.h
These are network related on only used in lnet, so move
to lib-lnet.h
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/include')
-rw-r--r-- | drivers/staging/lustre/include/linux/libcfs/libcfs.h | 4 | ||||
-rw-r--r-- | drivers/staging/lustre/include/linux/lnet/lib-lnet.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs.h b/drivers/staging/lustre/include/linux/libcfs/libcfs.h index c7d025c..20dfe88 100644 --- a/drivers/staging/lustre/include/linux/libcfs/libcfs.h +++ b/drivers/staging/lustre/include/linux/libcfs/libcfs.h @@ -89,10 +89,6 @@ #define LIBCFS_VERSION "0.7.0" -/* need both kernel and user-land acceptor */ -#define LNET_ACCEPTOR_MIN_RESERVED_PORT 512 -#define LNET_ACCEPTOR_MAX_RESERVED_PORT 1023 - extern struct blocking_notifier_head libcfs_ioctl_list; static inline int notifier_from_ioctl_errno(int err) { diff --git a/drivers/staging/lustre/include/linux/lnet/lib-lnet.h b/drivers/staging/lustre/include/linux/lnet/lib-lnet.h index df4c725..82561e9 100644 --- a/drivers/staging/lustre/include/linux/lnet/lib-lnet.h +++ b/drivers/staging/lustre/include/linux/lnet/lib-lnet.h @@ -68,6 +68,10 @@ extern struct lnet the_lnet; /* THE network */ /** exclusive lock */ #define LNET_LOCK_EX CFS_PERCPT_LOCK_EX +/* need both kernel and user-land acceptor */ +#define LNET_ACCEPTOR_MIN_RESERVED_PORT 512 +#define LNET_ACCEPTOR_MAX_RESERVED_PORT 1023 + static inline int lnet_is_route_alive(struct lnet_route *route) { /* gateway is down */ |