From c3f0f6a17e371de0c361e780281525c7673b6824 Mon Sep 17 00:00:00 2001 From: rread Date: Wed, 12 Nov 2003 21:11:24 +0000 Subject: [PATCH] - fix set_route - add kptlrouter to list of modules --- lnet/libcfs/module.c | 2 +- lnet/utils/debug.c | 1 + lustre/portals/libcfs/module.c | 2 +- lustre/portals/utils/debug.c | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lnet/libcfs/module.c b/lnet/libcfs/module.c index a01dfe2..6432070 100644 --- a/lnet/libcfs/module.c +++ b/lnet/libcfs/module.c @@ -243,7 +243,7 @@ kportal_router_cmd(struct portals_cfg *pcfg, void * private) pcfg->pcfg_flags ? "Enabling" : "Disabling", (time_t)pcfg->pcfg_nid3); - err = kportal_notify_router (pcfg->pcfg_nal, pcfg->pcfg_nid, + err = kportal_notify_router (pcfg->pcfg_gw_nal, pcfg->pcfg_nid, pcfg->pcfg_flags, (time_t)pcfg->pcfg_nid3); break; diff --git a/lnet/utils/debug.c b/lnet/utils/debug.c index 753c652..ecd0b81 100644 --- a/lnet/utils/debug.c +++ b/lnet/utils/debug.c @@ -531,6 +531,7 @@ int jt_dbg_modules(int argc, char **argv) } *mp, mod_paths[] = { {"portals", "lustre/portals/libcfs"}, {"ksocknal", "lustre/portals/knals/socknal"}, + {"kptlrouter", "lustre/portals/router"}, {"lvfs", "lustre/lvfs"}, {"obdclass", "lustre/obdclass"}, {"llog_test", "lustre/obdclass"}, diff --git a/lustre/portals/libcfs/module.c b/lustre/portals/libcfs/module.c index a01dfe2..6432070 100644 --- a/lustre/portals/libcfs/module.c +++ b/lustre/portals/libcfs/module.c @@ -243,7 +243,7 @@ kportal_router_cmd(struct portals_cfg *pcfg, void * private) pcfg->pcfg_flags ? "Enabling" : "Disabling", (time_t)pcfg->pcfg_nid3); - err = kportal_notify_router (pcfg->pcfg_nal, pcfg->pcfg_nid, + err = kportal_notify_router (pcfg->pcfg_gw_nal, pcfg->pcfg_nid, pcfg->pcfg_flags, (time_t)pcfg->pcfg_nid3); break; diff --git a/lustre/portals/utils/debug.c b/lustre/portals/utils/debug.c index 753c652..ecd0b81 100644 --- a/lustre/portals/utils/debug.c +++ b/lustre/portals/utils/debug.c @@ -531,6 +531,7 @@ int jt_dbg_modules(int argc, char **argv) } *mp, mod_paths[] = { {"portals", "lustre/portals/libcfs"}, {"ksocknal", "lustre/portals/knals/socknal"}, + {"kptlrouter", "lustre/portals/router"}, {"lvfs", "lustre/lvfs"}, {"obdclass", "lustre/obdclass"}, {"llog_test", "lustre/obdclass"}, -- 1.8.3.1