src/dpdk/drivers/net/txgbe/base/txgbe_hw.c
s32 txgbe_clear_vfta(struct txgbe_hw *hw)
{
	u32 offset;

	DEBUGFUNC("txgbe_clear_vfta");

	for (offset = 0; offset < hw->mac.vft_size; offset++)
		wr32(hw, TXGBE_VLANTBL(offset), 0);

	for (offset = 0; offset < TXGBE_NUM_POOL; offset++) {
		wr32(hw, TXGBE_PSRVLANIDX, offset);
		wr32(hw, TXGBE_PSRVLAN, 0);
		wr32(hw, TXGBE_PSRVLANPLM(0), 0);
		wr32(hw, TXGBE_PSRVLANPLM(1), 0);
	}

	return 0;
}
/**
 *  txgbe_clear_vfta - Clear VLAN filter table
 *  @hw: pointer to hardware structure
 *
 *  Clears the VLAN filer table, and the VMDq index associated with the filter
 **/
Clear VLAN filter table
@hw: pointer to hardware structure

Clears the VLAN filer table, and the VMDq index associated with the filter
Clear VLAN filter table @hw : pointer to hardware structure Clears the VLAN filer table and the VMDq index associated with the filter
s32 txgbe_clear_vfta(struct txgbe_hw *hw)
{
	u32 offset;
	DEBUGFUNC("txgbe_clear_vfta");
	for (offset = 0; offset < hw->mac.vft_size; offset++)
		wr32(hw, TXGBE_VLANTBL(offset), 0);
	for (offset = 0; offset < TXGBE_NUM_POOL; offset++) {
		wr32(hw, TXGBE_PSRVLANIDX, offset);
		wr32(hw, TXGBE_PSRVLAN, 0);
		wr32(hw, TXGBE_PSRVLANPLM(0), 0);
		wr32(hw, TXGBE_PSRVLANPLM(1), 0);
	}
	return 0;
}
s32 txgbe_clear_vfta ( struct txgbe_hw * hw ) { u32 offset ; DEBUGFUNC ( " " ) ; for ( offset = 0 ; offset < hw -> mac . vft_size ; offset ++ ) wr32 ( hw , TXGBE_VLANTBL ( offset ) , 0 ) ; for ( offset = 0 ; offset < TXGBE_NUM_POOL ; offset ++ ) { wr32 ( hw , TXGBE_PSRVLANIDX , offset ) ; wr32 ( hw , TXGBE_PSRVLAN , 0 ) ; wr32 ( hw , TXGBE_PSRVLANPLM ( 0 ) , 0 ) ; wr32 ( hw , TXGBE_PSRVLANPLM ( 1 ) , 0 ) ; } return 0 ; }
txgbe_clear_vfta - Clear VLAN filter table
  @hw: pointer to hardware structure
txgbe_clear_vfta - Clear VLAN filter table @hw : pointer to hardware structure