git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drivers/net: add generic ethdev macro to get PCI device
[dpdk.git]
/
drivers
/
net
/
sfc
/
sfc_debug.h
diff --git
a/drivers/net/sfc/sfc_debug.h
b/drivers/net/sfc/sfc_debug.h
index
c0b4867
..
f4fe044
100644
(file)
--- a/
drivers/net/sfc/sfc_debug.h
+++ b/
drivers/net/sfc/sfc_debug.h
@@
-48,7
+48,8
@@
#define sfc_panic(sa, fmt, args...) \
do { \
const struct rte_eth_dev *_dev = (sa)->eth_dev; \
#define sfc_panic(sa, fmt, args...) \
do { \
const struct rte_eth_dev *_dev = (sa)->eth_dev; \
- const struct rte_pci_device *_pci_dev = SFC_DEV_TO_PCI(_dev); \
+ const struct rte_pci_device *_pci_dev = \
+ RTE_ETH_DEV_TO_PCI(_dev); \
\
rte_panic("sfc " PCI_PRI_FMT " #%" PRIu8 ": " fmt "\n", \
_pci_dev->addr.domain, _pci_dev->addr.bus, \
\
rte_panic("sfc " PCI_PRI_FMT " #%" PRIu8 ": " fmt "\n", \
_pci_dev->addr.domain, _pci_dev->addr.bus, \