be2net: remove usage of be_pci_func
authorAjit Khaparde <ajitkhaparde@gmail.com>
Sun, 7 Mar 2010 14:21:27 +0000 (14:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Mar 2010 18:45:27 +0000 (10:45 -0800)
commit500ca9ba241304937c54c379e515b24400379353
tree2a55bf6487ff8f366f361f0f91cabb31a4865a98
parent6cce09f87a04797fae5b947ef2626c14a78f0b49
be2net: remove usage of be_pci_func

When PCI functions are virtuialized in applications by assigning PCI
functions to VM (PCI passthrough), the be2net driver in the VM sees a

different function number. So, use of PCI function number in any
calculation will break existing code. This patch takes care of it.

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be.h
drivers/net/benet/be_cmds.c
drivers/net/benet/be_main.c