├── .gitignore ├── lib ├── librte_malloc │ ├── rte_malloc_version.map │ ├── rte_malloc_empty.c │ └── Makefile ├── librte_kvargs │ ├── rte_kvargs_version.map │ └── Makefile ├── librte_ring │ └── rte_ring_version.map ├── librte_reorder │ └── rte_reorder_version.map ├── librte_meter │ └── rte_meter_version.map ├── librte_timer │ └── rte_timer_version.map ├── librte_ivshmem │ └── rte_ivshmem_version.map ├── librte_ip_frag │ └── rte_ipfrag_version.map ├── librte_cfgfile │ └── rte_cfgfile_version.map ├── librte_mbuf │ └── rte_mbuf_version.map ├── librte_power │ ├── rte_power_version.map │ └── rte_power_common.h ├── librte_distributor │ └── rte_distributor_version.map ├── librte_mempool │ └── rte_mempool_version.map ├── librte_kni │ └── rte_kni_version.map ├── librte_eal │ ├── linuxapp │ │ ├── xen_dom0 │ │ │ └── compat.h │ │ ├── kni │ │ │ ├── compat.h │ │ │ └── ethtool │ │ │ │ ├── igb │ │ │ │ └── igb_debugfs.c │ │ │ │ └── ixgbe │ │ │ │ └── ixgbe_82598.h │ │ └── Makefile │ ├── common │ │ └── include │ │ │ └── arch │ │ │ └── ppc_64 │ │ │ └── rte_rwlock.h │ ├── bsdapp │ │ ├── contigmem │ │ │ └── BSDmakefile │ │ ├── nic_uio │ │ │ └── BSDmakefile │ │ └── Makefile │ └── Makefile ├── librte_acl │ └── rte_acl_version.map ├── librte_jobstats │ └── rte_jobstats_version.map ├── librte_vhost │ ├── rte_vhost_version.map │ ├── vhost_cuse │ │ └── eventfd_copy.h │ ├── eventfd_link │ │ └── Makefile │ └── virtio-net.h ├── librte_lpm │ └── rte_lpm_version.map ├── librte_table │ └── rte_table_version.map ├── librte_port │ └── rte_port_version.map ├── librte_sched │ └── rte_sched_version.map ├── librte_hash │ └── rte_hash_version.map ├── librte_pipeline │ └── rte_pipeline_version.map ├── librte_cmdline │ └── rte_cmdline_version.map ├── librte_compat │ └── Makefile └── librte_net │ └── Makefile ├── drivers ├── net │ ├── enic │ │ ├── rte_pmd_enic_version.map │ │ └── LICENSE │ ├── i40e │ │ └── rte_pmd_i40e_version.map │ ├── mlx4 │ │ └── rte_pmd_mlx4_version.map │ ├── null │ │ └── rte_pmd_null_version.map │ ├── pcap │ │ └── rte_pmd_pcap_version.map │ ├── bnx2x │ │ ├── rte_pmd_bnx2x_version.map │ │ ├── Makefile │ │ ├── bnx2x_logs.h │ │ └── bnx2x_ethdev.h │ ├── cxgbe │ │ └── rte_pmd_cxgbe_version.map │ ├── e1000 │ │ ├── rte_pmd_e1000_version.map │ │ └── base │ │ │ └── README │ ├── fm10k │ │ └── rte_pmd_fm10k_version.map │ ├── ixgbe │ │ └── rte_pmd_ixgbe_version.map │ ├── virtio │ │ └── rte_pmd_virtio_version.map │ ├── vmxnet3 │ │ ├── rte_pmd_vmxnet3_version.map │ │ └── base │ │ │ ├── vmware_pack_begin.h │ │ │ ├── vmware_pack_end.h │ │ │ ├── includeCheck.h │ │ │ └── vmxnet3_osdep.h │ ├── af_packet │ │ └── rte_pmd_af_packet_version.map │ ├── xenvirt │ │ └── rte_eth_xenvirt_version.map │ ├── ring │ │ └── rte_eth_ring_version.map │ ├── bonding │ │ └── rte_eth_bond_version.map │ └── mpipe │ │ └── Makefile └── Makefile ├── examples ├── ip_pipeline │ ├── config │ │ ├── ip_pipeline.sh │ │ └── ip_pipeline.cfg │ └── pipeline │ │ ├── pipeline_master.h │ │ ├── pipeline_passthrough.h │ │ ├── pipeline_master_be.h │ │ ├── pipeline_passthrough_be.h │ │ └── pipeline_master.c ├── dpdk_qat │ └── config_files │ │ └── coleto │ │ └── dh895xcc_qa_dev0.conf ├── bond │ └── main.h ├── cmdline │ └── commands.h ├── quota_watermark │ ├── qwctl │ │ ├── qwctl.h │ │ └── commands.h │ ├── qw │ │ ├── args.h │ │ └── init.h │ ├── Makefile │ └── include │ │ └── conf.h ├── multi_process │ ├── client_server_mp │ │ ├── mp_server │ │ │ └── args.h │ │ └── Makefile │ └── simple_mp │ │ └── mp_commands.h ├── vm_power_manager │ └── vm_power_cli.h ├── l2fwd-ivshmem │ └── Makefile └── l2fwd │ └── Makefile ├── doc ├── guides │ ├── nics │ │ └── img │ │ │ ├── console.png │ │ │ ├── vswitch_vm.png │ │ │ ├── fast_pkt_proc.png │ │ │ ├── forward_stats.png │ │ │ ├── host_vm_comms.png │ │ │ ├── vm_vm_comms.png │ │ │ ├── vmxnet3_int.png │ │ │ ├── inter_vm_comms.png │ │ │ ├── perf_benchmark.png │ │ │ ├── single_port_nic.png │ │ │ └── host_vm_comms_qemu.png │ ├── xen │ │ ├── img │ │ │ ├── grant_refs.png │ │ │ ├── grant_table.png │ │ │ └── dpdk_xen_pkt_switch.png │ │ └── index.rst │ ├── prog_guide │ │ └── img │ │ │ ├── ivshmem.png │ │ │ ├── figure32.png │ │ │ ├── figure33.png │ │ │ ├── figure34.png │ │ │ ├── figure35.png │ │ │ ├── figure37.png │ │ │ ├── figure38.png │ │ │ ├── figure39.png │ │ │ ├── eq2_factor.png │ │ │ ├── m_definition.png │ │ │ ├── pkt_flow_kni.png │ │ │ ├── tbl24_tbl8.png │ │ │ ├── eq2_expression.png │ │ │ ├── hier_sched_blk.png │ │ │ ├── vhost_net_arch.png │ │ │ ├── blk_diag_dropper.png │ │ │ ├── ewma_filter_eq_1.png │ │ │ ├── ewma_filter_eq_2.png │ │ │ ├── flow_tru_droppper.png │ │ │ ├── kernel_nic_intf.png │ │ │ ├── kni_traffic_flow.png │ │ │ ├── pipe_prefetch_sm.png │ │ │ ├── prefetch_pipeline.png │ │ │ ├── tbl24_tbl8_tbl8.png │ │ │ ├── packet_distributor1.png │ │ │ ├── packet_distributor2.png │ │ │ ├── sched_hier_per_port.png │ │ │ ├── data_struct_per_port.png │ │ │ ├── drop_probability_eq3.png │ │ │ ├── drop_probability_eq4.png │ │ │ ├── drop_probability_graph.png │ │ │ ├── pkt_drop_probability.png │ │ │ ├── pkt_proc_pipeline_qos.png │ │ │ └── ex_data_flow_tru_dropper.png │ ├── sample_app_ug │ │ └── img │ │ │ ├── kernel_nic.png │ │ │ ├── example_rules.png │ │ │ ├── ipv4_acl_rule.png │ │ │ ├── vhost_net_arch.png │ │ │ ├── qemu_virtio_net.png │ │ │ ├── slave_proc_recov.png │ │ │ ├── tx_dpdk_testpmd.png │ │ │ ├── load_bal_app_arch.png │ │ │ ├── master_slave_proc.png │ │ │ ├── pipeline_overview.png │ │ │ ├── qos_sched_app_arch.png │ │ │ ├── sym_multi_proc_app.png │ │ │ ├── test_pipeline_app.png │ │ │ ├── threads_pipelines.png │ │ │ ├── virtio_linux_vhost.png │ │ │ ├── vhost_net_sample_app.png │ │ │ ├── ring_pipeline_perf_setup.png │ │ │ ├── quickassist_block_diagram.png │ │ │ ├── client_svr_sym_multi_proc_app.png │ │ │ └── l2_fwd_virtenv_benchmark_setup.png │ ├── contributing │ │ └── index.rst │ ├── testpmd_app_ug │ │ ├── overview.rst │ │ └── index.rst │ ├── faq │ │ └── index.rst │ ├── freebsd_gsg │ │ └── index.rst │ ├── rel_notes │ │ ├── index.rst │ │ └── rel_description.rst │ ├── linux_gsg │ │ └── index.rst │ └── index.rst ├── build-sdk-quick.txt └── api │ └── doxy-html-custom.sh ├── mk ├── internal │ ├── rte.depdirs-pre.mk │ ├── rte.clean-pre.mk │ ├── rte.compile-post.mk │ ├── rte.build-pre.mk │ └── rte.depdirs-post.mk ├── exec-env │ ├── bsdapp │ │ └── rte.app.mk │ └── linuxapp │ │ └── rte.app.mk ├── arch │ ├── tile │ │ └── rte.vars.mk │ └── ppc_64 │ │ └── rte.vars.mk ├── target │ └── generic │ │ └── rte.app.mk └── toolchain │ └── clang │ └── rte.toolchain-compat.mk ├── Makefile ├── app ├── test │ ├── test_table_acl.h │ ├── test_table_pipeline.h │ └── test_table_ports.h ├── cmdline_test │ ├── cmdline_test.h │ └── Makefile ├── proc_info │ └── Makefile ├── test-acl │ └── Makefile └── Makefile ├── GNUmakefile ├── config ├── defconfig_x86_64-native-bsdapp-gcc ├── defconfig_x86_64-native-bsdapp-clang ├── defconfig_x86_64-native-linuxapp-gcc ├── defconfig_x86_64-native-linuxapp-icc ├── defconfig_x86_64-native-linuxapp-clang ├── defconfig_x86_x32-native-linuxapp-gcc ├── defconfig_i686-native-linuxapp-gcc ├── defconfig_i686-native-linuxapp-icc └── defconfig_x86_64-ivshmem-linuxapp-gcc └── scripts ├── cocci └── mtod-offset.cocci ├── test-null.sh └── gen-config-h.sh /.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/librte_malloc/rte_malloc_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | local: *; 3 | }; 4 | -------------------------------------------------------------------------------- /drivers/net/enic/rte_pmd_enic_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | 3 | local: *; 4 | }; 5 | -------------------------------------------------------------------------------- /drivers/net/i40e/rte_pmd_i40e_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | 3 | local: *; 4 | }; 5 | -------------------------------------------------------------------------------- /drivers/net/mlx4/rte_pmd_mlx4_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | 3 | local: *; 4 | }; 5 | -------------------------------------------------------------------------------- /drivers/net/null/rte_pmd_null_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | 3 | local: *; 4 | }; 5 | -------------------------------------------------------------------------------- /drivers/net/pcap/rte_pmd_pcap_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | 3 | local: *; 4 | }; 5 | -------------------------------------------------------------------------------- /drivers/net/bnx2x/rte_pmd_bnx2x_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.1 { 2 | 3 | local: *; 4 | }; 5 | -------------------------------------------------------------------------------- /drivers/net/cxgbe/rte_pmd_cxgbe_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.1 { 2 | 3 | local: *; 4 | }; 5 | -------------------------------------------------------------------------------- /drivers/net/e1000/rte_pmd_e1000_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | 3 | local: *; 4 | }; 5 | -------------------------------------------------------------------------------- /drivers/net/fm10k/rte_pmd_fm10k_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | 3 | local: *; 4 | }; 5 | -------------------------------------------------------------------------------- /drivers/net/ixgbe/rte_pmd_ixgbe_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | 3 | local: *; 4 | }; 5 | -------------------------------------------------------------------------------- /drivers/net/virtio/rte_pmd_virtio_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | 3 | local: *; 4 | }; 5 | -------------------------------------------------------------------------------- /drivers/net/vmxnet3/rte_pmd_vmxnet3_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | 3 | local: *; 4 | }; 5 | -------------------------------------------------------------------------------- /examples/ip_pipeline/config/ip_pipeline.sh: -------------------------------------------------------------------------------- 1 | # 2 | #run config/ip_pipeline.sh 3 | # 4 | 5 | p 1 ping 6 | -------------------------------------------------------------------------------- /doc/guides/nics/img/console.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/nics/img/console.png -------------------------------------------------------------------------------- /doc/guides/nics/img/vswitch_vm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/nics/img/vswitch_vm.png -------------------------------------------------------------------------------- /doc/guides/xen/img/grant_refs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/xen/img/grant_refs.png -------------------------------------------------------------------------------- /doc/guides/xen/img/grant_table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/xen/img/grant_table.png -------------------------------------------------------------------------------- /doc/guides/nics/img/fast_pkt_proc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/nics/img/fast_pkt_proc.png -------------------------------------------------------------------------------- /doc/guides/nics/img/forward_stats.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/nics/img/forward_stats.png -------------------------------------------------------------------------------- /doc/guides/nics/img/host_vm_comms.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/nics/img/host_vm_comms.png -------------------------------------------------------------------------------- /doc/guides/nics/img/vm_vm_comms.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/nics/img/vm_vm_comms.png -------------------------------------------------------------------------------- /doc/guides/nics/img/vmxnet3_int.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/nics/img/vmxnet3_int.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/ivshmem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/ivshmem.png -------------------------------------------------------------------------------- /doc/guides/nics/img/inter_vm_comms.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/nics/img/inter_vm_comms.png -------------------------------------------------------------------------------- /doc/guides/nics/img/perf_benchmark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/nics/img/perf_benchmark.png -------------------------------------------------------------------------------- /doc/guides/nics/img/single_port_nic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/nics/img/single_port_nic.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/figure32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/figure32.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/figure33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/figure33.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/figure34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/figure34.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/figure35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/figure35.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/figure37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/figure37.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/figure38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/figure38.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/figure39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/figure39.png -------------------------------------------------------------------------------- /doc/guides/nics/img/host_vm_comms_qemu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/nics/img/host_vm_comms_qemu.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/eq2_factor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/eq2_factor.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/m_definition.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/m_definition.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/pkt_flow_kni.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/pkt_flow_kni.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/tbl24_tbl8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/tbl24_tbl8.png -------------------------------------------------------------------------------- /doc/guides/xen/img/dpdk_xen_pkt_switch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/xen/img/dpdk_xen_pkt_switch.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/eq2_expression.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/eq2_expression.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/hier_sched_blk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/hier_sched_blk.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/vhost_net_arch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/vhost_net_arch.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/kernel_nic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/kernel_nic.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/blk_diag_dropper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/blk_diag_dropper.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/ewma_filter_eq_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/ewma_filter_eq_1.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/ewma_filter_eq_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/ewma_filter_eq_2.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/flow_tru_droppper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/flow_tru_droppper.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/kernel_nic_intf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/kernel_nic_intf.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/kni_traffic_flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/kni_traffic_flow.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/pipe_prefetch_sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/pipe_prefetch_sm.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/prefetch_pipeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/prefetch_pipeline.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/tbl24_tbl8_tbl8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/tbl24_tbl8_tbl8.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/example_rules.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/example_rules.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/ipv4_acl_rule.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/ipv4_acl_rule.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/vhost_net_arch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/vhost_net_arch.png -------------------------------------------------------------------------------- /drivers/net/af_packet/rte_pmd_af_packet_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_pmd_af_packet_devinit; 5 | 6 | local: *; 7 | }; 8 | -------------------------------------------------------------------------------- /drivers/net/xenvirt/rte_eth_xenvirt_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_mempool_gntalloc_create; 5 | 6 | local: *; 7 | }; 8 | -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/packet_distributor1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/packet_distributor1.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/packet_distributor2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/packet_distributor2.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/sched_hier_per_port.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/sched_hier_per_port.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/qemu_virtio_net.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/qemu_virtio_net.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/slave_proc_recov.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/slave_proc_recov.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/tx_dpdk_testpmd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/tx_dpdk_testpmd.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/data_struct_per_port.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/data_struct_per_port.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/drop_probability_eq3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/drop_probability_eq3.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/drop_probability_eq4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/drop_probability_eq4.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/drop_probability_graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/drop_probability_graph.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/pkt_drop_probability.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/pkt_drop_probability.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/pkt_proc_pipeline_qos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/pkt_proc_pipeline_qos.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/load_bal_app_arch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/load_bal_app_arch.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/master_slave_proc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/master_slave_proc.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/pipeline_overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/pipeline_overview.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/qos_sched_app_arch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/qos_sched_app_arch.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/sym_multi_proc_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/sym_multi_proc_app.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/test_pipeline_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/test_pipeline_app.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/threads_pipelines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/threads_pipelines.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/virtio_linux_vhost.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/virtio_linux_vhost.png -------------------------------------------------------------------------------- /doc/guides/prog_guide/img/ex_data_flow_tru_dropper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/prog_guide/img/ex_data_flow_tru_dropper.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/vhost_net_sample_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/vhost_net_sample_app.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/ring_pipeline_perf_setup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/ring_pipeline_perf_setup.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/quickassist_block_diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/quickassist_block_diagram.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/client_svr_sym_multi_proc_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/client_svr_sym_multi_proc_app.png -------------------------------------------------------------------------------- /doc/guides/sample_app_ug/img/l2_fwd_virtenv_benchmark_setup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scylladb/dpdk/HEAD/doc/guides/sample_app_ug/img/l2_fwd_virtenv_benchmark_setup.png -------------------------------------------------------------------------------- /drivers/net/ring/rte_eth_ring_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_eth_from_rings; 5 | rte_eth_ring_pair_attach; 6 | rte_eth_ring_pair_create; 7 | 8 | local: *; 9 | }; 10 | -------------------------------------------------------------------------------- /lib/librte_kvargs/rte_kvargs_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_kvargs_count; 5 | rte_kvargs_free; 6 | rte_kvargs_parse; 7 | rte_kvargs_process; 8 | 9 | local: *; 10 | }; 11 | -------------------------------------------------------------------------------- /examples/ip_pipeline/config/ip_pipeline.cfg: -------------------------------------------------------------------------------- 1 | [PIPELINE0] 2 | type = MASTER 3 | core = 0 4 | 5 | [PIPELINE1] 6 | type = PASS-THROUGH 7 | core = 1 8 | pktq_in = RXQ0.0 RXQ1.0 RXQ2.0 RXQ3.0 9 | pktq_out = TXQ0.0 TXQ1.0 TXQ2.0 TXQ3.0 10 | -------------------------------------------------------------------------------- /doc/guides/contributing/index.rst: -------------------------------------------------------------------------------- 1 | Contributor's Guidelines 2 | ======================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | :numbered: 7 | 8 | coding_style 9 | design 10 | versioning 11 | documentation 12 | -------------------------------------------------------------------------------- /lib/librte_ring/rte_ring_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_ring_create; 5 | rte_ring_dump; 6 | rte_ring_get_memsize; 7 | rte_ring_init; 8 | rte_ring_list_dump; 9 | rte_ring_lookup; 10 | rte_ring_set_water_mark; 11 | 12 | local: *; 13 | }; 14 | -------------------------------------------------------------------------------- /lib/librte_reorder/rte_reorder_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_reorder_create; 5 | rte_reorder_init; 6 | rte_reorder_find_existing; 7 | rte_reorder_reset; 8 | rte_reorder_free; 9 | rte_reorder_insert; 10 | rte_reorder_drain; 11 | 12 | local: *; 13 | }; 14 | -------------------------------------------------------------------------------- /lib/librte_meter/rte_meter_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_meter_srtcm_color_aware_check; 5 | rte_meter_srtcm_color_blind_check; 6 | rte_meter_srtcm_config; 7 | rte_meter_trtcm_color_aware_check; 8 | rte_meter_trtcm_color_blind_check; 9 | rte_meter_trtcm_config; 10 | 11 | local: *; 12 | }; 13 | -------------------------------------------------------------------------------- /lib/librte_timer/rte_timer_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_timer_dump_stats; 5 | rte_timer_init; 6 | rte_timer_manage; 7 | rte_timer_pending; 8 | rte_timer_reset; 9 | rte_timer_reset_sync; 10 | rte_timer_stop; 11 | rte_timer_stop_sync; 12 | rte_timer_subsystem_init; 13 | 14 | local: *; 15 | }; 16 | -------------------------------------------------------------------------------- /lib/librte_ivshmem/rte_ivshmem_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_ivshmem_metadata_add_mempool; 5 | rte_ivshmem_metadata_add_memzone; 6 | rte_ivshmem_metadata_add_ring; 7 | rte_ivshmem_metadata_cmdline_generate; 8 | rte_ivshmem_metadata_create; 9 | rte_ivshmem_metadata_dump; 10 | 11 | local: *; 12 | }; 13 | -------------------------------------------------------------------------------- /lib/librte_ip_frag/rte_ipfrag_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_ip_frag_free_death_row; 5 | rte_ip_frag_table_create; 6 | rte_ip_frag_table_statistics_dump; 7 | rte_ipv4_frag_reassemble_packet; 8 | rte_ipv4_fragment_packet; 9 | rte_ipv6_frag_reassemble_packet; 10 | rte_ipv6_fragment_packet; 11 | 12 | local: *; 13 | }; 14 | -------------------------------------------------------------------------------- /lib/librte_cfgfile/rte_cfgfile_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_cfgfile_close; 5 | rte_cfgfile_get_entry; 6 | rte_cfgfile_has_entry; 7 | rte_cfgfile_has_section; 8 | rte_cfgfile_load; 9 | rte_cfgfile_num_sections; 10 | rte_cfgfile_section_entries; 11 | rte_cfgfile_section_num_entries; 12 | rte_cfgfile_sections; 13 | 14 | local: *; 15 | }; 16 | -------------------------------------------------------------------------------- /lib/librte_mbuf/rte_mbuf_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_ctrlmbuf_init; 5 | rte_get_rx_ol_flag_name; 6 | rte_get_tx_ol_flag_name; 7 | rte_mbuf_sanity_check; 8 | rte_pktmbuf_dump; 9 | rte_pktmbuf_init; 10 | rte_pktmbuf_pool_init; 11 | 12 | local: *; 13 | }; 14 | 15 | DPDK_2.1 { 16 | global: 17 | 18 | rte_pktmbuf_pool_create; 19 | 20 | } DPDK_2.0; 21 | -------------------------------------------------------------------------------- /lib/librte_power/rte_power_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_power_exit; 5 | rte_power_freq_down; 6 | rte_power_freq_max; 7 | rte_power_freq_min; 8 | rte_power_freq_up; 9 | rte_power_freqs; 10 | rte_power_get_env; 11 | rte_power_get_freq; 12 | rte_power_init; 13 | rte_power_set_env; 14 | rte_power_set_freq; 15 | rte_power_unset_env; 16 | 17 | local: *; 18 | }; 19 | -------------------------------------------------------------------------------- /lib/librte_distributor/rte_distributor_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_distributor_clear_returns; 5 | rte_distributor_create; 6 | rte_distributor_flush; 7 | rte_distributor_get_pkt; 8 | rte_distributor_poll_pkt; 9 | rte_distributor_process; 10 | rte_distributor_request_pkt; 11 | rte_distributor_return_pkt; 12 | rte_distributor_returned_pkts; 13 | 14 | local: *; 15 | }; 16 | -------------------------------------------------------------------------------- /lib/librte_mempool/rte_mempool_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_dom0_mempool_create; 5 | rte_mempool_audit; 6 | rte_mempool_calc_obj_size; 7 | rte_mempool_count; 8 | rte_mempool_create; 9 | rte_mempool_dump; 10 | rte_mempool_list_dump; 11 | rte_mempool_lookup; 12 | rte_mempool_walk; 13 | rte_mempool_xmem_create; 14 | rte_mempool_xmem_size; 15 | rte_mempool_xmem_usage; 16 | 17 | local: *; 18 | }; 19 | -------------------------------------------------------------------------------- /lib/librte_kni/rte_kni_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_kni_alloc; 5 | rte_kni_close; 6 | rte_kni_create; 7 | rte_kni_get; 8 | rte_kni_get_name; 9 | rte_kni_get_port_id; 10 | rte_kni_handle_request; 11 | rte_kni_info_get; 12 | rte_kni_init; 13 | rte_kni_register_handlers; 14 | rte_kni_release; 15 | rte_kni_rx_burst; 16 | rte_kni_tx_burst; 17 | rte_kni_unregister_handlers; 18 | 19 | local: *; 20 | }; 21 | -------------------------------------------------------------------------------- /lib/librte_eal/linuxapp/xen_dom0/compat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Minimal wrappers to allow compiling xen_dom0 on older kernels. 3 | */ 4 | 5 | #ifndef RHEL_RELEASE_VERSION 6 | #define RHEL_RELEASE_VERSION(a, b) (((a) << 8) + (b)) 7 | #endif 8 | 9 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && \ 10 | (!(defined(RHEL_RELEASE_CODE) && \ 11 | RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 4))) 12 | 13 | #define kstrtoul strict_strtoul 14 | 15 | #endif /* < 2.6.39 */ 16 | -------------------------------------------------------------------------------- /lib/librte_acl/rte_acl_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_acl_add_rules; 5 | rte_acl_build; 6 | rte_acl_classify; 7 | rte_acl_classify_alg; 8 | rte_acl_classify_scalar; 9 | rte_acl_create; 10 | rte_acl_dump; 11 | rte_acl_find_existing; 12 | rte_acl_free; 13 | rte_acl_ipv4vlan_add_rules; 14 | rte_acl_ipv4vlan_build; 15 | rte_acl_list_dump; 16 | rte_acl_reset; 17 | rte_acl_reset_rules; 18 | rte_acl_set_ctx_classify; 19 | 20 | local: *; 21 | }; 22 | -------------------------------------------------------------------------------- /lib/librte_jobstats/rte_jobstats_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_jobstats_context_finish; 5 | rte_jobstats_context_init; 6 | rte_jobstats_context_reset; 7 | rte_jobstats_context_start; 8 | rte_jobstats_finish; 9 | rte_jobstats_init; 10 | rte_jobstats_reset; 11 | rte_jobstats_set_max; 12 | rte_jobstats_set_min; 13 | rte_jobstats_set_period; 14 | rte_jobstats_set_target; 15 | rte_jobstats_set_update_period_function; 16 | rte_jobstats_start; 17 | 18 | local: *; 19 | }; 20 | -------------------------------------------------------------------------------- /lib/librte_vhost/rte_vhost_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_vhost_dequeue_burst; 5 | rte_vhost_driver_callback_register; 6 | rte_vhost_driver_register; 7 | rte_vhost_driver_session_start; 8 | rte_vhost_enable_guest_notification; 9 | rte_vhost_enqueue_burst; 10 | rte_vhost_feature_disable; 11 | rte_vhost_feature_enable; 12 | rte_vhost_feature_get; 13 | 14 | local: *; 15 | }; 16 | 17 | DPDK_2.1 { 18 | global: 19 | 20 | rte_vhost_driver_unregister; 21 | 22 | } DPDK_2.0; 23 | -------------------------------------------------------------------------------- /lib/librte_lpm/rte_lpm_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_lpm_add; 5 | rte_lpm_create; 6 | rte_lpm_delete; 7 | rte_lpm_delete_all; 8 | rte_lpm_find_existing; 9 | rte_lpm_free; 10 | rte_lpm_is_rule_present; 11 | rte_lpm6_add; 12 | rte_lpm6_create; 13 | rte_lpm6_delete; 14 | rte_lpm6_delete_all; 15 | rte_lpm6_delete_bulk_func; 16 | rte_lpm6_find_existing; 17 | rte_lpm6_free; 18 | rte_lpm6_is_rule_present; 19 | rte_lpm6_lookup; 20 | rte_lpm6_lookup_bulk_func; 21 | 22 | local: *; 23 | }; 24 | -------------------------------------------------------------------------------- /lib/librte_table/rte_table_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_table_acl_ops; 5 | rte_table_array_ops; 6 | rte_table_hash_ext_ops; 7 | rte_table_hash_key8_ext_dosig_ops; 8 | rte_table_hash_key8_ext_ops; 9 | rte_table_hash_key8_lru_dosig_ops; 10 | rte_table_hash_key8_lru_ops; 11 | rte_table_hash_key16_ext_ops; 12 | rte_table_hash_key16_lru_ops; 13 | rte_table_hash_key32_ext_ops; 14 | rte_table_hash_key32_lru_ops; 15 | rte_table_hash_lru_ops; 16 | rte_table_lpm_ipv6_ops; 17 | rte_table_lpm_ops; 18 | rte_table_stub_ops; 19 | 20 | local: *; 21 | }; 22 | -------------------------------------------------------------------------------- /lib/librte_port/rte_port_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_port_ethdev_reader_ops; 5 | rte_port_ethdev_writer_ops; 6 | rte_port_ring_reader_ipv4_frag_ops; 7 | rte_port_ring_reader_ops; 8 | rte_port_ring_reader_ops; 9 | rte_port_ring_writer_ipv4_ras_ops; 10 | rte_port_ring_writer_ops; 11 | rte_port_ring_writer_ops; 12 | rte_port_sched_reader_ops; 13 | rte_port_sched_writer_ops; 14 | rte_port_sink_ops; 15 | rte_port_source_ops; 16 | 17 | local: *; 18 | }; 19 | 20 | DPDK_2.1 { 21 | global: 22 | 23 | rte_port_ethdev_writer_nodrop_ops; 24 | rte_port_ring_reader_ipv6_frag_ops; 25 | rte_port_ring_writer_ipv6_ras_ops; 26 | rte_port_ring_writer_nodrop_ops; 27 | 28 | } DPDK_2.0; 29 | -------------------------------------------------------------------------------- /drivers/net/bonding/rte_eth_bond_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_eth_bond_8023ad_conf_get; 5 | rte_eth_bond_8023ad_setup; 6 | rte_eth_bond_active_slaves_get; 7 | rte_eth_bond_create; 8 | rte_eth_bond_link_monitoring_set; 9 | rte_eth_bond_mac_address_reset; 10 | rte_eth_bond_mac_address_set; 11 | rte_eth_bond_mode_get; 12 | rte_eth_bond_mode_set; 13 | rte_eth_bond_primary_get; 14 | rte_eth_bond_primary_set; 15 | rte_eth_bond_slave_add; 16 | rte_eth_bond_slave_remove; 17 | rte_eth_bond_slaves_get; 18 | rte_eth_bond_xmit_policy_get; 19 | rte_eth_bond_xmit_policy_set; 20 | 21 | local: *; 22 | }; 23 | 24 | DPDK_2.1 { 25 | global: 26 | 27 | rte_eth_bond_free; 28 | 29 | } DPDK_2.0; 30 | -------------------------------------------------------------------------------- /lib/librte_sched/rte_sched_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_approx; 5 | rte_red_config_init; 6 | rte_red_log2_1_minus_Wq; 7 | rte_red_pow2_frac_inv; 8 | rte_red_rand_seed; 9 | rte_red_rand_val; 10 | rte_red_rt_data_init; 11 | rte_sched_pipe_config; 12 | rte_sched_port_config; 13 | rte_sched_port_dequeue; 14 | rte_sched_port_enqueue; 15 | rte_sched_port_free; 16 | rte_sched_port_get_memory_footprint; 17 | rte_sched_queue_read_stats; 18 | rte_sched_subport_config; 19 | rte_sched_subport_read_stats; 20 | 21 | local: *; 22 | }; 23 | 24 | DPDK_2.1 { 25 | global: 26 | 27 | rte_sched_port_pkt_write; 28 | rte_sched_port_pkt_read_tree_path; 29 | rte_sched_port_pkt_read_color; 30 | 31 | } DPDK_2.0; 32 | -------------------------------------------------------------------------------- /lib/librte_hash/rte_hash_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_fbk_hash_create; 5 | rte_fbk_hash_find_existing; 6 | rte_fbk_hash_free; 7 | rte_hash_add_key; 8 | rte_hash_add_key_with_hash; 9 | rte_hash_create; 10 | rte_hash_del_key; 11 | rte_hash_del_key_with_hash; 12 | rte_hash_find_existing; 13 | rte_hash_free; 14 | rte_hash_hash; 15 | rte_hash_lookup; 16 | rte_hash_lookup_bulk; 17 | rte_hash_lookup_with_hash; 18 | 19 | local: *; 20 | }; 21 | 22 | DPDK_2.1 { 23 | global: 24 | 25 | rte_hash_add_key_data; 26 | rte_hash_add_key_with_hash_data; 27 | rte_hash_create; 28 | rte_hash_iterate; 29 | rte_hash_lookup_bulk_data; 30 | rte_hash_lookup_data; 31 | rte_hash_lookup_with_hash_data; 32 | rte_hash_reset; 33 | 34 | } DPDK_2.0; 35 | -------------------------------------------------------------------------------- /lib/librte_eal/common/include/arch/ppc_64/rte_rwlock.h: -------------------------------------------------------------------------------- 1 | #ifndef _RTE_RWLOCK_PPC_64_H_ 2 | #define _RTE_RWLOCK_PPC_64_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include "generic/rte_rwlock.h" 9 | 10 | static inline void 11 | rte_rwlock_read_lock_tm(rte_rwlock_t *rwl) 12 | { 13 | rte_rwlock_read_lock(rwl); 14 | } 15 | 16 | static inline void 17 | rte_rwlock_read_unlock_tm(rte_rwlock_t *rwl) 18 | { 19 | rte_rwlock_read_unlock(rwl); 20 | } 21 | 22 | static inline void 23 | rte_rwlock_write_lock_tm(rte_rwlock_t *rwl) 24 | { 25 | rte_rwlock_write_lock(rwl); 26 | } 27 | 28 | static inline void 29 | rte_rwlock_write_unlock_tm(rte_rwlock_t *rwl) 30 | { 31 | rte_rwlock_write_unlock(rwl); 32 | } 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif /* _RTE_RWLOCK_PPC_64_H_ */ 39 | -------------------------------------------------------------------------------- /lib/librte_eal/linuxapp/kni/compat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Minimal wrappers to allow compiling kni on older kernels. 3 | */ 4 | 5 | #ifndef RHEL_RELEASE_VERSION 6 | #define RHEL_RELEASE_VERSION(a, b) (((a) << 8) + (b)) 7 | #endif 8 | 9 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && \ 10 | (!(defined(RHEL_RELEASE_CODE) && \ 11 | RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 4))) 12 | 13 | #define kstrtoul strict_strtoul 14 | 15 | #endif /* < 2.6.39 */ 16 | 17 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35) 18 | 19 | #define sk_sleep(s) (s)->sk_sleep 20 | 21 | #endif /* < 2.6.35 */ 22 | 23 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) 24 | #define HAVE_IOV_ITER_MSGHDR 25 | #endif 26 | 27 | #if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) ) 28 | #define HAVE_KIOCB_MSG_PARAM 29 | #endif /* < 4.1.0 */ 30 | -------------------------------------------------------------------------------- /lib/librte_pipeline/rte_pipeline_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | rte_pipeline_check; 5 | rte_pipeline_create; 6 | rte_pipeline_flush; 7 | rte_pipeline_free; 8 | rte_pipeline_port_in_connect_to_table; 9 | rte_pipeline_port_in_create; 10 | rte_pipeline_port_in_disable; 11 | rte_pipeline_port_in_enable; 12 | rte_pipeline_port_out_create; 13 | rte_pipeline_port_out_packet_insert; 14 | rte_pipeline_run; 15 | rte_pipeline_table_create; 16 | rte_pipeline_table_default_entry_add; 17 | rte_pipeline_table_default_entry_delete; 18 | rte_pipeline_table_entry_add; 19 | rte_pipeline_table_entry_delete; 20 | 21 | local: *; 22 | }; 23 | 24 | DPDK_2.1 { 25 | global: 26 | 27 | rte_pipeline_port_in_stats_read; 28 | rte_pipeline_port_out_stats_read; 29 | rte_pipeline_table_stats_read; 30 | 31 | } DPDK_2.0; 32 | -------------------------------------------------------------------------------- /drivers/net/bnx2x/Makefile: -------------------------------------------------------------------------------- 1 | include $(RTE_SDK)/mk/rte.vars.mk 2 | 3 | # 4 | # library name 5 | # 6 | LIB = librte_pmd_bnx2x.a 7 | 8 | CFLAGS += -O3 -g 9 | CFLAGS += $(WERROR_FLAGS) 10 | CFLAGS += -DZLIB_CONST 11 | 12 | EXPORT_MAP := rte_pmd_bnx2x_version.map 13 | 14 | LIBABIVER := 1 15 | 16 | # 17 | # all source are stored in SRCS-y 18 | # 19 | SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x.c 20 | SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x_rxtx.c 21 | SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x_stats.c 22 | SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x_ethdev.c 23 | SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += ecore_sp.c 24 | SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += elink.c 25 | SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x_vfpf.c 26 | SRCS-$(CONFIG_RTE_LIBRTE_BNX2X_DEBUG) += debug.c 27 | 28 | # this lib depends upon: 29 | DEPDIRS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += lib/librte_eal lib/librte_ether lib/librte_hash 30 | DEPDIRS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += lib/librte_mempool lib/librte_mbuf 31 | 32 | include $(RTE_SDK)/mk/rte.lib.mk 33 | -------------------------------------------------------------------------------- /doc/build-sdk-quick.txt: -------------------------------------------------------------------------------- 1 | Basic build 2 | make config T=x86_64-native-linuxapp-gcc && make 3 | Build commands 4 | config get configuration from target template (T=) 5 | all same as build (default rule) 6 | build build in a configured directory 7 | clean remove files but keep configuration 8 | install build many targets (wildcard allowed) and install in DESTDIR 9 | uninstall remove all installed targets 10 | examples build examples for given targets (T=) 11 | examples_clean clean examples for given targets (T=) 12 | Build variables 13 | EXTRA_CPPFLAGS preprocessor options 14 | EXTRA_CFLAGS compiler options 15 | EXTRA_LDFLAGS linker options 16 | EXTRA_LDLIBS linker library options 17 | RTE_KERNELDIR linux headers path 18 | CROSS toolchain prefix 19 | V verbose 20 | D debug dependencies 21 | O build directory (default: build/ - install default: ./) 22 | DESTDIR second-stage install directory 23 | T target template (install default: *) - used with config or install 24 | format: 25 | templates in config/defconfig_* 26 | -------------------------------------------------------------------------------- /examples/dpdk_qat/config_files/coleto/dh895xcc_qa_dev0.conf: -------------------------------------------------------------------------------- 1 | [GENERAL] 2 | ServicesEnabled = cy;dc 3 | ConfigVersion = 2 4 | cyHmacAuthMode = 1 5 | dcTotalSRAMAvailable = 0 6 | Firmware_MofPath = dh895xcc/mof_firmware.bin 7 | Firmware_MmpPath = dh895xcc/mmp_firmware.bin 8 | statsGeneral = 1 9 | statsDc = 1 10 | statsDh = 1 11 | statsDrbg = 1 12 | statsDsa = 1 13 | statsEcc = 1 14 | statsKeyGen = 1 15 | statsLn = 1 16 | statsPrime = 1 17 | statsRsa = 1 18 | statsSym = 1 19 | SRIOV_Enabled = 0 20 | ProcDebug = 1 21 | 22 | [KERNEL] 23 | NumberCyInstances = 0 24 | NumberDcInstances = 0 25 | 26 | [SSL] 27 | NumberCyInstances = 8 28 | NumberDcInstances = 0 29 | NumProcesses = 1 30 | LimitDevAccess = 0 31 | 32 | Cy0Name = "SSL0" 33 | Cy0IsPolled = 1 34 | Cy0CoreAffinity = 0 35 | 36 | Cy1Name = "SSL1" 37 | Cy1IsPolled = 1 38 | Cy1CoreAffinity = 1 39 | 40 | Cy2Name = "SSL2" 41 | Cy2IsPolled = 1 42 | Cy2CoreAffinity = 2 43 | 44 | Cy3Name = "SSL3" 45 | Cy3IsPolled = 1 46 | Cy3CoreAffinity = 3 47 | 48 | 49 | Cy4Name = "SSL4" 50 | Cy4IsPolled = 1 51 | Cy4CoreAffinity = 4 52 | 53 | 54 | Cy5Name = "SSL5" 55 | Cy5IsPolled = 1 56 | Cy5CoreAffinity = 5 57 | 58 | Cy6Name = "SSL6" 59 | Cy6IsPolled = 1 60 | Cy6CoreAffinity = 6 61 | 62 | 63 | Cy7Name = "SSL7" 64 | Cy7IsPolled = 1 65 | Cy7CoreAffinity = 7 66 | -------------------------------------------------------------------------------- /lib/librte_eal/linuxapp/kni/ethtool/igb/igb_debugfs.c: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | 3 | Intel(R) Gigabit Ethernet Linux driver 4 | Copyright(c) 2007-2013 Intel Corporation. 5 | 6 | This program is free software; you can redistribute it and/or modify it 7 | under the terms and conditions of the GNU General Public License, 8 | version 2, as published by the Free Software Foundation. 9 | 10 | This program is distributed in the hope it will be useful, but WITHOUT 11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 | more details. 14 | 15 | You should have received a copy of the GNU General Public License along with 16 | this program; if not, write to the Free Software Foundation, Inc., 17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 18 | 19 | The full GNU General Public License is included in this distribution in 20 | the file called "COPYING". 21 | 22 | Contact Information: 23 | e1000-devel Mailing List 24 | Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 25 | 26 | *******************************************************************************/ 27 | 28 | #include "igb.h" 29 | -------------------------------------------------------------------------------- /drivers/net/enic/LICENSE: -------------------------------------------------------------------------------- 1 | * Copyright (c) 2014, Cisco Systems, Inc. 2 | * All rights reserved. 3 | * 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions 6 | * are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 11 | * 2. Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in 13 | * the documentation and/or other materials provided with the 14 | * distribution. 15 | * 16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 19 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 20 | * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 22 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 24 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 26 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | * POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /drivers/net/bnx2x/bnx2x_logs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2015 Brocade Communications Systems, Inc. 3 | * 4 | * All rights reserved. 5 | */ 6 | 7 | #ifndef _PMD_LOGS_H_ 8 | #define _PMD_LOGS_H_ 9 | 10 | #define PMD_INIT_LOG(level, fmt, args...) \ 11 | RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ##args) 12 | 13 | #ifdef RTE_LIBRTE_BNX2X_DEBUG_INIT 14 | #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") 15 | #else 16 | #define PMD_INIT_FUNC_TRACE() do { } while(0) 17 | #endif 18 | 19 | #ifdef RTE_LIBRTE_BNX2X_DEBUG_RX 20 | #define PMD_RX_LOG(level, fmt, args...) \ 21 | RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) 22 | #else 23 | #define PMD_RX_LOG(level, fmt, args...) do { } while(0) 24 | #endif 25 | 26 | #ifdef RTE_LIBRTE_BNX2X_DEBUG_TX 27 | #define PMD_TX_LOG(level, fmt, args...) \ 28 | RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) 29 | #else 30 | #define PMD_TX_LOG(level, fmt, args...) do { } while(0) 31 | #endif 32 | 33 | #ifdef RTE_LIBRTE_BNX2X_DEBUG_TX_FREE 34 | #define PMD_TX_FREE_LOG(level, fmt, args...) \ 35 | RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) 36 | #else 37 | #define PMD_TX_FREE_LOG(level, fmt, args...) do { } while(0) 38 | #endif 39 | 40 | #ifdef RTE_LIBRTE_BNX2X_DEBUG 41 | #define PMD_DRV_LOG_RAW(level, fmt, args...) \ 42 | RTE_LOG(level, PMD, "%s(): " fmt, __func__, ## args) 43 | #else 44 | #define PMD_DRV_LOG_RAW(level, fmt, args...) do { } while (0) 45 | #endif 46 | 47 | #define PMD_DRV_LOG(level, fmt, args...) \ 48 | PMD_DRV_LOG_RAW(level, fmt "\n", ## args) 49 | 50 | #endif /* _PMD_LOGS_H_ */ 51 | -------------------------------------------------------------------------------- /mk/internal/rte.depdirs-pre.mk: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | # nothing 33 | -------------------------------------------------------------------------------- /doc/api/doxy-html-custom.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh -e 2 | 3 | # BSD LICENSE 4 | # 5 | # Copyright 2013 6WIND S.A. 6 | # 7 | # Redistribution and use in source and binary forms, with or without 8 | # modification, are permitted provided that the following conditions 9 | # are met: 10 | # 11 | # * Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # * Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in 15 | # the documentation and/or other materials provided with the 16 | # distribution. 17 | # * Neither the name of 6WIND S.A. nor the names of its 18 | # contributors may be used to endorse or promote products derived 19 | # from this software without specific prior written permission. 20 | # 21 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | 33 | CSS=$1 34 | 35 | # space between item and its comment 36 | echo 'dd td:first-child {padding-right: 2em;}' >> $CSS 37 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | .error Error please compile using GNU Make (gmake) 33 | 34 | -------------------------------------------------------------------------------- /lib/librte_cmdline/rte_cmdline_version.map: -------------------------------------------------------------------------------- 1 | DPDK_2.0 { 2 | global: 3 | 4 | cirbuf_add_buf_head; 5 | cirbuf_add_buf_tail; 6 | cirbuf_add_head; 7 | cirbuf_add_head_safe; 8 | cirbuf_add_tail; 9 | cirbuf_add_tail_safe; 10 | cirbuf_align_left; 11 | cirbuf_align_right; 12 | cirbuf_del_buf_head; 13 | cirbuf_del_buf_tail; 14 | cirbuf_del_head; 15 | cirbuf_del_head_safe; 16 | cirbuf_del_tail; 17 | cirbuf_del_tail_safe; 18 | cirbuf_get_buf_head; 19 | cirbuf_get_buf_tail; 20 | cirbuf_get_head; 21 | cirbuf_get_tail; 22 | cirbuf_init; 23 | cmdline_complete; 24 | cmdline_complete_get_elt_string; 25 | cmdline_complete_get_nb_string; 26 | cmdline_file_new; 27 | cmdline_free; 28 | cmdline_get_help_etheraddr; 29 | cmdline_get_help_ipaddr; 30 | cmdline_get_help_num; 31 | cmdline_get_help_portlist; 32 | cmdline_get_help_string; 33 | cmdline_in; 34 | cmdline_interact; 35 | cmdline_isendoftoken; 36 | cmdline_new; 37 | cmdline_parse; 38 | cmdline_parse_etheraddr; 39 | cmdline_parse_ipaddr; 40 | cmdline_parse_num; 41 | cmdline_parse_portlist; 42 | cmdline_parse_string; 43 | cmdline_printf; 44 | cmdline_quit; 45 | cmdline_set_prompt; 46 | cmdline_stdin_exit; 47 | cmdline_stdin_new; 48 | cmdline_token_etheraddr_ops; 49 | cmdline_token_ipaddr_ops; 50 | cmdline_token_num_ops; 51 | cmdline_token_portlist_ops; 52 | cmdline_token_string_ops; 53 | cmdline_token_string_ops; 54 | cmdline_write_char; 55 | rdline_add_history; 56 | rdline_char_in; 57 | rdline_clear_history; 58 | rdline_get_buffer; 59 | rdline_get_history_item; 60 | rdline_init; 61 | rdline_newline; 62 | rdline_quit; 63 | rdline_redisplay; 64 | rdline_reset; 65 | rdline_restart; 66 | rdline_stop; 67 | vt100_init; 68 | vt100_parser; 69 | 70 | local: *; 71 | }; 72 | 73 | DPDK_2.1 { 74 | global: 75 | 76 | cmdline_poll; 77 | 78 | } DPDK_2.0; 79 | -------------------------------------------------------------------------------- /mk/internal/rte.clean-pre.mk: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | _CLEAN_TARGETS := _preclean _clean _postclean 33 | -------------------------------------------------------------------------------- /drivers/net/vmxnet3/base/vmware_pack_begin.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | -------------------------------------------------------------------------------- /drivers/net/vmxnet3/base/vmware_pack_end.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | -------------------------------------------------------------------------------- /mk/internal/rte.compile-post.mk: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | # no rule no build these files 33 | $(DEPS-y) $(CMDS-y): 34 | -------------------------------------------------------------------------------- /mk/exec-env/bsdapp/rte.app.mk: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | exec-env-appinstall: 33 | @true 34 | 35 | exec-env-appclean: 36 | @true 37 | -------------------------------------------------------------------------------- /mk/exec-env/linuxapp/rte.app.mk: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | exec-env-appinstall: 33 | @true 34 | 35 | exec-env-appclean: 36 | @true 37 | -------------------------------------------------------------------------------- /app/test/test_table_acl.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | /* Test prototypes */ 35 | int test_table_ACL(void); 36 | -------------------------------------------------------------------------------- /drivers/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2015 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | include $(RTE_SDK)/mk/rte.vars.mk 33 | 34 | DIRS-y += net 35 | 36 | include $(RTE_SDK)/mk/rte.subdir.mk 37 | -------------------------------------------------------------------------------- /app/test/test_table_pipeline.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | /* Test prototypes */ 35 | int test_table_pipeline(void); 36 | -------------------------------------------------------------------------------- /doc/guides/xen/index.rst: -------------------------------------------------------------------------------- 1 | .. BSD LICENSE 2 | Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions 7 | are met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in 13 | the documentation and/or other materials provided with the 14 | distribution. 15 | * Neither the name of Intel Corporation nor the names of its 16 | contributors may be used to endorse or promote products derived 17 | from this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | Xen Guide 32 | ========= 33 | 34 | |today| 35 | 36 | **Contents** 37 | 38 | .. toctree:: 39 | :maxdepth: 2 40 | :numbered: 41 | 42 | pkt_switch 43 | -------------------------------------------------------------------------------- /lib/librte_eal/bsdapp/contigmem/BSDmakefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | # 32 | 33 | KMOD= contigmem 34 | SRCS= contigmem.c device_if.h bus_if.h 35 | 36 | .include 37 | -------------------------------------------------------------------------------- /lib/librte_eal/bsdapp/nic_uio/BSDmakefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | # 32 | 33 | KMOD= nic_uio 34 | SRCS= nic_uio.c device_if.h bus_if.h pci_if.h 35 | 36 | .include 37 | -------------------------------------------------------------------------------- /mk/arch/tile/rte.vars.mk: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright (C) EZchip Semiconductor Ltd. 2015. 4 | # 5 | # Redistribution and use in source and binary forms, with or without 6 | # modification, are permitted provided that the following conditions 7 | # are met: 8 | # 9 | # * Redistributions of source code must retain the above copyright 10 | # notice, this list of conditions and the following disclaimer. 11 | # * Redistributions in binary form must reproduce the above copyright 12 | # notice, this list of conditions and the following disclaimer in 13 | # the documentation and/or other materials provided with the 14 | # distribution. 15 | # * Neither the name of EZchip Semiconductor nor the names of its 16 | # contributors may be used to endorse or promote products derived 17 | # from this software without specific prior written permission. 18 | # 19 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | 32 | ARCH ?= tile 33 | CROSS ?= tile- 34 | 35 | CPU_CFLAGS ?= 36 | CPU_LDFLAGS ?= 37 | CPU_ASFLAGS ?= 38 | 39 | export ARCH CROSS CPU_CFLAGS CPU_LDFLAGS CPU_ASFLAGS 40 | -------------------------------------------------------------------------------- /lib/librte_malloc/rte_malloc_empty.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2015 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | /* Empty file to be able to create a dummy library for deprecation policy */ 35 | -------------------------------------------------------------------------------- /mk/internal/rte.build-pre.mk: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | _BUILD_TARGETS := _prebuild _build _postbuild 33 | 34 | comma := , 35 | linkerprefix = $(subst -Wl$(comma)-L,-L,$(addprefix -Wl$(comma),$1)) 36 | -------------------------------------------------------------------------------- /mk/arch/ppc_64/rte.vars.mk: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright (C) IBM Corporation 2014. 4 | # 5 | # Redistribution and use in source and binary forms, with or without 6 | # modification, are permitted provided that the following conditions 7 | # are met: 8 | # 9 | # * Redistributions of source code must retain the above copyright 10 | # notice, this list of conditions and the following disclaimer. 11 | # * Redistributions in binary form must reproduce the above copyright 12 | # notice, this list of conditions and the following disclaimer in 13 | # the documentation and/or other materials provided with the 14 | # distribution. 15 | # * Neither the name of IBM Corporation nor the names of its 16 | # contributors may be used to endorse or promote products derived 17 | # from this software without specific prior written permission. 18 | # 19 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | 32 | ARCH ?= powerpc 33 | CROSS ?= 34 | 35 | CPU_CFLAGS ?= -m64 -DRTE_CACHE_LINE_SIZE=128 36 | CPU_LDFLAGS ?= 37 | CPU_ASFLAGS ?= -felf64 38 | 39 | export ARCH CROSS CPU_CFLAGS CPU_LDFLAGS CPU_ASFLAGS 40 | -------------------------------------------------------------------------------- /examples/bond/main.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2015 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef _MAIN_H_ 35 | #define _MAIN_H_ 36 | 37 | int main(int argc, char *argv[]); 38 | 39 | #endif /* ifndef _MAIN_H_ */ 40 | -------------------------------------------------------------------------------- /doc/guides/testpmd_app_ug/overview.rst: -------------------------------------------------------------------------------- 1 | .. BSD LICENSE 2 | Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions 7 | are met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in 13 | the documentation and/or other materials provided with the 14 | distribution. 15 | * Neither the name of Intel Corporation nor the names of its 16 | contributors may be used to endorse or promote products derived 17 | from this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | Overview 32 | ======== 33 | 34 | The following sections show how to build and run the testpmd application and 35 | how to configure the application from the command line and the run-time environment. 36 | -------------------------------------------------------------------------------- /lib/librte_compat/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2013 Neil Horman 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | include $(RTE_SDK)/mk/rte.vars.mk 33 | 34 | 35 | LIBABIVER := 1 36 | 37 | # install includes 38 | SYMLINK-y-include := rte_compat.h 39 | 40 | include $(RTE_SDK)/mk/rte.install.mk 41 | -------------------------------------------------------------------------------- /app/cmdline_test/cmdline_test.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef _CMDLINE_TEST_H_ 35 | #define _CMDLINE_TEST_H_ 36 | 37 | extern cmdline_parse_ctx_t main_ctx[]; 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /examples/cmdline/commands.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef _COMMANDS_H_ 35 | #define _COMMANDS_H_ 36 | 37 | extern cmdline_parse_ctx_t main_ctx[]; 38 | 39 | #endif /* _COMMANDS_H_ */ 40 | -------------------------------------------------------------------------------- /lib/librte_vhost/vhost_cuse/eventfd_copy.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | #ifndef _EVENTFD_H 34 | #define _EVENTFD_H 35 | 36 | int 37 | eventfd_copy(int target_fd, int target_pid); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /doc/guides/faq/index.rst: -------------------------------------------------------------------------------- 1 | .. BSD LICENSE 2 | Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions 7 | are met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in 13 | the documentation and/or other materials provided with the 14 | distribution. 15 | * Neither the name of Intel Corporation nor the names of its 16 | contributors may be used to endorse or promote products derived 17 | from this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | DPDK FAQ 32 | ======== 33 | 34 | This document contains some Frequently Asked Questions that arise when working with DPDK. 35 | 36 | Contents 37 | 38 | .. toctree:: 39 | :maxdepth: 2 40 | :numbered: 41 | 42 | faq 43 | -------------------------------------------------------------------------------- /drivers/net/vmxnet3/base/includeCheck.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef _INCLUDECHECK_H 35 | #define _INCLUDECHECK_H 36 | 37 | #include "vmxnet3_osdep.h" 38 | 39 | #endif /* _INCLUDECHECK_H */ 40 | 41 | -------------------------------------------------------------------------------- /examples/quota_watermark/qwctl/qwctl.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef _MAIN_H_ 35 | #define _MAIN_H_ 36 | 37 | extern int *quota; 38 | extern unsigned int *low_watermark; 39 | 40 | #endif /* _MAIN_H_ */ 41 | -------------------------------------------------------------------------------- /lib/librte_vhost/eventfd_link/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | obj-m += eventfd_link.o 33 | 34 | 35 | all: 36 | make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules 37 | 38 | clean: 39 | make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean 40 | -------------------------------------------------------------------------------- /lib/librte_power/rte_power_common.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef RTE_POWER_COMMON_H_ 35 | #define RTE_POWER_COMMON_H_ 36 | 37 | #define RTE_POWER_INVALID_FREQ_INDEX (~0) 38 | 39 | #endif /* RTE_POWER_COMMON_H_ */ 40 | -------------------------------------------------------------------------------- /GNUmakefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2015 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | # 33 | # Head Makefile for compiling rte SDK 34 | # 35 | 36 | RTE_SDK := $(CURDIR) 37 | export RTE_SDK 38 | 39 | # 40 | # directory list 41 | # 42 | 43 | ROOTDIRS-y := lib drivers app 44 | 45 | include $(RTE_SDK)/mk/rte.sdkroot.mk 46 | -------------------------------------------------------------------------------- /config/defconfig_x86_64-native-bsdapp-gcc: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | # 32 | 33 | #include "common_bsdapp" 34 | 35 | CONFIG_RTE_MACHINE="native" 36 | 37 | CONFIG_RTE_ARCH="x86_64" 38 | CONFIG_RTE_ARCH_X86_64=y 39 | 40 | CONFIG_RTE_TOOLCHAIN="gcc" 41 | CONFIG_RTE_TOOLCHAIN_GCC=y 42 | -------------------------------------------------------------------------------- /examples/quota_watermark/qw/args.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef _ARGS_H_ 35 | #define _ARGS_H_ 36 | 37 | extern unsigned int portmask; 38 | 39 | int parse_qw_args(int argc, char **argv); 40 | 41 | #endif /* _ARGS_H_ */ 42 | -------------------------------------------------------------------------------- /config/defconfig_x86_64-native-bsdapp-clang: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | # 32 | 33 | #include "common_bsdapp" 34 | 35 | CONFIG_RTE_MACHINE="native" 36 | 37 | CONFIG_RTE_ARCH="x86_64" 38 | CONFIG_RTE_ARCH_X86_64=y 39 | 40 | CONFIG_RTE_TOOLCHAIN="clang" 41 | CONFIG_RTE_TOOLCHAIN_CLANG=y 42 | -------------------------------------------------------------------------------- /examples/multi_process/client_server_mp/mp_server/args.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef _ARGS_H_ 35 | #define _ARGS_H_ 36 | 37 | int parse_app_args(uint8_t max_ports, int argc, char *argv[]); 38 | 39 | #endif /* ifndef _ARGS_H_ */ 40 | -------------------------------------------------------------------------------- /examples/quota_watermark/qwctl/commands.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef _COMMANDS_H_ 35 | #define _COMMANDS_H_ 36 | 37 | #include 38 | 39 | extern cmdline_parse_ctx_t qwctl_ctx[]; 40 | 41 | #endif /* _COMMANDS_H_ */ 42 | -------------------------------------------------------------------------------- /doc/guides/testpmd_app_ug/index.rst: -------------------------------------------------------------------------------- 1 | .. BSD LICENSE 2 | Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions 7 | are met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in 13 | the documentation and/or other materials provided with the 14 | distribution. 15 | * Neither the name of Intel Corporation nor the names of its 16 | contributors may be used to endorse or promote products derived 17 | from this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | Testpmd Application User Guide 32 | ============================== 33 | 34 | |today| 35 | 36 | **Contents** 37 | 38 | .. toctree:: 39 | :maxdepth: 3 40 | :numbered: 41 | 42 | intro 43 | overview 44 | build_app 45 | run_app 46 | testpmd_funcs 47 | -------------------------------------------------------------------------------- /drivers/net/mpipe/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2015 EZchip Semiconductor Ltd. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions 6 | # are met: 7 | # 8 | # 1. Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # 11 | # 2. Redistributions in binary form must reproduce the above copyright 12 | # notice, this list of conditions and the following disclaimer in 13 | # the documentation and/or other materials provided with the 14 | # distribution. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 19 | # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 20 | # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 22 | # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 24 | # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 26 | # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | # POSSIBILITY OF SUCH DAMAGE. 28 | 29 | include $(RTE_SDK)/mk/rte.vars.mk 30 | 31 | # library name 32 | LIB = librte_pmd_mpipe.a 33 | 34 | CFLAGS += $(WERROR_FLAGS) -O3 35 | 36 | EXPORT_MAP := rte_pmd_mpipe_version.map 37 | 38 | LIBABIVER := 1 39 | 40 | SRCS-$(CONFIG_RTE_LIBRTE_MPIPE_PMD) += mpipe_tilegx.c 41 | 42 | DEPDIRS-$(CONFIG_RTE_LIBRTE_MPIPE_PMD) += lib/librte_eal lib/librte_ether 43 | DEPDIRS-$(CONFIG_RTE_LIBRTE_MPIPE_PMD) += lib/librte_mempool lib/librte_mbuf 44 | DEPDIRS-$(CONFIG_RTE_LIBRTE_MPIPE_PMD) += lib/librte_net lib/librte_malloc 45 | 46 | include $(RTE_SDK)/mk/rte.lib.mk 47 | -------------------------------------------------------------------------------- /lib/librte_eal/bsdapp/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | include $(RTE_SDK)/mk/rte.vars.mk 33 | 34 | DIRS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal 35 | DIRS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += contigmem 36 | DIRS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += nic_uio 37 | 38 | include $(RTE_SDK)/mk/rte.subdir.mk 39 | -------------------------------------------------------------------------------- /config/defconfig_x86_64-native-linuxapp-gcc: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | # 32 | 33 | #include "common_linuxapp" 34 | 35 | CONFIG_RTE_MACHINE="native" 36 | 37 | CONFIG_RTE_ARCH="x86_64" 38 | CONFIG_RTE_ARCH_X86_64=y 39 | CONFIG_RTE_ARCH_64=y 40 | 41 | CONFIG_RTE_TOOLCHAIN="gcc" 42 | CONFIG_RTE_TOOLCHAIN_GCC=y 43 | -------------------------------------------------------------------------------- /config/defconfig_x86_64-native-linuxapp-icc: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | # 32 | 33 | #include "common_linuxapp" 34 | 35 | CONFIG_RTE_MACHINE="native" 36 | 37 | CONFIG_RTE_ARCH="x86_64" 38 | CONFIG_RTE_ARCH_X86_64=y 39 | CONFIG_RTE_ARCH_64=y 40 | 41 | CONFIG_RTE_TOOLCHAIN="icc" 42 | CONFIG_RTE_TOOLCHAIN_ICC=y 43 | -------------------------------------------------------------------------------- /config/defconfig_x86_64-native-linuxapp-clang: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | # 32 | 33 | #include "common_linuxapp" 34 | 35 | CONFIG_RTE_MACHINE="native" 36 | 37 | CONFIG_RTE_ARCH="x86_64" 38 | CONFIG_RTE_ARCH_X86_64=y 39 | CONFIG_RTE_ARCH_64=y 40 | 41 | CONFIG_RTE_TOOLCHAIN="clang" 42 | CONFIG_RTE_TOOLCHAIN_CLANG=y 43 | -------------------------------------------------------------------------------- /examples/ip_pipeline/pipeline/pipeline_master.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2015 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef __INCLUDE_PIPELINE_MASTER_H__ 35 | #define __INCLUDE_PIPELINE_MASTER_H__ 36 | 37 | #include "pipeline.h" 38 | 39 | extern struct pipeline_type pipeline_master; 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /mk/internal/rte.depdirs-post.mk: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | .PHONY: depdirs 33 | depdirs: 34 | @for d in $(DEPDIRS-y); do \ 35 | $(RTE_SDK)/scripts/depdirs-rule.sh $(S) $$d ; \ 36 | done 37 | 38 | .PHONY: depgraph 39 | depgraph: 40 | @for d in $(DEPDIRS-y); do \ 41 | echo " \"$(S)\" -> \"$$d\"" ; \ 42 | done 43 | -------------------------------------------------------------------------------- /doc/guides/freebsd_gsg/index.rst: -------------------------------------------------------------------------------- 1 | .. BSD LICENSE 2 | Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions 7 | are met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in 13 | the documentation and/or other materials provided with the 14 | distribution. 15 | * Neither the name of Intel Corporation nor the names of its 16 | contributors may be used to endorse or promote products derived 17 | from this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | .. _freebsd_gsg: 32 | 33 | Getting Started Guide for FreeBSD 34 | ================================= 35 | 36 | |today| 37 | 38 | **Contents** 39 | 40 | .. toctree:: 41 | :maxdepth: 2 42 | :numbered: 43 | 44 | intro 45 | install_from_ports 46 | build_dpdk 47 | build_sample_apps 48 | -------------------------------------------------------------------------------- /doc/guides/rel_notes/index.rst: -------------------------------------------------------------------------------- 1 | .. BSD LICENSE 2 | Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions 7 | are met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in 13 | the documentation and/or other materials provided with the 14 | distribution. 15 | * Neither the name of Intel Corporation nor the names of its 16 | contributors may be used to endorse or promote products derived 17 | from this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | DPDK Release Notes 32 | ================== 33 | 34 | |today| 35 | 36 | Contents 37 | 38 | .. toctree:: 39 | :maxdepth: 1 40 | :numbered: 41 | 42 | rel_description 43 | release_2_1 44 | release_2_0 45 | release_1_8 46 | supported_os 47 | known_issues 48 | deprecation 49 | -------------------------------------------------------------------------------- /examples/ip_pipeline/pipeline/pipeline_passthrough.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2015 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef __INCLUDE_PIPELINE_PASSTHROUGH_H__ 35 | #define __INCLUDE_PIPELINE_PASSTHROUGH_H__ 36 | 37 | #include "pipeline.h" 38 | 39 | extern struct pipeline_type pipeline_passthrough; 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /lib/librte_net/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | include $(RTE_SDK)/mk/rte.vars.mk 33 | 34 | CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 35 | 36 | # install includes 37 | SYMLINK-$(CONFIG_RTE_LIBRTE_NET)-include := rte_ip.h rte_tcp.h rte_udp.h rte_sctp.h rte_icmp.h rte_arp.h 38 | 39 | 40 | include $(RTE_SDK)/mk/rte.install.mk 41 | -------------------------------------------------------------------------------- /app/proc_info/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2015 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | include $(RTE_SDK)/mk/rte.vars.mk 33 | 34 | APP = proc_info 35 | 36 | CFLAGS += $(WERROR_FLAGS) 37 | 38 | # all source are stored in SRCS-y 39 | 40 | SRCS-y := main.c 41 | 42 | # this application needs libraries first 43 | DEPDIRS-y += lib 44 | 45 | include $(RTE_SDK)/mk/rte.app.mk 46 | -------------------------------------------------------------------------------- /examples/ip_pipeline/pipeline/pipeline_master_be.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2015 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef __INCLUDE_PIPELINE_MASTER_BE_H__ 35 | #define __INCLUDE_PIPELINE_MASTER_BE_H__ 36 | 37 | #include "pipeline_common_be.h" 38 | 39 | extern struct pipeline_be_ops pipeline_master_be_ops; 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /app/test/test_table_ports.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | /* Test prototypes */ 35 | int test_port_ring_reader(void); 36 | int test_port_ring_writer(void); 37 | 38 | /* Extern variables */ 39 | typedef int (*port_test)(void); 40 | 41 | extern port_test port_tests[]; 42 | extern unsigned n_port_tests; 43 | -------------------------------------------------------------------------------- /doc/guides/linux_gsg/index.rst: -------------------------------------------------------------------------------- 1 | .. BSD LICENSE 2 | Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions 7 | are met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in 13 | the documentation and/or other materials provided with the 14 | distribution. 15 | * Neither the name of Intel Corporation nor the names of its 16 | contributors may be used to endorse or promote products derived 17 | from this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | .. _linux_gsg: 32 | 33 | Getting Started Guide for Linux 34 | =============================== 35 | 36 | |today| 37 | 38 | Contents 39 | 40 | .. toctree:: 41 | :maxdepth: 2 42 | :numbered: 43 | 44 | intro 45 | sys_reqs 46 | build_dpdk 47 | build_sample_apps 48 | enable_func 49 | quick_start 50 | -------------------------------------------------------------------------------- /lib/librte_eal/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | include $(RTE_SDK)/mk/rte.vars.mk 33 | 34 | DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += common 35 | DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += linuxapp 36 | DIRS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += common 37 | DIRS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += bsdapp 38 | 39 | include $(RTE_SDK)/mk/rte.subdir.mk 40 | -------------------------------------------------------------------------------- /examples/ip_pipeline/pipeline/pipeline_passthrough_be.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2015 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef __INCLUDE_PIPELINE_PASSTHROUGH_BE_H__ 35 | #define __INCLUDE_PIPELINE_PASSTHROUGH_BE_H__ 36 | 37 | #include "pipeline_common_be.h" 38 | 39 | extern struct pipeline_be_ops pipeline_passthrough_be_ops; 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /mk/target/generic/rte.app.mk: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | # 33 | # define Makefile targets that are specific to an environment. 34 | # 35 | include $(RTE_SDK)/mk/exec-env/$(RTE_EXEC_ENV)/rte.app.mk 36 | 37 | .PHONY: exec-env-appinstall 38 | target-appinstall: exec-env-appinstall 39 | 40 | .PHONY: exec-env-appclean 41 | target-appclean: exec-env-appclean 42 | -------------------------------------------------------------------------------- /lib/librte_vhost/virtio-net.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef _VIRTIO_NET_H 35 | #define _VIRTIO_NET_H 36 | 37 | #include "vhost-net.h" 38 | #include "rte_virtio_net.h" 39 | 40 | struct virtio_net_device_ops const *notify_ops; 41 | struct virtio_net *get_device(struct vhost_device_ctx ctx); 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /config/defconfig_x86_x32-native-linuxapp-gcc: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | # 32 | 33 | #include "common_linuxapp" 34 | 35 | CONFIG_RTE_MACHINE="native" 36 | 37 | CONFIG_RTE_ARCH="x86_x32" 38 | CONFIG_RTE_ARCH_X86_X32=y 39 | 40 | CONFIG_RTE_TOOLCHAIN="gcc" 41 | CONFIG_RTE_TOOLCHAIN_GCC=y 42 | 43 | # 44 | # KNI is not supported on 32-bit 45 | # 46 | CONFIG_RTE_LIBRTE_KNI=n 47 | -------------------------------------------------------------------------------- /examples/vm_power_manager/vm_power_cli.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef VM_POWER_CLI_H_ 35 | #define VM_POWER_CLI_H_ 36 | 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | void run_cli(__attribute__((unused)) void *arg); 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif 46 | 47 | #endif /* VM_POWER_CLI_H_ */ 48 | -------------------------------------------------------------------------------- /doc/guides/index.rst: -------------------------------------------------------------------------------- 1 | .. BSD LICENSE 2 | Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions 7 | are met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in 13 | the documentation and/or other materials provided with the 14 | distribution. 15 | * Neither the name of Intel Corporation nor the names of its 16 | contributors may be used to endorse or promote products derived 17 | from this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | DPDK documentation 32 | ================== 33 | 34 | Contents: 35 | 36 | .. toctree:: 37 | :maxdepth: 1 38 | :titlesonly: 39 | 40 | linux_gsg/index 41 | freebsd_gsg/index 42 | xen/index 43 | prog_guide/index 44 | nics/index 45 | sample_app_ug/index 46 | testpmd_app_ug/index 47 | faq/index 48 | rel_notes/index 49 | contributing/index 50 | -------------------------------------------------------------------------------- /examples/quota_watermark/qw/init.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef _INIT_H_ 35 | #define _INIT_H_ 36 | 37 | void configure_eth_port(uint8_t port_id); 38 | void init_dpdk(void); 39 | void init_ring(int lcore_id, uint8_t port_id); 40 | void pair_ports(void); 41 | void setup_shared_variables(void); 42 | 43 | #endif /* _INIT_H_ */ 44 | -------------------------------------------------------------------------------- /app/test-acl/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | include $(RTE_SDK)/mk/rte.vars.mk 33 | 34 | ifeq ($(CONFIG_RTE_LIBRTE_ACL),y) 35 | 36 | APP = testacl 37 | 38 | CFLAGS += $(WERROR_FLAGS) 39 | 40 | # all source are stored in SRCS-y 41 | SRCS-y := main.c 42 | 43 | # this application needs libraries first 44 | DEPDIRS-y += lib 45 | 46 | include $(RTE_SDK)/mk/rte.app.mk 47 | 48 | endif 49 | -------------------------------------------------------------------------------- /mk/toolchain/clang/rte.toolchain-compat.mk: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | # 33 | # CPUID-related options 34 | # 35 | # This was added to support compiler versions which might not support all the 36 | # flags we need 37 | # 38 | 39 | # find out CLANG version 40 | 41 | CLANG_MAJOR_VERSION = $(shell $(CC) -dumpversion | cut -f1 -d.) 42 | 43 | CLANG_MINOR_VERSION = $(shell $(CC) -dumpversion | cut -f2 -d.) 44 | -------------------------------------------------------------------------------- /scripts/cocci/mtod-offset.cocci: -------------------------------------------------------------------------------- 1 | // 2 | // Replace explicit packet offset computations with rte_pktmbuf_mtod_offset(). 3 | // 4 | @disable paren@ 5 | typedef uint8_t; 6 | expression M, O; 7 | @@ 8 | ( 9 | - rte_pktmbuf_mtod(M, char *) + O 10 | + rte_pktmbuf_mtod_offset(M, char *, O) 11 | | 12 | - rte_pktmbuf_mtod(M, char *) - O 13 | + rte_pktmbuf_mtod_offset(M, char *, -O) 14 | | 15 | - rte_pktmbuf_mtod(M, unsigned char *) + O 16 | + rte_pktmbuf_mtod_offset(M, unsigned char *, O) 17 | | 18 | - rte_pktmbuf_mtod(M, unsigned char *) - O 19 | + rte_pktmbuf_mtod_offset(M, unsigned char *, -O) 20 | | 21 | - rte_pktmbuf_mtod(M, uint8_t *) + O 22 | + rte_pktmbuf_mtod_offset(M, uint8_t *, O) 23 | | 24 | - rte_pktmbuf_mtod(M, uint8_t *) - O 25 | + rte_pktmbuf_mtod_offset(M, uint8_t *, -O) 26 | ) 27 | 28 | 29 | // 30 | // Fold subsequent offset terms into pre-existing offset used in 31 | // rte_pktmbuf_mtod_offset(). 32 | // 33 | @disable paren@ 34 | expression M, O1, O2; 35 | @@ 36 | ( 37 | - rte_pktmbuf_mtod_offset(M, char *, O1) + O2 38 | + rte_pktmbuf_mtod_offset(M, char *, O1 + O2) 39 | | 40 | - rte_pktmbuf_mtod_offset(M, char *, O1) - O2 41 | + rte_pktmbuf_mtod_offset(M, char *, O1 - O2) 42 | | 43 | - rte_pktmbuf_mtod_offset(M, unsigned char *, O1) + O2 44 | + rte_pktmbuf_mtod_offset(M, unsigned char *, O1 + O2) 45 | | 46 | - rte_pktmbuf_mtod_offset(M, unsigned char *, O1) - O2 47 | + rte_pktmbuf_mtod_offset(M, unsigned char *, O1 - O2) 48 | | 49 | - rte_pktmbuf_mtod_offset(M, uint8_t *, O1) + O2 50 | + rte_pktmbuf_mtod_offset(M, uint8_t *, O1 + O2) 51 | | 52 | - rte_pktmbuf_mtod_offset(M, uint8_t *, O1) - O2 53 | + rte_pktmbuf_mtod_offset(M, uint8_t *, O1 - O2) 54 | ) 55 | 56 | 57 | // 58 | // Cleanup rules. Fold in double casts, remove unnecessary paranthesis, etc. 59 | // 60 | @disable paren@ 61 | expression M, O; 62 | type C, T; 63 | @@ 64 | ( 65 | - (C)rte_pktmbuf_mtod_offset(M, T, O) 66 | + rte_pktmbuf_mtod_offset(M, C, O) 67 | | 68 | - (rte_pktmbuf_mtod_offset(M, T, O)) 69 | + rte_pktmbuf_mtod_offset(M, T, O) 70 | | 71 | - (C)rte_pktmbuf_mtod(M, T) 72 | + rte_pktmbuf_mtod(M, C) 73 | | 74 | - (rte_pktmbuf_mtod(M, T)) 75 | + rte_pktmbuf_mtod(M, T) 76 | ) 77 | -------------------------------------------------------------------------------- /scripts/test-null.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh -e 2 | 3 | # BSD LICENSE 4 | # 5 | # Copyright 2015 6WIND S.A. 6 | # 7 | # Redistribution and use in source and binary forms, with or without 8 | # modification, are permitted provided that the following conditions 9 | # are met: 10 | # 11 | # * Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # * Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in 15 | # the documentation and/or other materials provided with the 16 | # distribution. 17 | # * Neither the name of 6WIND S.A. nor the names of its 18 | # contributors may be used to endorse or promote products derived 19 | # from this software without specific prior written permission. 20 | # 21 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | 33 | # Run a quick testpmd forwarding with null PMD without hugepage 34 | 35 | build=${1:-build} 36 | coremask=${2:-3} # default using cores 0 and 1 37 | 38 | if grep -q SHARED_LIB=y $build/.config; then 39 | export LD_LIBRARY_PATH=$build/lib:$LD_LIBRARY_PATH 40 | pmd='-d librte_pmd_null.so' 41 | fi 42 | 43 | (sleep 1 && echo stop) | 44 | $build/app/testpmd -c $coremask -n 1 --no-huge \ 45 | $pmd --vdev eth_null1 --vdev eth_null2 -- \ 46 | --total-num-mbufs=2048 -ia 47 | -------------------------------------------------------------------------------- /app/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | include $(RTE_SDK)/mk/rte.vars.mk 33 | 34 | DIRS-$(CONFIG_RTE_APP_TEST) += test 35 | DIRS-$(CONFIG_RTE_LIBRTE_ACL) += test-acl 36 | DIRS-$(CONFIG_RTE_LIBRTE_PIPELINE) += test-pipeline 37 | DIRS-$(CONFIG_RTE_TEST_PMD) += test-pmd 38 | DIRS-$(CONFIG_RTE_LIBRTE_CMDLINE) += cmdline_test 39 | DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += proc_info 40 | 41 | include $(RTE_SDK)/mk/rte.subdir.mk 42 | -------------------------------------------------------------------------------- /examples/l2fwd-ivshmem/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | ifeq ($(RTE_SDK),) 33 | $(error "Please define RTE_SDK environment variable") 34 | endif 35 | 36 | # Default target, can be overriden by command line or environment 37 | RTE_TARGET ?= x86_64-ivshmem-linuxapp-gcc 38 | 39 | include $(RTE_SDK)/mk/rte.vars.mk 40 | 41 | DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += host guest 42 | 43 | include $(RTE_SDK)/mk/rte.extsubdir.mk 44 | -------------------------------------------------------------------------------- /app/cmdline_test/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | include $(RTE_SDK)/mk/rte.vars.mk 33 | 34 | ifeq ($(CONFIG_RTE_LIBRTE_CMDLINE),y) 35 | 36 | # 37 | # library name 38 | # 39 | APP = cmdline_test 40 | 41 | # 42 | # all sources are stored in SRCS-y 43 | # 44 | SRCS-y += cmdline_test.c 45 | SRCS-y += commands.c 46 | 47 | CFLAGS += -O3 48 | CFLAGS += $(WERROR_FLAGS) 49 | 50 | include $(RTE_SDK)/mk/rte.app.mk 51 | 52 | endif 53 | -------------------------------------------------------------------------------- /doc/guides/rel_notes/rel_description.rst: -------------------------------------------------------------------------------- 1 | .. BSD LICENSE 2 | Copyright(c) 2010-2015 Intel Corporation. All rights reserved. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions 7 | are met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | * Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in 13 | the documentation and/or other materials provided with the 14 | distribution. 15 | * Neither the name of Intel Corporation nor the names of its 16 | contributors may be used to endorse or promote products derived 17 | from this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | 32 | Description of Release 33 | ====================== 34 | 35 | This document contains the release notes for Data Plane Development Kit (DPDK) 36 | release version |release| and previous releases. 37 | 38 | It lists new features, fixed bugs, API and ABI changes and known issues. 39 | 40 | For instructions on compiling and running the release, see the :ref:`DPDK Getting Started Guide `. 41 | -------------------------------------------------------------------------------- /examples/multi_process/simple_mp/mp_commands.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef _SIMPLE_MP_COMMANDS_H_ 35 | #define _SIMPLE_MP_COMMANDS_H_ 36 | 37 | extern const unsigned string_size; 38 | extern struct rte_ring *send_ring; 39 | extern struct rte_mempool *message_pool; 40 | extern volatile int quit; 41 | 42 | extern cmdline_parse_ctx_t simple_mp_ctx[]; 43 | 44 | #endif /* _SIMPLE_MP_COMMANDS_H_ */ 45 | -------------------------------------------------------------------------------- /scripts/gen-config-h.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # BSD LICENSE 4 | # 5 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 6 | # All rights reserved. 7 | # 8 | # Redistribution and use in source and binary forms, with or without 9 | # modification, are permitted provided that the following conditions 10 | # are met: 11 | # 12 | # * Redistributions of source code must retain the above copyright 13 | # notice, this list of conditions and the following disclaimer. 14 | # * Redistributions in binary form must reproduce the above copyright 15 | # notice, this list of conditions and the following disclaimer in 16 | # the documentation and/or other materials provided with the 17 | # distribution. 18 | # * Neither the name of Intel Corporation nor the names of its 19 | # contributors may be used to endorse or promote products derived 20 | # from this software without specific prior written permission. 21 | # 22 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 26 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | 34 | echo "#ifndef __RTE_CONFIG_H" 35 | echo "#define __RTE_CONFIG_H" 36 | grep CONFIG_ $1 | 37 | grep -v '^[ \t]*#' | 38 | sed 's,CONFIG_\(.*\)=y.*$,#undef \1\ 39 | #define \1 1,' | 40 | sed 's,CONFIG_\(.*\)=n.*$,#undef \1,' | 41 | sed 's,CONFIG_\(.*\)=\(.*\)$,#undef \1\ 42 | #define \1 \2,' | 43 | sed 's,\# CONFIG_\(.*\) is not set$,#undef \1,' 44 | echo "#endif /* __RTE_CONFIG_H */" 45 | -------------------------------------------------------------------------------- /config/defconfig_i686-native-linuxapp-gcc: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | # 32 | 33 | #include "common_linuxapp" 34 | 35 | CONFIG_RTE_MACHINE="native" 36 | 37 | CONFIG_RTE_ARCH="i686" 38 | CONFIG_RTE_ARCH_I686=y 39 | 40 | CONFIG_RTE_TOOLCHAIN="gcc" 41 | CONFIG_RTE_TOOLCHAIN_GCC=y 42 | 43 | # 44 | # KNI is not supported on 32-bit 45 | # 46 | CONFIG_RTE_LIBRTE_KNI=n 47 | 48 | # 49 | # Vectorized PMD is not supported on 32-bit 50 | # 51 | CONFIG_RTE_IXGBE_INC_VECTOR=n 52 | -------------------------------------------------------------------------------- /config/defconfig_i686-native-linuxapp-icc: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | # 32 | 33 | #include "common_linuxapp" 34 | 35 | CONFIG_RTE_MACHINE="native" 36 | 37 | CONFIG_RTE_ARCH="i686" 38 | CONFIG_RTE_ARCH_I686=y 39 | 40 | CONFIG_RTE_TOOLCHAIN="icc" 41 | CONFIG_RTE_TOOLCHAIN_ICC=y 42 | 43 | # 44 | # KNI is not supported on 32-bit 45 | # 46 | CONFIG_RTE_LIBRTE_KNI=n 47 | 48 | # 49 | # Vectorized PMD is not supported on 32-bit 50 | # 51 | CONFIG_RTE_IXGBE_INC_VECTOR=n 52 | -------------------------------------------------------------------------------- /examples/quota_watermark/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | ifeq ($(RTE_SDK),) 33 | $(error "Please define RTE_SDK environment variable") 34 | endif 35 | 36 | # Default target, can be overriden by command line or environment 37 | RTE_TARGET ?= x86_64-native-linuxapp-gcc 38 | 39 | include $(RTE_SDK)/mk/rte.vars.mk 40 | 41 | DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += qw 42 | DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += qwctl 43 | 44 | include $(RTE_SDK)/mk/rte.extsubdir.mk 45 | -------------------------------------------------------------------------------- /drivers/net/bnx2x/bnx2x_ethdev.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2015 Brocade Communications Systems, Inc. 3 | * 4 | * All rights reserved. 5 | */ 6 | 7 | #ifndef PMD_BNX2X_ETHDEV_H 8 | #define PMD_BNX2X_ETHDEV_H 9 | 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | 39 | #include "bnx2x_rxtx.h" 40 | #include "bnx2x_logs.h" 41 | 42 | #define DELAY(x) rte_delay_us(x) 43 | #define DELAY_MS(x) rte_delay_ms(x) 44 | #define usec_delay(x) DELAY(x) 45 | #define msec_delay(x) DELAY(1000*(x)) 46 | 47 | #define FALSE 0 48 | #define TRUE 1 49 | 50 | #define false 0 51 | #define true 1 52 | #define min(a,b) RTE_MIN(a,b) 53 | 54 | #define mb() rte_mb() 55 | #define wmb() rte_wmb() 56 | #define rmb() rte_rmb() 57 | 58 | 59 | #define MAX_QUEUES sysconf(_SC_NPROCESSORS_CONF) 60 | 61 | #define BNX2X_MIN_RX_BUF_SIZE 1024 62 | #define BNX2X_MAX_RX_PKT_LEN 15872 63 | #define BNX2X_MAX_MAC_ADDRS 1 64 | 65 | /* Hardware RX tick timer (usecs) */ 66 | #define BNX2X_RX_TICKS 25 67 | /* Hardware TX tick timer (usecs) */ 68 | #define BNX2X_TX_TICKS 50 69 | /* Maximum number of Rx packets to process at a time */ 70 | #define BNX2X_RX_BUDGET 0xffffffff 71 | 72 | #endif 73 | 74 | /* MAC address operations */ 75 | struct bnx2x_mac_ops { 76 | void (*mac_addr_add)(struct rte_eth_dev *dev, struct ether_addr *addr, 77 | uint16_t index, uint32_t pool); /* not implemented yet */ 78 | void (*mac_addr_remove)(struct rte_eth_dev *dev, uint16_t index); /* not implemented yet */ 79 | }; 80 | -------------------------------------------------------------------------------- /drivers/net/vmxnet3/base/vmxnet3_osdep.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef _VMXNET3_OSDEP_H 35 | #define _VMXNET3_OSDEP_H 36 | 37 | typedef uint64_t uint64; 38 | typedef uint32_t uint32; 39 | typedef uint16_t uint16; 40 | typedef uint8_t uint8; 41 | typedef int bool; 42 | typedef char Bool; 43 | 44 | #ifndef UNLIKELY 45 | #define UNLIKELY(x) __builtin_expect((x),0) 46 | #endif /* unlikely */ 47 | 48 | #endif /* _VMXNET3_OSDEP_H */ 49 | -------------------------------------------------------------------------------- /examples/quota_watermark/include/conf.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #ifndef _CONF_H_ 35 | #define _CONF_H_ 36 | 37 | #define RING_SIZE 1024 38 | #define MAX_PKT_QUOTA 64 39 | 40 | #define RX_DESC_PER_QUEUE 128 41 | #define TX_DESC_PER_QUEUE 512 42 | 43 | #define MBUF_DATA_SIZE RTE_MBUF_DEFAULT_BUF_SIZE 44 | #define MBUF_PER_POOL 8192 45 | 46 | #define QUOTA_WATERMARK_MEMZONE_NAME "qw_global_vars" 47 | 48 | #endif /* _CONF_H_ */ 49 | -------------------------------------------------------------------------------- /examples/ip_pipeline/pipeline/pipeline_master.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * BSD LICENSE 3 | * 4 | * Copyright(c) 2010-2015 Intel Corporation. All rights reserved. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in 15 | * the documentation and/or other materials provided with the 16 | * distribution. 17 | * * Neither the name of Intel Corporation nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | */ 33 | 34 | #include "pipeline_master.h" 35 | #include "pipeline_master_be.h" 36 | 37 | static struct pipeline_fe_ops pipeline_master_fe_ops = { 38 | .f_init = NULL, 39 | .f_free = NULL, 40 | .cmds = NULL, 41 | }; 42 | 43 | struct pipeline_type pipeline_master = { 44 | .name = "MASTER", 45 | .be_ops = &pipeline_master_be_ops, 46 | .fe_ops = &pipeline_master_fe_ops, 47 | }; 48 | -------------------------------------------------------------------------------- /examples/multi_process/client_server_mp/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | ifeq ($(RTE_SDK),) 33 | $(error "Please define RTE_SDK environment variable") 34 | endif 35 | 36 | # Default target, can be overriden by command line or environment 37 | RTE_TARGET ?= x86_64-native-linuxapp-gcc 38 | 39 | include $(RTE_SDK)/mk/rte.vars.mk 40 | 41 | DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += mp_client 42 | DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += mp_server 43 | 44 | include $(RTE_SDK)/mk/rte.extsubdir.mk 45 | -------------------------------------------------------------------------------- /lib/librte_kvargs/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright 2014 6WIND S.A. 4 | # 5 | # Redistribution and use in source and binary forms, with or without 6 | # modification, are permitted provided that the following conditions 7 | # are met: 8 | # 9 | # - Redistributions of source code must retain the above copyright 10 | # notice, this list of conditions and the following disclaimer. 11 | # 12 | # - Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # 17 | # - Neither the name of 6WIND S.A. nor the names of its 18 | # contributors may be used to endorse or promote products derived 19 | # from this software without specific prior written permission. 20 | # 21 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 24 | # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 25 | # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 26 | # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 27 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 28 | # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 | # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 30 | # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 31 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 32 | # OF THE POSSIBILITY OF SUCH DAMAGE. 33 | 34 | include $(RTE_SDK)/mk/rte.vars.mk 35 | 36 | # library name 37 | LIB = librte_kvargs.a 38 | 39 | CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 40 | 41 | EXPORT_MAP := rte_kvargs_version.map 42 | 43 | LIBABIVER := 1 44 | 45 | # all source are stored in SRCS-y 46 | SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) := rte_kvargs.c 47 | 48 | # install includes 49 | INCS := rte_kvargs.h 50 | SYMLINK-$(CONFIG_RTE_LIBRTE_KVARGS)-include := $(INCS) 51 | 52 | # this lib needs eal 53 | DEPDIRS-$(CONFIG_RTE_LIBRTE_KVARGS) += lib/librte_eal 54 | 55 | include $(RTE_SDK)/mk/rte.lib.mk 56 | -------------------------------------------------------------------------------- /lib/librte_malloc/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | include $(RTE_SDK)/mk/rte.vars.mk 32 | 33 | # library name 34 | LIB = librte_malloc.a 35 | 36 | LIBABIVER := 1 37 | 38 | CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 39 | 40 | EXPORT_MAP := rte_malloc_version.map 41 | 42 | # all source are stored in SRCS-y 43 | SRCS-$(CONFIG_RTE_LIBRTE_EAL) := rte_malloc_empty.c 44 | 45 | # this lib needs eal 46 | DEPDIRS-$(CONFIG_RTE_LIBRTE_EAL) += lib/librte_eal 47 | 48 | include $(RTE_SDK)/mk/rte.lib.mk 49 | -------------------------------------------------------------------------------- /drivers/net/e1000/base/README: -------------------------------------------------------------------------------- 1 | .. 2 | BSD LICENSE 3 | 4 | Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 5 | All rights reserved. 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in 15 | the documentation and/or other materials provided with the 16 | distribution. 17 | * Neither the name of Intel Corporation nor the names of its 18 | contributors may be used to endorse or promote products derived 19 | from this software without specific prior written permission. 20 | 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | 33 | This directory contains source code of FreeBSD em & igb drivers of version 34 | cid-shared-code.2014.04.21 released by LAD. The sub-directory of lad/ 35 | contains the original source package. 36 | 37 | Updating the driver 38 | =================== 39 | 40 | NOTE: The source code in this directory should not be modified apart from 41 | the following file(s): 42 | 43 | e1000_osdep.c 44 | e1000_osdep.h 45 | -------------------------------------------------------------------------------- /lib/librte_eal/linuxapp/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | include $(RTE_SDK)/mk/rte.vars.mk 33 | 34 | ifeq ($(CONFIG_RTE_EAL_IGB_UIO),y) 35 | DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += igb_uio 36 | endif 37 | DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal 38 | ifeq ($(CONFIG_RTE_KNI_KMOD),y) 39 | DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += kni 40 | endif 41 | ifeq ($(CONFIG_RTE_LIBRTE_XEN_DOM0),y) 42 | DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += xen_dom0 43 | endif 44 | 45 | include $(RTE_SDK)/mk/rte.subdir.mk 46 | -------------------------------------------------------------------------------- /lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_82598.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | 3 | Intel 10 Gigabit PCI Express Linux driver 4 | Copyright(c) 1999 - 2012 Intel Corporation. 5 | 6 | This program is free software; you can redistribute it and/or modify it 7 | under the terms and conditions of the GNU General Public License, 8 | version 2, as published by the Free Software Foundation. 9 | 10 | This program is distributed in the hope it will be useful, but WITHOUT 11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 | more details. 14 | 15 | You should have received a copy of the GNU General Public License along with 16 | this program; if not, write to the Free Software Foundation, Inc., 17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 18 | 19 | The full GNU General Public License is included in this distribution in 20 | the file called "COPYING". 21 | 22 | Contact Information: 23 | e1000-devel Mailing List 24 | Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 25 | 26 | *******************************************************************************/ 27 | 28 | #ifndef _IXGBE_82598_H_ 29 | #define _IXGBE_82598_H_ 30 | 31 | u32 ixgbe_get_pcie_msix_count_82598(struct ixgbe_hw *hw); 32 | s32 ixgbe_fc_enable_82598(struct ixgbe_hw *hw); 33 | s32 ixgbe_start_hw_82598(struct ixgbe_hw *hw); 34 | s32 ixgbe_set_vmdq_82598(struct ixgbe_hw *hw, u32 rar, u32 vmdq); 35 | s32 ixgbe_set_vfta_82598(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on); 36 | s32 ixgbe_read_analog_reg8_82598(struct ixgbe_hw *hw, u32 reg, u8 *val); 37 | s32 ixgbe_write_analog_reg8_82598(struct ixgbe_hw *hw, u32 reg, u8 val); 38 | s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, 39 | u8 *eeprom_data); 40 | u32 ixgbe_get_supported_physical_layer_82598(struct ixgbe_hw *hw); 41 | s32 ixgbe_init_phy_ops_82598(struct ixgbe_hw *hw); 42 | void ixgbe_set_lan_id_multi_port_pcie_82598(struct ixgbe_hw *hw); 43 | void ixgbe_set_pcie_completion_timeout(struct ixgbe_hw *hw); 44 | #endif /* _IXGBE_82598_H_ */ 45 | -------------------------------------------------------------------------------- /config/defconfig_x86_64-ivshmem-linuxapp-gcc: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | # 32 | 33 | # 34 | # use default config 35 | # 36 | 37 | #include "defconfig_x86_64-native-linuxapp-gcc" 38 | 39 | # 40 | # Compile IVSHMEM library 41 | # 42 | CONFIG_RTE_LIBRTE_IVSHMEM=y 43 | CONFIG_RTE_LIBRTE_IVSHMEM_DEBUG=n 44 | CONFIG_RTE_LIBRTE_IVSHMEM_MAX_PCI_DEVS=4 45 | CONFIG_RTE_LIBRTE_IVSHMEM_MAX_ENTRIES=128 46 | CONFIG_RTE_LIBRTE_IVSHMEM_MAX_METADATA_FILES=32 47 | 48 | # Set EAL to single file segments 49 | CONFIG_RTE_EAL_SINGLE_FILE_SEGMENTS=y -------------------------------------------------------------------------------- /examples/l2fwd/Makefile: -------------------------------------------------------------------------------- 1 | # BSD LICENSE 2 | # 3 | # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions 8 | # are met: 9 | # 10 | # * Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # * Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in 14 | # the documentation and/or other materials provided with the 15 | # distribution. 16 | # * Neither the name of Intel Corporation nor the names of its 17 | # contributors may be used to endorse or promote products derived 18 | # from this software without specific prior written permission. 19 | # 20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | ifeq ($(RTE_SDK),) 33 | $(error "Please define RTE_SDK environment variable") 34 | endif 35 | 36 | # Default target, can be overriden by command line or environment 37 | RTE_TARGET ?= x86_64-native-linuxapp-gcc 38 | 39 | include $(RTE_SDK)/mk/rte.vars.mk 40 | 41 | # binary name 42 | APP = l2fwd 43 | 44 | # all source are stored in SRCS-y 45 | SRCS-y := main.c 46 | 47 | CFLAGS += -O3 48 | CFLAGS += $(WERROR_FLAGS) 49 | 50 | include $(RTE_SDK)/mk/rte.extapp.mk 51 | --------------------------------------------------------------------------------