bnx2x: Obtain Bus Device Function from register
authorAriel Elior <ariele@broadcom.com>
Thu, 26 Jan 2012 06:01:47 +0000 (06:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jan 2012 18:39:51 +0000 (13:39 -0500)
commitc22610d0001ebf3420d39f419056a56c5aa43096
tree2df40a72ec2c5b5ee215928ac8582d54181cacbe
parent127a425e8f05b9813879e8ca909ef4338ec8ec04
bnx2x: Obtain Bus Device Function from register

BDF was obtained from kernel but since in virtualized environment
(e.g. physical device assigment in KVM) the function number may
not be the real one, the info must be obtained from the device.

Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h