Whamcloud - gitweb
LU-9859 libcfs: move RESV_PORT definitions to lnet/lib-lnet.h 12/50412/3
authorMr. NeilBrown <neilb@suse.de>
Fri, 24 Mar 2023 17:04:50 +0000 (13:04 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 4 Apr 2023 14:39:15 +0000 (14:39 +0000)
These are network related and only used in lnet, so move
to lib-lnet.h

Test-Parameters: trivial
Signed-off-by: Mr. NeilBrown <neilb@suse.de>
Change-Id: Idcac5eb8a9c9ee255b167f01bc873aa6bbfd09dd
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50412
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
libcfs/include/libcfs/libcfs.h
lnet/include/lnet/lib-lnet.h

index 7b552d4..de99f6e 100644 (file)
 
 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)
 {
index 056386a..66db8d8 100644 (file)
@@ -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