src/dpdk/drivers/net/ixgbe/base/ixgbe_82599.c
s32 ixgbe_init_fdir_perfect_82599(struct ixgbe_hw *hw, u32 fdirctrl,
			bool cloud_mode)
{
	UNREFERENCED_1PARAMETER(cloud_mode);
	DEBUGFUNC("ixgbe_init_fdir_perfect_82599");

	/*
	 * Continue setup of fdirctrl register bits:
	 *  Turn perfect match filtering on
	 *  Report hash in RSS field of Rx wb descriptor
	 *  Initialize the drop queue to queue 127
	 *  Move the flexible bytes to use the ethertype - shift 6 words
	 *  Set the maximum length per hash bucket to 0xA filters
	 *  Send interrupt when 64 (0x4 * 16) filters are left
	 */
	fdirctrl |= IXGBE_FDIRCTRL_PERFECT_MATCH |
		    IXGBE_FDIRCTRL_REPORT_STATUS |
		    (IXGBE_FDIR_DROP_QUEUE << IXGBE_FDIRCTRL_DROP_Q_SHIFT) |
		    (0x6 << IXGBE_FDIRCTRL_FLEX_SHIFT) |
		    (0xA << IXGBE_FDIRCTRL_MAX_LENGTH_SHIFT) |
		    (4 << IXGBE_FDIRCTRL_FULL_THRESH_SHIFT);

	if (cloud_mode)
		fdirctrl |=(IXGBE_FDIRCTRL_FILTERMODE_CLOUD <<
					IXGBE_FDIRCTRL_FILTERMODE_SHIFT);

	/* write hashes and fdirctrl register, poll for completion */
	ixgbe_fdir_enable_82599(hw, fdirctrl);

	return IXGBE_SUCCESS;
}
/**
 * ixgbe_init_fdir_perfect_82599 - Initialize Flow Director perfect filters
 * @hw: pointer to hardware structure
 * @fdirctrl: value to write to flow director control register, initially
 *	     contains just the value of the Rx packet buffer allocation
 * @cloud_mode: true - cloud mode, false - other mode
 **/
Initialize Flow Director perfect filters
@hw: pointer to hardware structure
@fdirctrl: value to write to flow director control register, initially
contains just the value of the Rx packet buffer allocation
@cloud_mode: true - cloud mode, false - other mode
Initialize Flow Director perfect filters @hw : pointer to hardware structure @fdirctrl : value to write to flow director control register initially contains just the value of the Rx packet buffer allocation @cloud_mode : true - cloud mode false - other mode
s32 ixgbe_init_fdir_perfect_82599(struct ixgbe_hw *hw, u32 fdirctrl,
			bool cloud_mode)
{
	UNREFERENCED_1PARAMETER(cloud_mode);
	DEBUGFUNC("ixgbe_init_fdir_perfect_82599");
	fdirctrl |= IXGBE_FDIRCTRL_PERFECT_MATCH |
		    IXGBE_FDIRCTRL_REPORT_STATUS |
		    (IXGBE_FDIR_DROP_QUEUE << IXGBE_FDIRCTRL_DROP_Q_SHIFT) |
		    (0x6 << IXGBE_FDIRCTRL_FLEX_SHIFT) |
		    (0xA << IXGBE_FDIRCTRL_MAX_LENGTH_SHIFT) |
		    (4 << IXGBE_FDIRCTRL_FULL_THRESH_SHIFT);
	if (cloud_mode)
		fdirctrl |=(IXGBE_FDIRCTRL_FILTERMODE_CLOUD <<
					IXGBE_FDIRCTRL_FILTERMODE_SHIFT);
	ixgbe_fdir_enable_82599(hw, fdirctrl);
	return IXGBE_SUCCESS;
}
s32 ixgbe_init_fdir_perfect_82599 ( struct ixgbe_hw * hw , u32 fdirctrl , bool cloud_mode ) { UNREFERENCED_1PARAMETER ( cloud_mode ) ; DEBUGFUNC ( " " ) ; fdirctrl |= IXGBE_FDIRCTRL_PERFECT_MATCH | IXGBE_FDIRCTRL_REPORT_STATUS | ( IXGBE_FDIR_DROP_QUEUE << IXGBE_FDIRCTRL_DROP_Q_SHIFT ) | ( 0x6 << IXGBE_FDIRCTRL_FLEX_SHIFT ) | ( 0xA << IXGBE_FDIRCTRL_MAX_LENGTH_SHIFT ) | ( 4 << IXGBE_FDIRCTRL_FULL_THRESH_SHIFT ) ; if ( cloud_mode ) fdirctrl |= ( IXGBE_FDIRCTRL_FILTERMODE_CLOUD << IXGBE_FDIRCTRL_FILTERMODE_SHIFT ) ; ixgbe_fdir_enable_82599 ( hw , fdirctrl ) ; return IXGBE_SUCCESS ; }
ixgbe_init_fdir_perfect_82599 - Initialize Flow Director perfect filters
 @hw: pointer to hardware structure
 @fdirctrl: value to write to flow director control register, initially
           contains just the value of the Rx packet buffer allocation
 @cloud_mode: true - cloud mode, false - other mode
ixgbe_init_fdir_perfect_82599 - Initialize Flow Director perfect filters @hw : pointer to hardware structure @fdirctrl : value to write to flow director control register initially contains just the value of the Rx packet buffer allocation @cloud_mode : true - cloud mode false - other mode
/*
	 * Continue setup of fdirctrl register bits:
	 *  Turn perfect match filtering on
	 *  Report hash in RSS field of Rx wb descriptor
	 *  Initialize the drop queue to queue 127
	 *  Move the flexible bytes to use the ethertype - shift 6 words
	 *  Set the maximum length per hash bucket to 0xA filters
	 *  Send interrupt when 64 (0x4 * 16) filters are left
	 */ /* write hashes and fdirctrl register, poll for completion */