for(offset = 0; offset < E1000_VLAN_FILTER_TBL_SIZE; offset++) E1000_WRITE_REG_ARRAY(hw, VFTA, offset, 0);
if (hw->mac_type == e1000_82573) { if (hw->mng_cookie.vlan_id != 0) {  vfta_offset = (hw->mng_cookie.vlan_id >> E1000_VFTA_ENTRY_SHIFT) & E1000_VFTA_ENTRY_MASK; vfta_bit_in_reg = 1 << (hw->mng_cookie.vlan_id & E1000_VFTA_ENTRY_BIT_SHIFT_MASK); } } for (offset = 0; offset < E1000_VLAN_FILTER_TBL_SIZE; offset++) {  vfta_value = (offset == vfta_offset) ? vfta_bit_in_reg : 0; E1000_WRITE_REG_ARRAY(hw, VFTA, offset, vfta_value); }
e1000_clear_vfta(struct e1000_hw *hw){    uint32_t offset;    for(offset = 0; offset < E1000_VLAN_FILTER_TBL_SIZE; offset++)        E1000_WRITE_REG_ARRAY(hw, VFTA, offset, 0);}