]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Obtain PCI function number from device
authorMatt Carlson <mcarlson@broadcom.com>
Fri, 4 Nov 2011 09:15:02 +0000 (09:15 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 02:32:15 +0000 (10:32 +0800)
commit8f2961ce7062abce491036c829b317792fd3c7cb
tree46e09c9f70f1293a28cd9d48d08739d6ef964001
parent0b68603cc1b2fac046314cd06ff1f206677b5293
tg3: Obtain PCI function number from device

This patch adds code to attempt to obtain the PCI function number from
the device rather than accept the number handed by the kernel.  In
pass-through scenarios, the function number handed by the kernel may not
reflect the true function of the device.

(cherry picked from commit 9dc5e342703948ea7b086d063c85c0e79dac8149)
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c
drivers/net/tg3.h