src/dpdk/drivers/net/ixgbe/ixgbe_ethdev.c
static void
ixgbevf_negotiate_api(struct ixgbe_hw *hw)
{
	int32_t i;

	/* start with highest supported, proceed down */
	static const enum ixgbe_pfvf_api_rev sup_ver[] = {
		ixgbe_mbox_api_13,
		ixgbe_mbox_api_12,
		ixgbe_mbox_api_11,
		ixgbe_mbox_api_10,
	};

	for (i = 0;
			i != RTE_DIM(sup_ver) &&
			ixgbevf_negotiate_api_version(hw, sup_ver[i]) != 0;
			i++)
		;
}
/*
 * Negotiate mailbox API version with the PF.
 * After reset API version is always set to the basic one (ixgbe_mbox_api_10).
 * Then we try to negotiate starting with the most recent one.
 * If all negotiation attempts fail, then we will proceed with
 * the default one (ixgbe_mbox_api_10).
 */
Negotiate mailbox API version with the PF.
After reset API version is always set to the basic one (ixgbe_mbox_api_10).
Then we try to negotiate starting with the most recent one.
If all negotiation attempts fail, then we will proceed with
the default one (ixgbe_mbox_api_10).
Negotiate mailbox API version with the PF . After reset API version is always set to the basic one ( ixgbe_mbox_api_10 ) . Then we try to negotiate starting with the most recent one . If all negotiation attempts fail then we will proceed with the default one ( ixgbe_mbox_api_10 ) .
static void
ixgbevf_negotiate_api(struct ixgbe_hw *hw)
{
	int32_t i;
	static const enum ixgbe_pfvf_api_rev sup_ver[] = {
		ixgbe_mbox_api_13,
		ixgbe_mbox_api_12,
		ixgbe_mbox_api_11,
		ixgbe_mbox_api_10,
	};
	for (i = 0;
			i != RTE_DIM(sup_ver) &&
			ixgbevf_negotiate_api_version(hw, sup_ver[i]) != 0;
			i++)
		;
}
static void ixgbevf_negotiate_api ( struct ixgbe_hw * hw ) { int32_t i ; static const enum ixgbe_pfvf_api_rev sup_ver [ ] = { ixgbe_mbox_api_13 , ixgbe_mbox_api_12 , ixgbe_mbox_api_11 , ixgbe_mbox_api_10 , } ; for ( i = 0 ; i != RTE_DIM ( sup_ver ) && ixgbevf_negotiate_api_version ( hw , sup_ver [ i ] ) != 0 ; i ++ ) ; }
Negotiate mailbox API version with the PF.
Negotiate mailbox API version with the PF .
/* start with highest supported, proceed down */