Whamcloud - gitweb
LU-18637 obd: add 'network' server mount option 80/57780/10
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 15 Jan 2025 17:23:46 +0000 (18:23 +0100)
committerOleg Drokin <green@whamcloud.com>
Sat, 22 Feb 2025 23:41:55 +0000 (23:41 +0000)
commitcf9492e522ecdc6688ad267338725f025fe89a1a
tree0fd02966206d1af2f7b3207da28d13c8f5329f3a
parentee494113b1a403c0f235b6c340596ef3f39e1f87
LU-18637 obd: add 'network' server mount option

Just like the '-o network' client option, we want to control which
LNet network is used for connections established by servers to remote
peers (MGS, other servers).
This controls the following connections:
- osp
- lwp
- mgc
This patch leverages the 'imp_conn_restricted_net' field on the
'struct obd_import'.

Enhance sanity-sec test_31 to exercise this '-o network' option on
server side.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I39cbab2645aeda6fe54efb377d1b1d9edfceb89f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57780
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
lustre/ldlm/ldlm_lib.c
lustre/obdclass/obd_config.c
lustre/obdclass/obd_mount.c
lustre/osp/lwp_dev.c
lustre/ptlrpc/client.c
lustre/ptlrpc/events.c
lustre/target/tgt_mount.c
lustre/tests/sanity-sec.sh