]> bbs.cooldavid.org Git - net-next-2.6.git/commit
qlcnic: NIC Partitioning - Add basic infrastructure support
authorAnirban Chakraborty <anirban.chakraborty@qlogic.com>
Tue, 1 Jun 2010 11:28:51 +0000 (11:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2010 09:24:03 +0000 (02:24 -0700)
commit2e9d722db6617ed10204bfa9cd60552620592a43
treeda905f18459e55a8cb534d757f5b14a3e9da73d5
parentdd8f61d7ff92eb8a4626565ca37b209b3a8a9ce2
qlcnic: NIC Partitioning - Add basic infrastructure support

Following changes have been added to enable the adapter to work in
NIC partitioning mode where multiple PCI functions of an adapter port can
be configured to work as NIC functions. The first function that is enumerated on
the PCI bus assumes the role of management function which, besides being able
to do all the NIC functionality, can configure other NIC partitions. Other NIC
functions can be configured as privileged or non privileged functions.
Privileged function can not configure other NIC functions but can do all the
NIC functionality including any firmware initialization, chip reset etc. Non
privileged functions can do only basic IO. For chip reset etc, it depends on the
privilege or management function.

1. Added code to determine PCI function number independent of kernel API.
2. Added Driver - FW version 2.0 support.
3. Changed producer and consumer register offset calculation.
4. Added management and privileged operation modes for npar functions. A module
 parameter has been added to control it.
5. Added support for configuring the eswitch in the adapter.

Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic.h
drivers/net/qlcnic/qlcnic_ctx.c
drivers/net/qlcnic/qlcnic_ethtool.c
drivers/net/qlcnic/qlcnic_hdr.h
drivers/net/qlcnic/qlcnic_hw.c
drivers/net/qlcnic/qlcnic_init.c
drivers/net/qlcnic/qlcnic_main.c