src/dpdk/drivers/net/txgbe/base/txgbe_hw.c
s32 txgbe_start_hw_gen2(struct txgbe_hw *hw)
{
	u32 i;

	/* Clear the rate limiters */
	for (i = 0; i < hw->mac.max_tx_queues; i++) {
		wr32(hw, TXGBE_ARBPOOLIDX, i);
		wr32(hw, TXGBE_ARBTXRATE, 0);
	}
	txgbe_flush(hw);

	/* We need to run link autotry after the driver loads */
	hw->mac.autotry_restart = true;

	return 0;
}
/**
 *  txgbe_start_hw_gen2 - Init sequence for common device family
 *  @hw: pointer to hw structure
 *
 * Performs the init sequence common to the second generation
 * of 10 GbE devices.
 **/
Init sequence for common device family
@hw: pointer to hw structure

Performs the init sequence common to the second generation
of 10 GbE devices.
Init sequence for common device family @hw : pointer to hw structure Performs the init sequence common to the second generation of 10 GbE devices .
s32 txgbe_start_hw_gen2(struct txgbe_hw *hw)
{
	u32 i;
	for (i = 0; i < hw->mac.max_tx_queues; i++) {
		wr32(hw, TXGBE_ARBPOOLIDX, i);
		wr32(hw, TXGBE_ARBTXRATE, 0);
	}
	txgbe_flush(hw);
	hw->mac.autotry_restart = true;
	return 0;
}
s32 txgbe_start_hw_gen2 ( struct txgbe_hw * hw ) { u32 i ; for ( i = 0 ; i < hw -> mac . max_tx_queues ; i ++ ) { wr32 ( hw , TXGBE_ARBPOOLIDX , i ) ; wr32 ( hw , TXGBE_ARBTXRATE , 0 ) ; } txgbe_flush ( hw ) ; hw -> mac . autotry_restart = true ; return 0 ; }
txgbe_start_hw_gen2 - Init sequence for common device family
  @hw: pointer to hw structure
txgbe_start_hw_gen2 - Init sequence for common device family @hw : pointer to hw structure
/* Clear the rate limiters */ /* We need to run link autotry after the driver loads */