diff options
Diffstat (limited to 'drivers/net/e1000e/lib.c')
-rw-r--r-- | drivers/net/e1000e/lib.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/drivers/net/e1000e/lib.c b/drivers/net/e1000e/lib.c index f690a1055b41..e3976ea668d0 100644 --- a/drivers/net/e1000e/lib.c +++ b/drivers/net/e1000e/lib.c | |||
@@ -82,7 +82,24 @@ s32 e1000e_get_bus_info_pcie(struct e1000_hw *hw) | |||
82 | } | 82 | } |
83 | 83 | ||
84 | /** | 84 | /** |
85 | * e1000e_write_vfta - Write value to VLAN filter table | 85 | * e1000_clear_vfta_generic - Clear VLAN filter table |
86 | * @hw: pointer to the HW structure | ||
87 | * | ||
88 | * Clears the register array which contains the VLAN filter table by | ||
89 | * setting all the values to 0. | ||
90 | **/ | ||
91 | void e1000_clear_vfta_generic(struct e1000_hw *hw) | ||
92 | { | ||
93 | u32 offset; | ||
94 | |||
95 | for (offset = 0; offset < E1000_VLAN_FILTER_TBL_SIZE; offset++) { | ||
96 | E1000_WRITE_REG_ARRAY(hw, E1000_VFTA, offset, 0); | ||
97 | e1e_flush(); | ||
98 | } | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * e1000_write_vfta_generic - Write value to VLAN filter table | ||
86 | * @hw: pointer to the HW structure | 103 | * @hw: pointer to the HW structure |
87 | * @offset: register offset in VLAN filter table | 104 | * @offset: register offset in VLAN filter table |
88 | * @value: register value written to VLAN filter table | 105 | * @value: register value written to VLAN filter table |
@@ -90,7 +107,7 @@ s32 e1000e_get_bus_info_pcie(struct e1000_hw *hw) | |||
90 | * Writes value at the given offset in the register array which stores | 107 | * Writes value at the given offset in the register array which stores |
91 | * the VLAN filter table. | 108 | * the VLAN filter table. |
92 | **/ | 109 | **/ |
93 | void e1000e_write_vfta(struct e1000_hw *hw, u32 offset, u32 value) | 110 | void e1000_write_vfta_generic(struct e1000_hw *hw, u32 offset, u32 value) |
94 | { | 111 | { |
95 | E1000_WRITE_REG_ARRAY(hw, E1000_VFTA, offset, value); | 112 | E1000_WRITE_REG_ARRAY(hw, E1000_VFTA, offset, value); |
96 | e1e_flush(); | 113 | e1e_flush(); |