IB/ipath: Improve UD loopback performance by allocating temp array only once