• Ron Mercer's avatar
    qlge: Add support for varied pcie function numbers. · e4552f51
    Ron Mercer authored
    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: default avatarRon Mercer <ron.mercer@qlogic.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    e4552f51
qlge.h 43.2 KB