[IPOIB] fixing bugs in previous commit. (mlnx 5205)