MCPcopy Create free account
hub / github.com/F-Stack/f-stack / txgbe_check_for_msg_pf

Function txgbe_check_for_msg_pf

dpdk/drivers/net/txgbe/base/txgbe_mbx.c:470–483  ·  view source on GitHub ↗

* txgbe_check_for_msg_pf - checks to see if the VF has sent mail * @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 **/

Source from the content-addressed store, hash-verified

468 * returns 0 if the VF has set the Status bit or else ERR_MBX
469 **/
470s32 txgbe_check_for_msg_pf(struct txgbe_hw *hw, u16 vf_number)
471{
472 s32 ret_val = TXGBE_ERR_MBX;
473 s32 index = TXGBE_MBVFICR_INDEX(vf_number);
474 u32 vf_bit = vf_number % 16;
475
476 if (!txgbe_check_for_bit_pf(hw, TXGBE_MBVFICR_VFREQ_VF1 << vf_bit,
477 index)) {
478 ret_val = 0;
479 hw->mbx.stats.reqs++;
480 }
481
482 return ret_val;
483}
484
485/**
486 * txgbe_check_for_ack_pf - checks to see if the VF has ACKed

Callers 1

txgbe_write_mbx_pfFunction · 0.85

Calls 1

txgbe_check_for_bit_pfFunction · 0.85

Tested by

no test coverage detected