igb: Correctly determine pci-e function number in virtual environment
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 10 Dec 2008 09:09:53 +0000 (01:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Dec 2008 09:09:53 +0000 (01:09 -0800)
commit5e8427e5e25e3f844113cf67d07e7806bbe8c0e2
tree80851d045a850dc981c071fc4bb9ea763dbd8cd4
parentb4557be23dc959f38eed21d359ec7164e42bcbd6
igb: Correctly determine pci-e function number in virtual environment

When running in a virtual environment the ports of an 82575/6 can appear to
be single function devices which is not correct.  To resolve this we rely
on the function number stored in the status register.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/e1000_mac.c
drivers/net/igb/e1000_regs.h
drivers/net/igb/igb_ethtool.c