diff options
author | Anirban Chakraborty <anirban.chakraborty@qlogic.com> | 2010-06-16 09:07:27 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-16 21:45:51 (GMT) |
commit | 0e33c6649eea99f03d6b444d93fe67d856f1b10d (patch) | |
tree | 91343e3b02d66ad62f9e469ceaee60642c4656b1 /drivers/net/qlcnic/qlcnic_ctx.c | |
parent | 8c76368174ed2359739f1b7b8a9c042b1ef839c4 (diff) | |
download | linux-fsl-qoriq-0e33c6649eea99f03d6b444d93fe67d856f1b10d.tar.xz |
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic_ctx.c b/drivers/net/qlcnic/qlcnic_ctx.c index 1e1dc58..42feb23 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) adapter->capabilities = le32_to_cpu(nic_info->capabilities); adapter->max_mac_filters = nic_info->max_mac_filters; + if (adapter->capabilities & BIT_6) + adapter->flags |= QLCNIC_ESWITCH_ENABLED; + else + adapter->flags &= ~QLCNIC_ESWITCH_ENABLED; + dev_info(&adapter->pdev->dev, "phy port: %d switch_mode: %d,\n" "\tmax_tx_q: %d max_rx_q: %d min_tx_bw: 0x%x,\n" |