e1000: fix PCI device info with secondary process
authorJon DeVree <nuxi@vault24.org>
Mon, 23 Nov 2015 15:13:53 +0000 (10:13 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 23 Nov 2015 22:51:14 +0000 (23:51 +0100)
commit1be847dd4551e7860ae2a20611f4d6bd13076372
treea86c85f39479ff20cd526e2b65b229d5b2a6ee79
parentd082c0395bf6cd8c5d9033d2826082557a336984
e1000: fix PCI device info with secondary process

This fixes a bug added to em and igb drivers which causes the pci info
seen by the primary process to become invalidated by secondary process
startup.
This call was added after the process type check in the other drivers.

Fixes: eeefe73f0af1 ("drivers: copy PCI device info to ethdev data")

Signed-off-by: Jon DeVree <nuxi@vault24.org>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
drivers/net/e1000/em_ethdev.c
drivers/net/e1000/igb_ethdev.c