opensm: Add command line option for allow_both_pkeys
PATCH 3/5 opensm: Add command line option for allow_both_pkeys
--- man/opensm.8.in | 6 ++++++ opensm/main.c | 11 ++++++++++- 2 files changed, 16 insertions(+), 1 deletions(-)
man/opensm.8.in +6 -0
@@ -42,6 +42,7 @@ opensm \- InfiniBand subnet manager and administration (SM/SA) [\-L | \-\-log_limit <size in MB>] [\-e(rase_log_file)] [\-P(config) <partition config file> ] [\-N | \-\-no_part_enforce] +[\-W | \-\-allow_both_pkeys] [\-Q | \-\-qos [\-Y | \-\-qos_policy_file <file name>]] [\-y | \-\-stay_on_fatal] [\-B | \-\-daemon]
@@ -331,6 +332,11 @@ configuring QoS policy via this file. \fB\-N\fR, \fB\-\-no_part_enforce\fR This option disables partition enforcement on switch external ports. .TP +\fB\-W\fR, \fB\-\-allow_both_pkeys\fR +This option indicates whether both full and limited membership on the +same partition can be configured in the PKeyTable. Default is not +to allow both pkeys. +.TP \fB\-y\fR, \fB\-\-stay_on_fatal\fR This option will cause SM not to exit on fatal initialization issues: if SM discovers duplicated guids or a 12x link with
opensm/main.c +10 -1
@@ -308,6 +308,10 @@ static void show_usage(void) OSM_DEFAULT_PARTITION_CONFIG_FILE "\'.\n\n");printf ("--no_part_enforce, -N\n" " This option disables partition enforcement on switch external ports.\n\n" ); +printf ("--allow_both_pkeys, -W\n" +" This option indicates whether both full and limited membership\n" +" on the same partition can be configured in the PKeyTable.\n" +" Default is not to allow both pkeys.\n\n" );printf ("--qos, -Q\n" " This option enables QoS setup.\n\n" );printf ("--qos_policy_file, -Y <QoS-policy-file>\n" " This option defines the optional QoS policy file.\n"
@@ -554,7 +558,7 @@ int main(int argc, char *argv[])char *conf_template =NULL , *config_file =NULL ;uint32_t val;const char *const short_option = -"F:c:i:w:O:f:ed:D:g:l:L:s:t:a:u:m:X:R:zM:U:S:P:Y:ANBIQvVhoryxp:n:q:k:C:G:H:" ; +"F:c:i:w:O:f:ed:D:g:l:L:s:t:a:u:m:X:R:zM:U:S:P:Y:ANWBIQvVhoryxp:n:q:k:C:G:H:" ;/* In the array below, the 2nd parameter specifies the number
@@ -582,6 +586,7 @@ int main(int argc, char *argv[]) {"erase_log_file", 0, NULL, 'e'}, {"Pconfig", 1, NULL, 'P'}, {"no_part_enforce", 0, NULL, 'N'}, + {"allow_both_pkeys", 0, NULL, 'W'}, {"qos", 0, NULL, 'Q'}, {"qos_policy_file", 1, NULL, 'Y'}, {"maxsmps", 1, NULL, 'n'},
@@ -855,6 +860,10 @@ int main(int argc, char *argv[]) opt.no_partition_enforcement = TRUE;break ; +case 'W' : + opt.allow_both_pkeys = TRUE; +break ; +case 'Q' : opt.qos = TRUE;break ;
Signature · 6 lines
1.7.6.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html