src/dpdk/drivers/net/ixgbe/base/ixgbe_x550.c
void ixgbe_set_ethertype_anti_spoofing_X550(struct ixgbe_hw *hw,
		bool enable, int vf)
{
	int vf_target_reg = vf >> 3;
	int vf_target_shift = vf % 8 + IXGBE_SPOOF_ETHERTYPEAS_SHIFT;
	u32 pfvfspoof;

	DEBUGFUNC("ixgbe_set_ethertype_anti_spoofing_X550");

	pfvfspoof = IXGBE_READ_REG(hw, IXGBE_PFVFSPOOF(vf_target_reg));
	if (enable)
		pfvfspoof |= (1 << vf_target_shift);
	else
		pfvfspoof &= ~(1 << vf_target_shift);

	IXGBE_WRITE_REG(hw, IXGBE_PFVFSPOOF(vf_target_reg), pfvfspoof);
}
/**
 * ixgbe_set_ethertype_anti_spoofing_X550 - Configure Ethertype anti-spoofing
 * @hw: pointer to hardware structure
 * @enable: enable or disable switch for Ethertype anti-spoofing
 * @vf: Virtual Function pool - VF Pool to set for Ethertype anti-spoofing
 *
 **/
Configure Ethertype anti-spoofing
@hw: pointer to hardware structure
@enable: enable or disable switch for Ethertype anti-spoofing
@vf: Virtual Function pool - VF Pool to set for Ethertype anti-spoofing
Configure Ethertype anti - spoofing @hw : pointer to hardware structure @enable : enable or disable switch for Ethertype anti - spoofing @vf : Virtual Function pool - VF Pool to set for Ethertype anti - spoofing
void ixgbe_set_ethertype_anti_spoofing_X550(struct ixgbe_hw *hw,
		bool enable, int vf)
{
	int vf_target_reg = vf >> 3;
	int vf_target_shift = vf % 8 + IXGBE_SPOOF_ETHERTYPEAS_SHIFT;
	u32 pfvfspoof;
	DEBUGFUNC("ixgbe_set_ethertype_anti_spoofing_X550");
	pfvfspoof = IXGBE_READ_REG(hw, IXGBE_PFVFSPOOF(vf_target_reg));
	if (enable)
		pfvfspoof |= (1 << vf_target_shift);
	else
		pfvfspoof &= ~(1 << vf_target_shift);
	IXGBE_WRITE_REG(hw, IXGBE_PFVFSPOOF(vf_target_reg), pfvfspoof);
}
void ixgbe_set_ethertype_anti_spoofing_X550 ( struct ixgbe_hw * hw , bool enable , int vf ) { int vf_target_reg = vf >> 3 ; int vf_target_shift = vf % 8 + IXGBE_SPOOF_ETHERTYPEAS_SHIFT ; u32 pfvfspoof ; DEBUGFUNC ( " " ) ; pfvfspoof = IXGBE_READ_REG ( hw , IXGBE_PFVFSPOOF ( vf_target_reg ) ) ; if ( enable ) pfvfspoof |= ( 1 << vf_target_shift ) ; else pfvfspoof &= ~ ( 1 << vf_target_shift ) ; IXGBE_WRITE_REG ( hw , IXGBE_PFVFSPOOF ( vf_target_reg ) , pfvfspoof ) ; }
ixgbe_set_ethertype_anti_spoofing_X550 - Configure Ethertype anti-spoofing
 @hw: pointer to hardware structure
 @enable: enable or disable switch for Ethertype anti-spoofing
 @vf: Virtual Function pool - VF Pool to set for Ethertype anti-spoofing
ixgbe_set_ethertype_anti_spoofing_X550 - Configure Ethertype anti - spoofing @hw : pointer to hardware structure @enable : enable or disable switch for Ethertype anti - spoofing @vf : Virtual Function pool - VF Pool to set for Ethertype anti - spoofing