For whatever reason the default library path for Ubuntu is
lib/${ARCHTYPE}-linux-gnu in smc-tools (which expands to lib/s390-linux-gnu), but
for other distributions it's /lib64, which translates to /lib in Ubuntu.
This changes the default patch on Ubuntu from lib/${ARCHTYPE}-linux-gnu
to (standard) /lib which is comparable to /lib64 on other distros.
On Ubuntu /lib holds by default 64-bit libraries.
RoCE v3 showed n/a hardware capabailities.
This patch shows the correct support now.
Refactored hex masks into constants for cleaner and consistent code.
If one does execute "smcr -d device" with a RoCE 3 attached the type
displayed is going to be 0x101e. This commit maps that to the human
readable name.
We were still trying to test the 'smc' command, which was converted into
'smcd' and 'smcr' a while ago. We change this to test 'smcd info' and
'smcd stats' instead for basic coverage. Note: Both of these commands are
effectively identical between 'smcd' and 'smcr', so testing either one is
good enough.
While at it, we also convert the 'which' calls to something more
standard-abiding.
Signed-off-by: Stefan Raspl <email address hidden>