Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
dpdk: only look at PCI information on PCI devices
[vpp.git]
/
src
/
plugins
/
dpdk
/
device
/
cli.c
diff --git
a/src/plugins/dpdk/device/cli.c
b/src/plugins/dpdk/device/cli.c
index
7e168af
..
7e20f56
100644
(file)
--- a/
src/plugins/dpdk/device/cli.c
+++ b/
src/plugins/dpdk/device/cli.c
@@
-68,10
+68,10
@@
get_hqos (u32 hw_if_index, u32 subport_id, dpdk_device_t ** xd,
rte_eth_dev_info_get ((*xd)->port_id, &dev_info);
rte_eth_dev_info_get ((*xd)->port_id, &dev_info);
- pci_dev =
RTE_DEV_TO_PCI (dev_info.device
);
+ pci_dev =
dpdk_get_pci_device (&dev_info
);
if (pci_dev)
if (pci_dev)
- {
/* bonded interface has no pci info */
+ {
vlib_pci_addr_t pci_addr;
pci_addr.domain = pci_dev->addr.domain;
vlib_pci_addr_t pci_addr;
pci_addr.domain = pci_dev->addr.domain;
@@
-1286,7
+1286,7
@@
set_dpdk_if_hqos_pktfield (vlib_main_t * vm, unformat_input_t * input,
rte_eth_dev_info_get (xd->port_id, &dev_info);
rte_eth_dev_info_get (xd->port_id, &dev_info);
- pci_dev =
RTE_DEV_TO_PCI (dev_info.device
);
+ pci_dev =
dpdk_get_pci_device (&dev_info
);
if (pci_dev)
{ /* bonded interface has no pci info */
if (pci_dev)
{ /* bonded interface has no pci info */
@@
-1481,7
+1481,7
@@
show_dpdk_if_hqos (vlib_main_t * vm, unformat_input_t * input,
rte_eth_dev_info_get (xd->port_id, &dev_info);
rte_eth_dev_info_get (xd->port_id, &dev_info);
- pci_dev =
RTE_DEV_TO_PCI (dev_info.device
);
+ pci_dev =
dpdk_get_pci_device (&dev_info
);
if (pci_dev)
{ /* bonded interface has no pci info */
if (pci_dev)
{ /* bonded interface has no pci info */