src/dpdk/drivers/net/txgbe/base/txgbe_hw.c
s32 txgbe_enable_rx_dma_raptor(struct txgbe_hw *hw, u32 regval)
{
	DEBUGFUNC("txgbe_enable_rx_dma_raptor");

	/*
	 * Workaround 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.disable_sec_rx_path(hw);

	if (regval & TXGBE_PBRXCTL_ENA)
		txgbe_enable_rx(hw);
	else
		txgbe_disable_rx(hw);

	hw->mac.enable_sec_rx_path(hw);

	return 0;
}
/**
 *  txgbe_enable_rx_dma_raptor - Enable the Rx DMA unit
 *  @hw: pointer to hardware structure
 *  @regval: register value to write to RXCTRL
 *
 *  Enables the Rx DMA unit
 **/
Enable the Rx DMA unit
@hw: pointer to hardware structure
@regval: register value to write to RXCTRL

Enables the Rx DMA unit
Enable the Rx DMA unit @hw : pointer to hardware structure @regval : register value to write to RXCTRL Enables the Rx DMA unit
s32 txgbe_enable_rx_dma_raptor(struct txgbe_hw *hw, u32 regval)
{
	DEBUGFUNC("txgbe_enable_rx_dma_raptor");
	hw->mac.disable_sec_rx_path(hw);
	if (regval & TXGBE_PBRXCTL_ENA)
		txgbe_enable_rx(hw);
	else
		txgbe_disable_rx(hw);
	hw->mac.enable_sec_rx_path(hw);
	return 0;
}
s32 txgbe_enable_rx_dma_raptor ( struct txgbe_hw * hw , u32 regval ) { DEBUGFUNC ( " " ) ; hw -> mac . disable_sec_rx_path ( hw ) ; if ( regval & TXGBE_PBRXCTL_ENA ) txgbe_enable_rx ( hw ) ; else txgbe_disable_rx ( hw ) ; hw -> mac . enable_sec_rx_path ( hw ) ; return 0 ; }
txgbe_enable_rx_dma_raptor - Enable the Rx DMA unit
  @hw: pointer to hardware structure
  @regval: register value to write to RXCTRL
txgbe_enable_rx_dma_raptor - Enable the Rx DMA unit @hw : pointer to hardware structure @regval : register value to write to RXCTRL
/*
	 * Workaround 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.
	 */