diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2008-08-01 10:14:59 (GMT) |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-08-07 06:11:10 (GMT) |
commit | 9ad27643f3a054dff9211bb9938f2323907c2ffe (patch) | |
tree | c1603233131cd7183e959c48357f6ade905714f1 /drivers/net/netxen/netxen_nic_init.c | |
parent | 83821a078a1617e120d76954f455204cec78fe9d (diff) | |
download | linux-fsl-qoriq-9ad27643f3a054dff9211bb9938f2323907c2ffe.tar.xz |
netxen: fix promisc mode, mtu setting
For NX3031, multicast filtering, promisc mode, and max frame size
setting is handled by firmware, driver needs to send request to
enable/disable it.
For old chip revisions / firmware, driver still sets it directly.
Added function pointer to set mtu according to chip revision.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_init.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c index 01ab31b3..519fc86 100644 --- a/drivers/net/netxen/netxen_nic_init.c +++ b/drivers/net/netxen/netxen_nic_init.c @@ -364,6 +364,11 @@ void netxen_initialize_adapter_ops(struct netxen_adapter *adapter) default: break; } + + if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { + adapter->set_mtu = nx_fw_cmd_set_mtu; + adapter->set_promisc = netxen_p3_nic_set_promisc; + } } /* |