net/e1000: localize mapping of ethdev to PCI device
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 23 Dec 2016 15:57:56 +0000 (16:57 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sat, 24 Dec 2016 17:54:33 +0000 (18:54 +0100)
commit2e8aad98faa9527fc2439b9f28042d5bd935af6c
treeca3da5159c8910c9ccc726d486e26c8c4d4294a4
parent74343fa77db0fdce9cb87cbaa836c4974351e07c
net/e1000: localize mapping of ethdev to PCI device

Create one macro for where PCI device information is extracted
from ethernet device. Makes later changes easier to review, and test.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Jan Blunck <jblunck@infradead.org>
drivers/net/e1000/e1000_ethdev.h
drivers/net/e1000/em_ethdev.c
drivers/net/e1000/igb_ethdev.c
drivers/net/e1000/igb_pf.c