diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2008-07-21 19:44:01 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-07-22 17:51:12 -0400 |
commit | 623621b07ebc5b72e0bdfa4a50bbb28f4587de0c (patch) | |
tree | a6e472bfa084e79f912ca1b6dcc06dd61332669f /drivers/net/netxen/netxen_nic_niu.c | |
parent | 7830b22cbc5f5e804469b74a3fe0d3a8ed88ca31 (diff) | |
download | op-kernel-dev-623621b07ebc5b72e0bdfa4a50bbb28f4587de0c.zip op-kernel-dev-623621b07ebc5b72e0bdfa4a50bbb28f4587de0c.tar.gz |
netxen: hw multicast filtering
Enable multicast address filtering capabilities in the hardware.
Upto 16 multicast addresses can be programmed for each physical
port. Support "allmulti" mode, if enabled.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_niu.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_niu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic_niu.c b/drivers/net/netxen/netxen_nic_niu.c index a3bc7cc..d9664a0 100644 --- a/drivers/net/netxen/netxen_nic_niu.c +++ b/drivers/net/netxen/netxen_nic_niu.c @@ -909,6 +909,11 @@ int netxen_niu_xg_set_promiscuous_mode(struct netxen_adapter *adapter, else reg = (reg & ~0x2000UL); + if (mode == NETXEN_NIU_ALLMULTI_MODE) + reg = (reg | 0x1000UL); + else + reg = (reg & ~0x1000UL); + netxen_crb_writelit_adapter(adapter, NETXEN_NIU_XGE_CONFIG_1 + (0x10000 * port), reg); |