diff options
author | Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> | 2011-07-14 03:16:52 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-14 08:49:44 -0700 |
commit | e5dcf6dcde26ffdbd237dda4956bc6d7115dfae6 (patch) | |
tree | f3ba42a0661b9eb7bbb005e43b801064ab51247d /drivers/net/qlcnic/qlcnic_hw.c | |
parent | a941fef81b48179ea64728034f3ed5cda2336987 (diff) | |
download | op-kernel-dev-e5dcf6dcde26ffdbd237dda4956bc6d7115dfae6.zip op-kernel-dev-e5dcf6dcde26ffdbd237dda4956bc6d7115dfae6.tar.gz |
qlcnic: enable mac-learning in promiscous mode.
MAC learning is required in bridge mode.
During bridge mode device will be put in promiscous mode.
Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_hw.c')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_hw.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic_hw.c b/drivers/net/qlcnic/qlcnic_hw.c index 0391a04..4055c21 100644 --- a/drivers/net/qlcnic/qlcnic_hw.c +++ b/drivers/net/qlcnic/qlcnic_hw.c @@ -446,6 +446,13 @@ void qlcnic_set_multi(struct net_device *netdev) } send_fw_cmd: + if (mode == VPORT_MISS_MODE_ACCEPT_ALL) { + qlcnic_alloc_lb_filters_mem(adapter); + adapter->mac_learn = 1; + } else { + adapter->mac_learn = 0; + } + qlcnic_nic_set_promisc(adapter, mode); } |