examples: remove dependency on PCI
PATCH 1/1 examples: remove dependency on PCI
All PCI functionality should be hidden from apps via the PCI bus driver, the EAL and individual device drivers. Therefore remove the inclusion of rte_pci.h from sample apps.
--- examples/bond/main.c | 1 - examples/ethtool/lib/rte_ethtool.c | 1 - examples/exception_path/main.c | 1 - examples/ip_fragmentation/main.c | 1 - examples/ip_reassembly/main.c | 1 - examples/ipsec-secgw/ipsec-secgw.c | 1 - examples/ipv4_multicast/main.c | 1 - examples/kni/main.c | 1 - examples/l2fwd-crypto/main.c | 1 - examples/l2fwd-jobstats/main.c | 1 - examples/l2fwd-keepalive/main.c | 1 - examples/l2fwd/main.c | 1 - examples/l3fwd-acl/main.c | 1 - examples/l3fwd-power/main.c | 1 - examples/l3fwd-vf/main.c | 1 - examples/l3fwd/main.c | 1 - examples/link_status_interrupt/main.c | 1 - examples/load_balancer/config.c | 1 - examples/load_balancer/init.c | 1 - examples/load_balancer/main.c | 1 - examples/load_balancer/runtime.c | 1 - examples/multi_process/client_server_mp/mp_client/client.c | 1 - examples/multi_process/client_server_mp/mp_server/init.c | 1 - examples/multi_process/client_server_mp/mp_server/main.c | 1 - examples/multi_process/l2fwd_fork/flib.c | 1 - examples/multi_process/l2fwd_fork/main.c | 1 - examples/multi_process/symmetric_mp/main.c | 1 - examples/performance-thread/l3fwd-thread/main.c | 1 - examples/server_node_efd/node/node.c | 1 - examples/server_node_efd/server/init.c | 1 - examples/server_node_efd/server/main.c | 1 - examples/vmdq/main.c | 1 - examples/vmdq_dcb/main.c | 1 - 33 files changed, 33 deletions(-)
examples/bond/main.c +0 -1
@@ -61,7 +61,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/ethtool/lib/rte_ethtool.c +0 -1
@@ -36,7 +36,6 @@#include <rte_version.h> #include <rte_ethdev.h> #include <rte_ether.h> -#include <rte_pci.h> #include <rte_bus_pci.h> #ifdef RTE_LIBRTE_IXGBE_PMD #include <rte_pmd_ixgbe.h>
examples/exception_path/main.c +0 -1
@@ -63,7 +63,6 @@#include <rte_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_debug.h> #include <rte_ether.h> #include <rte_ethdev.h>
examples/ip_fragmentation/main.c +0 -1
@@ -58,7 +58,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/ip_reassembly/main.c +0 -1
@@ -59,7 +59,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/ipsec-secgw/ipsec-secgw.c +0 -1
@@ -57,7 +57,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/ipv4_multicast/main.c +0 -1
@@ -57,7 +57,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/kni/main.c +0 -1
@@ -61,7 +61,6 @@#include <rte_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_bus_pci.h> #include <rte_debug.h> #include <rte_ether.h>
examples/l2fwd-crypto/main.c +0 -1
@@ -68,7 +68,6 @@#include <rte_memory.h> #include <rte_mempool.h> #include <rte_memzone.h> -#include <rte_pci.h> #include <rte_per_lcore.h> #include <rte_prefetch.h> #include <rte_random.h>
examples/l2fwd-jobstats/main.c +0 -1
@@ -53,7 +53,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_debug.h> #include <rte_ether.h> #include <rte_ethdev.h>
examples/l2fwd-keepalive/main.c +0 -1
@@ -61,7 +61,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/l2fwd/main.c +0 -1
@@ -62,7 +62,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/l3fwd-acl/main.c +0 -1
@@ -57,7 +57,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/l3fwd-power/main.c +0 -1
@@ -60,7 +60,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/l3fwd-vf/main.c +0 -1
@@ -59,7 +59,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/l3fwd/main.c +0 -1
@@ -60,7 +60,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/link_status_interrupt/main.c +0 -1
@@ -60,7 +60,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/load_balancer/config.c +0 -1
@@ -57,7 +57,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/load_balancer/init.c +0 -1
@@ -57,7 +57,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/load_balancer/main.c +0 -1
@@ -58,7 +58,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/load_balancer/runtime.c +0 -1
@@ -57,7 +57,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/multi_process/client_server_mp/mp_client/client.c +0 -1
@@ -57,7 +57,6 @@#include <rte_mempool.h> #include <rte_mbuf.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_ether.h> #include <rte_ethdev.h> #include <rte_string_fns.h>
examples/multi_process/client_server_mp/mp_server/init.c +0 -1
@@ -56,7 +56,6 @@#include <rte_memcpy.h> #include <rte_mbuf.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_ether.h> #include <rte_ethdev.h> #include <rte_malloc.h>
examples/multi_process/client_server_mp/mp_server/main.c +0 -1
@@ -59,7 +59,6 @@#include <rte_mbuf.h> #include <rte_ether.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_ethdev.h> #include <rte_byteorder.h> #include <rte_malloc.h>
examples/multi_process/l2fwd_fork/flib.c +0 -1
@@ -64,7 +64,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/multi_process/l2fwd_fork/main.c +0 -1
@@ -62,7 +62,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/multi_process/symmetric_mp/main.c +0 -1
@@ -65,7 +65,6 @@#include <rte_branch_prediction.h> #include <rte_debug.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_ether.h> #include <rte_ethdev.h> #include <rte_mempool.h>
examples/performance-thread/l3fwd-thread/main.c +0 -1
@@ -60,7 +60,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/server_node_efd/node/node.c +0 -1
@@ -57,7 +57,6 @@#include <rte_mempool.h> #include <rte_mbuf.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_ether.h> #include <rte_ethdev.h> #include <rte_string_fns.h>
examples/server_node_efd/server/init.c +0 -1
@@ -56,7 +56,6 @@#include <rte_memcpy.h> #include <rte_mbuf.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_ether.h> #include <rte_ethdev.h> #include <rte_malloc.h>
examples/server_node_efd/server/main.c +0 -1
@@ -59,7 +59,6 @@#include <rte_mbuf.h> #include <rte_ether.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_ethdev.h> #include <rte_byteorder.h> #include <rte_malloc.h>
examples/vmdq/main.c +0 -1
@@ -57,7 +57,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
examples/vmdq_dcb/main.c +0 -1
@@ -57,7 +57,6 @@#include <rte_per_lcore.h> #include <rte_branch_prediction.h> #include <rte_interrupts.h> -#include <rte_pci.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_ether.h>
Signature · 1 line
2.13.6
Quoted 6 lines · Bruce Richardson
All PCI functionality should be hidden from apps via the PCI bus driver, the EAL and individual device drivers. Therefore remove the inclusion of
rte_pci.hfrom sample apps.Signed-off-by Bruce Richardson <[email protected]>---
Note, this patch will also fix the build of many sample apps on the next-build tree. Currently, building samples as part of a full DPDK build will error out on many examples, as they are not set to depend upon libpci. An alternative for next-build is to add pci as a standard dependency for sample apps, but as a fix, it's quick, tidy and sadly wrong! :-)
Therefore, please consider this patch for 17.11rc3.
Thanks,
/Bruce
Thomas Monjalon
Applied03/11/2017 14:46, Bruce Richardson:
Quoted 5 lines
All PCI functionality should be hidden from apps via the PCI bus driver, the EAL and individual device drivers. Therefore remove the inclusion of
rte_pci.hfrom sample apps.Signed-off-by Bruce Richardson <[email protected]>
Applied, thanks