]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: Obtain Bus Device Function from register
authorAriel Elior <ariele@broadcom.com>
Thu, 26 Jan 2012 06:01:47 +0000 (06:01 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 14:41:19 +0000 (22:41 +0800)
commit03ac87259b66c2fbb40fe98f800bb3927f26d16b
treec2df519153a956ed0b551c79884afc94f1e318fe
parent4a9dc51fa04470e4e38d2376ef57b873626ed588
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.

(cherry picked from commit c22610d0001ebf3420d39f419056a56c5aa43096)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_main.c
drivers/net/bnx2x/bnx2x_reg.h