Sasha asked that I re-submit the patches for perfquery in a slightly different format. This is the third of 3 patches.
This patch corrects the AllPortSelect error message that is generated by ibcheckerrors when used against switches that do not support that attribute. Signed-off-by: Michael Heinz --------- snip ------- diff --git a/infiniband-diags/scripts/ibcheckerrs.in b/infiniband-diags/scripts/ibcheckerrs.in index 305379a..15bfd4a 100644 --- a/infiniband-diags/scripts/ibcheckerrs.in +++ b/infiniband-diags/scripts/ibcheckerrs.in @@ -155,6 +155,14 @@ nodename=`$IBPATH/smpquery $ca_info nodedesc $lid | sed -e "s/^Node Description: text="`eval $IBPATH/perfquery $ca_info $lid $portnum`" rv=$? +if echo $text | grep -q 'AllPortSelect not supported'; then + if [ "$verbose" = "yes" ]; then + echo -n "Error check on lid $lid ($nodename) port $portname: " + green "AllPortSelect not supported" + fi + exit 0 +fi + if echo "$text" | awk -v mono=$bw -v brief=$brief -F '[.:]*' ' function blue(s) {
allportselect.patch
Description: allportselect.patch