Hi, > -----Original Message----- > From: Yigit, Ferruh > Sent: Thursday, May 4, 2017 9:08 PM > To: Thomas Monjalon; Shepard Siegel; Ed Czeck; John Miller; Legacy, Allain > (Wind River); Peters, Matt (Wind River); Lu, Wenzhuo; Zhang, Helin; Wu, > Jingjing; Ananyev, Konstantin; Andrew Rybchenko > Cc: [email protected]; Yigit, Ferruh > Subject: [PATCH] drivers/net: add generic ethdev macro to get PCI device > > Instead of many PMD define their own macro, define a generic one in ethdev > and use that in PMDs. > > Signed-off-by: Ferruh Yigit <[email protected]> Acked-by: Wenzhuo Lu <[email protected]>
BTW, there're RTE_DEV_TO_PCI(dev->device) in many places, maybe we can replace them by the new macro RTE_ETH_DEV_TO_PCI.

