src/dpdk/drivers/net/txgbe/base/txgbe_mbx.c
s32 txgbe_check_for_ack_pf(struct txgbe_hw *hw, u16 vf_number)
{
	s32 ret_val = TXGBE_ERR_MBX;
	s32 index = TXGBE_MBVFICR_INDEX(vf_number);
	u32 vf_bit = vf_number % 16;

	DEBUGFUNC("txgbe_check_for_ack_pf");

	if (!txgbe_check_for_bit_pf(hw, TXGBE_MBVFICR_VFACK_VF1 << vf_bit,
				    index)) {
		ret_val = 0;
		hw->mbx.stats.acks++;
	}

	return ret_val;
}
/**
 *  txgbe_check_for_ack_pf - checks to see if the VF has ACKed
 *  @hw: pointer to the HW structure
 *  @vf_number: the VF index
 *
 *  returns 0 if the VF has set the Status bit or else ERR_MBX
 **/
checks to see if the VF has ACKed
@hw: pointer to the HW structure
@vf_number: the VF index

returns 0 if the VF has set the Status bit or else ERR_MBX
checks to see if the VF has ACKed @hw : pointer to the HW structure @vf_number : the VF index returns 0 if the VF has set the Status bit or else ERR_MBX
s32 txgbe_check_for_ack_pf(struct txgbe_hw *hw, u16 vf_number)
{
	s32 ret_val = TXGBE_ERR_MBX;
	s32 index = TXGBE_MBVFICR_INDEX(vf_number);
	u32 vf_bit = vf_number % 16;
	DEBUGFUNC("txgbe_check_for_ack_pf");
	if (!txgbe_check_for_bit_pf(hw, TXGBE_MBVFICR_VFACK_VF1 << vf_bit,
				    index)) {
		ret_val = 0;
		hw->mbx.stats.acks++;
	}
	return ret_val;
}
s32 txgbe_check_for_ack_pf ( struct txgbe_hw * hw , u16 vf_number ) { s32 ret_val = TXGBE_ERR_MBX ; s32 index = TXGBE_MBVFICR_INDEX ( vf_number ) ; u32 vf_bit = vf_number % 16 ; DEBUGFUNC ( " " ) ; if ( ! txgbe_check_for_bit_pf ( hw , TXGBE_MBVFICR_VFACK_VF1 << vf_bit , index ) ) { ret_val = 0 ; hw -> mbx . stats . acks ++ ; } return ret_val ; }
txgbe_check_for_ack_pf - checks to see if the VF has ACKed
  @hw: pointer to the HW structure
  @vf_number: the VF index
txgbe_check_for_ack_pf - checks to see if the VF has ACKed @hw : pointer to the HW structure @vf_number : the VF index