diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-05-05 15:05:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-06 18:33:36 -0400 |
commit | 3d0a3cc9d72047e4baa76021c897f64fc84cc543 (patch) | |
tree | 121b07aa7e131380681659734d780042b9c776ca /drivers/net/netxen/netxen_nic_init.c | |
parent | 5cf4d323f8864dab818d500ec74f2fcb9ad5bf89 (diff) |
netxen: fix bonding support
o Pause traffic during mac addr change.
o Enable setting mac address for NX3031.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_init.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_init.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c index de9ebbd841b7..4a51c31330da 100644 --- a/drivers/net/netxen/netxen_nic_init.c +++ b/drivers/net/netxen/netxen_nic_init.c | |||
@@ -319,13 +319,15 @@ err_out: | |||
319 | 319 | ||
320 | void netxen_initialize_adapter_ops(struct netxen_adapter *adapter) | 320 | void netxen_initialize_adapter_ops(struct netxen_adapter *adapter) |
321 | { | 321 | { |
322 | adapter->macaddr_set = netxen_p2_nic_set_mac_addr; | ||
323 | adapter->set_multi = netxen_p2_nic_set_multi; | ||
324 | |||
322 | switch (adapter->ahw.port_type) { | 325 | switch (adapter->ahw.port_type) { |
323 | case NETXEN_NIC_GBE: | 326 | case NETXEN_NIC_GBE: |
324 | adapter->enable_phy_interrupts = | 327 | adapter->enable_phy_interrupts = |
325 | netxen_niu_gbe_enable_phy_interrupts; | 328 | netxen_niu_gbe_enable_phy_interrupts; |
326 | adapter->disable_phy_interrupts = | 329 | adapter->disable_phy_interrupts = |
327 | netxen_niu_gbe_disable_phy_interrupts; | 330 | netxen_niu_gbe_disable_phy_interrupts; |
328 | adapter->macaddr_set = netxen_niu_macaddr_set; | ||
329 | adapter->set_mtu = netxen_nic_set_mtu_gb; | 331 | adapter->set_mtu = netxen_nic_set_mtu_gb; |
330 | adapter->set_promisc = netxen_niu_set_promiscuous_mode; | 332 | adapter->set_promisc = netxen_niu_set_promiscuous_mode; |
331 | adapter->phy_read = netxen_niu_gbe_phy_read; | 333 | adapter->phy_read = netxen_niu_gbe_phy_read; |
@@ -339,7 +341,6 @@ void netxen_initialize_adapter_ops(struct netxen_adapter *adapter) | |||
339 | netxen_niu_xgbe_enable_phy_interrupts; | 341 | netxen_niu_xgbe_enable_phy_interrupts; |
340 | adapter->disable_phy_interrupts = | 342 | adapter->disable_phy_interrupts = |
341 | netxen_niu_xgbe_disable_phy_interrupts; | 343 | netxen_niu_xgbe_disable_phy_interrupts; |
342 | adapter->macaddr_set = netxen_niu_xg_macaddr_set; | ||
343 | adapter->set_mtu = netxen_nic_set_mtu_xgb; | 344 | adapter->set_mtu = netxen_nic_set_mtu_xgb; |
344 | adapter->init_port = netxen_niu_xg_init_port; | 345 | adapter->init_port = netxen_niu_xg_init_port; |
345 | adapter->set_promisc = netxen_niu_xg_set_promiscuous_mode; | 346 | adapter->set_promisc = netxen_niu_xg_set_promiscuous_mode; |
@@ -353,6 +354,8 @@ void netxen_initialize_adapter_ops(struct netxen_adapter *adapter) | |||
353 | if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { | 354 | if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { |
354 | adapter->set_mtu = nx_fw_cmd_set_mtu; | 355 | adapter->set_mtu = nx_fw_cmd_set_mtu; |
355 | adapter->set_promisc = netxen_p3_nic_set_promisc; | 356 | adapter->set_promisc = netxen_p3_nic_set_promisc; |
357 | adapter->macaddr_set = netxen_p3_nic_set_mac_addr; | ||
358 | adapter->set_multi = netxen_p3_nic_set_multi; | ||
356 | } | 359 | } |
357 | } | 360 | } |
358 | 361 | ||