Print this page
3014 Intel X540 Support (fix lint)
@@ -427,12 +427,16 @@
ret_val = ixgbe_obtain_mbx_lock_vf(hw);
if (ret_val)
goto out_no_write;
/* flush msg and acks as we are overwriting the message buffer */
- ixgbe_check_for_msg_vf(hw, 0);
- ixgbe_check_for_ack_vf(hw, 0);
+ ret_val = ixgbe_check_for_msg_vf(hw, 0);
+ if (ret_val)
+ goto out_no_write;
+ ret_val = ixgbe_check_for_ack_vf(hw, 0);
+ if (ret_val)
+ goto out_no_write;
/* copy the caller specified message to the mailbox memory buffer */
for (i = 0; i < size; i++)
IXGBE_WRITE_REG_ARRAY(hw, IXGBE_VFMBMEM, i, msg[i]);
@@ -658,12 +662,16 @@
ret_val = ixgbe_obtain_mbx_lock_pf(hw, vf_number);
if (ret_val)
goto out_no_write;
/* flush msg and acks as we are overwriting the message buffer */
- ixgbe_check_for_msg_pf(hw, vf_number);
- ixgbe_check_for_ack_pf(hw, vf_number);
+ ret_val = ixgbe_check_for_msg_vf(hw, 0);
+ if (ret_val)
+ goto out_no_write;
+ ret_val = ixgbe_check_for_ack_vf(hw, 0);
+ if (ret_val)
+ goto out_no_write;
/* copy the caller specified message to the mailbox memory buffer */
for (i = 0; i < size; i++)
IXGBE_WRITE_REG_ARRAY(hw, IXGBE_PFMBMEM(vf_number), i, msg[i]);