]> git.baikalelectronics.ru Git - kernel.git/commit
qlge: Add support for varied pcie function numbers.
authorRon Mercer <ron.mercer@qlogic.com>
Tue, 9 Jun 2009 05:39:32 +0000 (05:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jun 2009 08:04:14 +0000 (01:04 -0700)
commitcf4ca6ca1b3fff1e2137482fae71c816369adcbb
treee151217b00245847863e64f09286bc1d2735d7de
parentd44efb28686f06917d428f2e35c6f652c0d3d30c
qlge: Add support for varied pcie function numbers.

Currently we support only PCIe NIC functions zero and one, and FCoE
functions as 3 and 4. Future configurations can mix these up in any
fashion.
This patch removes the 0-1 dependancy and allows usage of any of the 4
functions. We also find the alternate NIC function (if exist) and
determine our port number based on the comparison of the two functions:
Lower function number gets first port, higher function gets second port.

Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlge/qlge.h
drivers/net/qlge/qlge_main.c