IB/mad: Change SMI to use enums rather than magic return codes