aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_ctx.c
diff options
context:
space:
mode:
authorAnirban Chakraborty <anirban.chakraborty@qlogic.com>2010-06-16 05:07:27 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-16 17:45:51 -0400
commit0e33c6649eea99f03d6b444d93fe67d856f1b10d (patch)
tree91343e3b02d66ad62f9e469ceaee60642c4656b1 /drivers/net/qlcnic/qlcnic_ctx.c
parent8c76368174ed2359739f1b7b8a9c042b1ef839c4 (diff)
qlcnic: Fix a bug in setting up NIC partitioning mode
The driver was not detecting the presence of NIC partitioning capability of the firmware properly. Now, it checks the eswitch set bit in the FW capabilities register and accordingly sets the driver mode as NPAR capable or not. Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_ctx.c')
-rw-r--r--drivers/net/qlcnic/qlcnic_ctx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic_ctx.c b/drivers/net/qlcnic/qlcnic_ctx.c
index 1e1dc58cddc..42feb23dec1 100644
--- a/drivers/net/qlcnic/qlcnic_ctx.c
+++ b/drivers/net/qlcnic/qlcnic_ctx.c
@@ -637,6 +637,11 @@ int qlcnic_get_nic_info(struct qlcnic_adapter *adapter, u8 func_id)
637 adapter->capabilities = le32_to_cpu(nic_info->capabilities); 637 adapter->capabilities = le32_to_cpu(nic_info->capabilities);
638 adapter->max_mac_filters = nic_info->max_mac_filters; 638 adapter->max_mac_filters = nic_info->max_mac_filters;
639 639
640 if (adapter->capabilities & BIT_6)
641 adapter->flags |= QLCNIC_ESWITCH_ENABLED;
642 else
643 adapter->flags &= ~QLCNIC_ESWITCH_ENABLED;
644
640 dev_info(&adapter->pdev->dev, 645 dev_info(&adapter->pdev->dev,
641 "phy port: %d switch_mode: %d,\n" 646 "phy port: %d switch_mode: %d,\n"
642 "\tmax_tx_q: %d max_rx_q: %d min_tx_bw: 0x%x,\n" 647 "\tmax_tx_q: %d max_rx_q: %d min_tx_bw: 0x%x,\n"