]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Determine PCI function number in one place
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 13 Jul 2011 09:27:30 +0000 (09:27 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 15 May 2012 08:32:10 +0000 (16:32 +0800)
commite92e49edc6746f334acb9c1a7516d27cbe4c7468
treee6161b23097e87f48d70f85c84880349a994be21
parent16d9c67e01b3f484d4dad78f5a5cc1d0bac44f42
tg3: Determine PCI function number in one place

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: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 69f11c9936ba310ed3620072983da6ed95e86cc0)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c
drivers/net/tg3.h