be2net: Patch to determine if function is VF while running in guest OS.
authorSarveshwar Bandi <sarveshwarb@serverengines.com>
Fri, 9 Jul 2010 01:43:55 +0000 (01:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Jul 2010 02:42:05 +0000 (19:42 -0700)
commit344dbf1073d1cea179ed0831547cab2b7ea4ea27
tree0963847f46c5b4c7197dc1039081937ac0d934d2
parent1ebed71ae23b0b3c68d2a03e8e1b421efb7f35b0
be2net: Patch to determine if function is VF while running in guest OS.

When driver is loaded in guest OS, the pci variables is_virtfn and is_physfn are
both set to 0. This change uses registers in controller to determine the same.

Signed-off-by: Sarveshwar Bandi <sarveshwarb@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be.h
drivers/net/benet/be_main.c