summaryrefslogtreecommitdiff
path: root/drivers/staging/lustre/lnet/selftest/framework.c
diff options
context:
space:
mode:
authorAmir Shehata <amir.shehata@intel.com>2016-02-22 22:29:09 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-23 02:05:49 (GMT)
commitbe8240ac9ea2aac37500b363ae6747e3c56d1bef (patch)
treeb439f10fd9458f27311b9e95e24c626916b2615a /drivers/staging/lustre/lnet/selftest/framework.c
parent9c26b89dd0dfcea23cd8b27ade244d1e92926629 (diff)
downloadlinux-be8240ac9ea2aac37500b363ae6747e3c56d1bef.tar.xz
staging: lustre: return appropriate errno when adding route
When adding route it ignored specific scenarios, namely: 1. route already exists 2. route is on a local net 3. route is unreacheable This patch returns the appropriate return codes from the lower level function lnet_add_route(), and then ignores the above case from the calling function, lnet_parse_route(). This is needed so we don't halt processing routes in the module parameters. However, we can now add routes dynamically, and it should be returned to the user whether adding the requested route succeeded or failed. In userspace it is determined whether to continue adding routes or to halt processing. Currently "lnetctl import < config" continues adding the rest of the configuration and reports at the end which operations passed and which ones failed. Signed-off-by: Amir Shehata <amir.shehata@intel.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6045 Reviewed-on: http://review.whamcloud.com/13116 Reviewed-by: James Simmons <uja.ornl@gmail.com> Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com> Reviewed-by: Isaac Huang <he.huang@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lnet/selftest/framework.c')
0 files changed, 0 insertions, 0 deletions