src/dpdk/drivers/net/ixgbe/base/ixgbe_82599.c
s32 ixgbe_enable_rx_dma_82599(struct ixgbe_hw *hw, u32 regval)
{

	DEBUGFUNC("ixgbe_enable_rx_dma_82599");

	/*
	 * Workaround for 82599 silicon errata when enabling the Rx datapath.
	 * If traffic is incoming before we enable the Rx unit, it could hang
	 * the Rx DMA unit.  Therefore, make sure the security engine is
	 * completely disabled prior to enabling the Rx unit.
	 */

	hw->mac.ops.disable_sec_rx_path(hw);

	if (regval & IXGBE_RXCTRL_RXEN)
		ixgbe_enable_rx(hw);
	else
		ixgbe_disable_rx(hw);

	hw->mac.ops.enable_sec_rx_path(hw);

	return IXGBE_SUCCESS;
}
/**
 * ixgbe_enable_rx_dma_82599 - Enable the Rx DMA unit on 82599
 * @hw: pointer to hardware structure
 * @regval: register value to write to RXCTRL
 *
 * Enables the Rx DMA unit for 82599
 **/
Enable the Rx DMA unit on 82599
@hw: pointer to hardware structure
@regval: register value to write to RXCTRL

Enables the Rx DMA unit for 82599
Enable the Rx DMA unit on 82599 @hw : pointer to hardware structure @regval : register value to write to RXCTRL Enables the Rx DMA unit for 82599
s32 ixgbe_enable_rx_dma_82599(struct ixgbe_hw *hw, u32 regval)
{
	DEBUGFUNC("ixgbe_enable_rx_dma_82599");
	hw->mac.ops.disable_sec_rx_path(hw);
	if (regval & IXGBE_RXCTRL_RXEN)
		ixgbe_enable_rx(hw);
	else
		ixgbe_disable_rx(hw);
	hw->mac.ops.enable_sec_rx_path(hw);
	return IXGBE_SUCCESS;
}
s32 ixgbe_enable_rx_dma_82599 ( struct ixgbe_hw * hw , u32 regval ) { DEBUGFUNC ( " " ) ; hw -> mac . ops . disable_sec_rx_path ( hw ) ; if ( regval & IXGBE_RXCTRL_RXEN ) ixgbe_enable_rx ( hw ) ; else ixgbe_disable_rx ( hw ) ; hw -> mac . ops . enable_sec_rx_path ( hw ) ; return IXGBE_SUCCESS ; }
ixgbe_enable_rx_dma_82599 - Enable the Rx DMA unit on 82599
 @hw: pointer to hardware structure
 @regval: register value to write to RXCTRL
ixgbe_enable_rx_dma_82599 - Enable the Rx DMA unit on 82599 @hw : pointer to hardware structure @regval : register value to write to RXCTRL
/*
	 * Workaround for 82599 silicon errata when enabling the Rx datapath.
	 * If traffic is incoming before we enable the Rx unit, it could hang
	 * the Rx DMA unit.  Therefore, make sure the security engine is
	 * completely disabled prior to enabling the Rx unit.
	 */