diff options
author | Rajesh Borundia <rajesh.borundia@qlogic.com> | 2010-10-07 19:46:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-08 16:59:10 -0400 |
commit | ee07c1a70117fe93cf71686d481791c2498f80d2 (patch) | |
tree | f275d7b88a23a48257b0941ca69b9809a16cc9b7 /drivers/net/qlcnic/qlcnic_hw.c | |
parent | 6336acd5522b150e7695cb3b42221999b352baa5 (diff) |
qlcnic: fix promiscous mode for VF
o Allow promiscous mode setting for VF's depending upon the configuration.
Signed-off-by: Rajesh Borundia <rajesh.borundia@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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic_hw.c b/drivers/net/qlcnic/qlcnic_hw.c index 7f1f9b4ca0ff..53e805316f4a 100644 --- a/drivers/net/qlcnic/qlcnic_hw.c +++ b/drivers/net/qlcnic/qlcnic_hw.c | |||
@@ -442,7 +442,8 @@ void qlcnic_set_multi(struct net_device *netdev) | |||
442 | qlcnic_nic_add_mac(adapter, bcast_addr); | 442 | qlcnic_nic_add_mac(adapter, bcast_addr); |
443 | 443 | ||
444 | if (netdev->flags & IFF_PROMISC) { | 444 | if (netdev->flags & IFF_PROMISC) { |
445 | mode = VPORT_MISS_MODE_ACCEPT_ALL; | 445 | if (!(adapter->flags & QLCNIC_PROMISC_DISABLED)) |
446 | mode = VPORT_MISS_MODE_ACCEPT_ALL; | ||
446 | goto send_fw_cmd; | 447 | goto send_fw_cmd; |
447 | } | 448 | } |
448 | 449 | ||