src/dpdk/drivers/net/ixgbe/base/ixgbe_x550.c
void ixgbe_set_source_address_pruning_X550(struct ixgbe_hw *hw, bool enable,
					   unsigned int pool)
{
	u64 pfflp;

	/* max rx pool is 63 */
	if (pool > 63)
		return;

	pfflp = (u64)IXGBE_READ_REG(hw, IXGBE_PFFLPL);
	pfflp |= (u64)IXGBE_READ_REG(hw, IXGBE_PFFLPH) << 32;

	if (enable)
		pfflp |= (1ULL << pool);
	else
		pfflp &= ~(1ULL << pool);

	IXGBE_WRITE_REG(hw, IXGBE_PFFLPL, (u32)pfflp);
	IXGBE_WRITE_REG(hw, IXGBE_PFFLPH, (u32)(pfflp >> 32));
}
/**
 * ixgbe_set_source_address_pruning_X550 - Enable/Disbale source address pruning
 * @hw: pointer to hardware structure
 * @enable: enable or disable source address pruning
 * @pool: Rx pool to set source address pruning for
 **/
Enable/Disbale source address pruning
@hw: pointer to hardware structure
@enable: enable or disable source address pruning
@pool: Rx pool to set source address pruning for
Enable / Disbale source address pruning @hw : pointer to hardware structure @enable : enable or disable source address pruning @pool : Rx pool to set source address pruning for
void ixgbe_set_source_address_pruning_X550(struct ixgbe_hw *hw, bool enable,
					   unsigned int pool)
{
	u64 pfflp;
	if (pool > 63)
		return;
	pfflp = (u64)IXGBE_READ_REG(hw, IXGBE_PFFLPL);
	pfflp |= (u64)IXGBE_READ_REG(hw, IXGBE_PFFLPH) << 32;
	if (enable)
		pfflp |= (1ULL << pool);
	else
		pfflp &= ~(1ULL << pool);
	IXGBE_WRITE_REG(hw, IXGBE_PFFLPL, (u32)pfflp);
	IXGBE_WRITE_REG(hw, IXGBE_PFFLPH, (u32)(pfflp >> 32));
}
void ixgbe_set_source_address_pruning_X550 ( struct ixgbe_hw * hw , bool enable , unsigned int pool ) { u64 pfflp ; if ( pool > 63 ) return ; pfflp = ( u64 ) IXGBE_READ_REG ( hw , IXGBE_PFFLPL ) ; pfflp |= ( u64 ) IXGBE_READ_REG ( hw , IXGBE_PFFLPH ) << 32 ; if ( enable ) pfflp |= ( 1ULL << pool ) ; else pfflp &= ~ ( 1ULL << pool ) ; IXGBE_WRITE_REG ( hw , IXGBE_PFFLPL , ( u32 ) pfflp ) ; IXGBE_WRITE_REG ( hw , IXGBE_PFFLPH , ( u32 ) ( pfflp >> 32 ) ) ; }
ixgbe_set_source_address_pruning_X550 - Enable/Disbale source address pruning
 @hw: pointer to hardware structure
 @enable: enable or disable source address pruning
 @pool: Rx pool to set source address pruning for
ixgbe_set_source_address_pruning_X550 - Enable / Disbale source address pruning @hw : pointer to hardware structure @enable : enable or disable source address pruning @pool : Rx pool to set source address pruning for
/* max rx pool is 63 */