From: Mr. NeilBrown Date: Fri, 24 Mar 2023 17:04:50 +0000 (-0400) Subject: LU-9859 libcfs: move RESV_PORT definitions to lnet/lib-lnet.h X-Git-Tag: 2.15.55~4 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=974193b03a163c6046e2b5d3288b15d4aa887e17;p=fs%2Flustre-release.git LU-9859 libcfs: move RESV_PORT definitions to lnet/lib-lnet.h These are network related and only used in lnet, so move to lib-lnet.h Test-Parameters: trivial Signed-off-by: Mr. NeilBrown Change-Id: Idcac5eb8a9c9ee255b167f01bc873aa6bbfd09dd Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50412 Reviewed-by: Serguei Smirnov Reviewed-by: Frank Sehr Reviewed-by: Cyril Bordage Reviewed-by: Oleg Drokin Tested-by: Maloo Tested-by: jenkins --- diff --git a/libcfs/include/libcfs/libcfs.h b/libcfs/include/libcfs/libcfs.h index 7b552d4..de99f6e 100644 --- a/libcfs/include/libcfs/libcfs.h +++ b/libcfs/include/libcfs/libcfs.h @@ -68,10 +68,6 @@ typedef s32 timeout_t; -/* 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/lnet/include/lnet/lib-lnet.h b/lnet/include/lnet/lib-lnet.h index 056386a..66db8d8 100644 --- a/lnet/include/lnet/lib-lnet.h +++ b/lnet/include/lnet/lib-lnet.h @@ -73,6 +73,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 + /* default timeout and credits */ #define DEFAULT_PEER_TIMEOUT 180 #define DEFAULT_PEER_CREDITS 8