src/dpdk/drivers/net/txgbe/base/txgbe_hw.c
void txgbe_set_mac_anti_spoofing(struct txgbe_hw *hw, bool enable, int vf)
{
	int vf_target_reg = vf >> 3;
	int vf_target_shift = vf % 8;
	u32 pfvfspoof;

	pfvfspoof = rd32(hw, TXGBE_POOLTXASMAC(vf_target_reg));
	if (enable)
		pfvfspoof |= (1 << vf_target_shift);
	else
		pfvfspoof &= ~(1 << vf_target_shift);
	wr32(hw, TXGBE_POOLTXASMAC(vf_target_reg), pfvfspoof);
}
/**
 *  txgbe_set_mac_anti_spoofing - Enable/Disable MAC anti-spoofing
 *  @hw: pointer to hardware structure
 *  @enable: enable or disable switch for MAC anti-spoofing
 *  @vf: Virtual Function pool - VF Pool to set for MAC anti-spoofing
 *
 **/
Enable/Disable MAC anti-spoofing
@hw: pointer to hardware structure
@enable: enable or disable switch for MAC anti-spoofing
@vf: Virtual Function pool - VF Pool to set for MAC anti-spoofing
Enable / Disable MAC anti - spoofing @hw : pointer to hardware structure @enable : enable or disable switch for MAC anti - spoofing @vf : Virtual Function pool - VF Pool to set for MAC anti - spoofing
void txgbe_set_mac_anti_spoofing(struct txgbe_hw *hw, bool enable, int vf)
{
	int vf_target_reg = vf >> 3;
	int vf_target_shift = vf % 8;
	u32 pfvfspoof;
	pfvfspoof = rd32(hw, TXGBE_POOLTXASMAC(vf_target_reg));
	if (enable)
		pfvfspoof |= (1 << vf_target_shift);
	else
		pfvfspoof &= ~(1 << vf_target_shift);
	wr32(hw, TXGBE_POOLTXASMAC(vf_target_reg), pfvfspoof);
}
void txgbe_set_mac_anti_spoofing ( struct txgbe_hw * hw , bool enable , int vf ) { int vf_target_reg = vf >> 3 ; int vf_target_shift = vf % 8 ; u32 pfvfspoof ; pfvfspoof = rd32 ( hw , TXGBE_POOLTXASMAC ( vf_target_reg ) ) ; if ( enable ) pfvfspoof |= ( 1 << vf_target_shift ) ; else pfvfspoof &= ~ ( 1 << vf_target_shift ) ; wr32 ( hw , TXGBE_POOLTXASMAC ( vf_target_reg ) , pfvfspoof ) ; }
txgbe_set_mac_anti_spoofing - Enable/Disable MAC anti-spoofing
  @hw: pointer to hardware structure
  @enable: enable or disable switch for MAC anti-spoofing
  @vf: Virtual Function pool - VF Pool to set for MAC anti-spoofing
txgbe_set_mac_anti_spoofing - Enable / Disable MAC anti - spoofing @hw : pointer to hardware structure @enable : enable or disable switch for MAC anti - spoofing @vf : Virtual Function pool - VF Pool to set for MAC anti - spoofing