diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2009-12-01 10:46:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-02 03:35:51 -0500 |
commit | caaddaf83501c79fe11b183c8972e60d8b7d5d56 (patch) | |
tree | 5ddaf752e1a4622e969dea9d3e8ec76ac655f767 /drivers/net/e1000e/es2lan.c | |
parent | ff9c38bba37937adb909cceb2a6521f2e92e17c6 (diff) |
e1000e: provide family-specific functions to manage VLAN filter arrays
The two MAC-families that have VLAN filter table register arrays manage
each a bit differently from one another, so provide family-specific
functions for managing the register arrays and function pointers to access
the appropriate function. Also make sure attempts to access these
register arrays are not done on parts not supporting that feature.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000e/es2lan.c')
-rw-r--r-- | drivers/net/e1000e/es2lan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/e1000e/es2lan.c b/drivers/net/e1000e/es2lan.c index e50579859e06..3ff932f02f29 100644 --- a/drivers/net/e1000e/es2lan.c +++ b/drivers/net/e1000e/es2lan.c | |||
@@ -807,7 +807,7 @@ static s32 e1000_init_hw_80003es2lan(struct e1000_hw *hw) | |||
807 | 807 | ||
808 | /* Disabling VLAN filtering */ | 808 | /* Disabling VLAN filtering */ |
809 | e_dbg("Initializing the IEEE VLAN\n"); | 809 | e_dbg("Initializing the IEEE VLAN\n"); |
810 | e1000e_clear_vfta(hw); | 810 | mac->ops.clear_vfta(hw); |
811 | 811 | ||
812 | /* Setup the receive address. */ | 812 | /* Setup the receive address. */ |
813 | e1000e_init_rx_addrs(hw, mac->rar_entry_count); | 813 | e1000e_init_rx_addrs(hw, mac->rar_entry_count); |
@@ -1350,6 +1350,8 @@ static struct e1000_mac_operations es2_mac_ops = { | |||
1350 | .led_on = e1000e_led_on_generic, | 1350 | .led_on = e1000e_led_on_generic, |
1351 | .led_off = e1000e_led_off_generic, | 1351 | .led_off = e1000e_led_off_generic, |
1352 | .update_mc_addr_list = e1000e_update_mc_addr_list_generic, | 1352 | .update_mc_addr_list = e1000e_update_mc_addr_list_generic, |
1353 | .write_vfta = e1000_write_vfta_generic, | ||
1354 | .clear_vfta = e1000_clear_vfta_generic, | ||
1353 | .reset_hw = e1000_reset_hw_80003es2lan, | 1355 | .reset_hw = e1000_reset_hw_80003es2lan, |
1354 | .init_hw = e1000_init_hw_80003es2lan, | 1356 | .init_hw = e1000_init_hw_80003es2lan, |
1355 | .setup_link = e1000e_setup_link, | 1357 | .setup_link = e1000e_setup_link, |