]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2011 21:31:48 +0000 (17:31 -0400)
commit95c2f09a8542faa5b6c8a897286b4b0885c02658
tree664ce50ab14d997f01f44f84a982440257413b78
parent0dc59ca075a7cfe182a7aa790a3c5e9f6666a70f
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.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/broadcom/tg3.h