• Matt Carlson's avatar
    tg3: Determine PCI function number in one place · 69f11c99
    Matt Carlson authored
    tg3 devices will need to know exactly what function number they are so
    that they can communicate their status to the other functions.  In a KVM
    environment, the function number of a device presented by the kernel
    might not be the true function number, so an alternative method to
    determine the function number is needed.
    
    This patch used to contain an implementation for the alternative method,
    but recently we discovered a hardware bug that renders it incorrect.
    While new method is not yet known, it is still useful to consolidate the
    code that determines the PCI function to one location and use the
    results throughout the code.
    Signed-off-by: default avatarMatt Carlson <mcarlson@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    69f11c99
tg3.c 409 KB