IB/mlx4: Factor out setting other WQE segments