fix trailing whitespace.
PATCH 1/1 fix trailing whitespace.
This commit removes trailing whitespace from lines in files. Almost all files are affected, as the BSD license copyright header had trailing whitespace on 4 lines in it [hence the number of files reporting 8 lines changed in the diffstat].
--- app/cmdline_test/cmdline_test.c | 8 +- app/cmdline_test/cmdline_test.h | 8 +- app/cmdline_test/commands.c | 8 +- app/dump_cfg/main.c | 8 +- app/dump_cfg/main.h | 8 +- app/test-pmd/cmdline.c | 60 +-- app/test-pmd/config.c | 42 +- app/test-pmd/csumonly.c | 8 +- app/test-pmd/ieee1588fwd.c | 8 +- app/test-pmd/iofwd.c | 8 +- app/test-pmd/macfwd-retry.c | 8 +- app/test-pmd/macfwd.c | 8 +- app/test-pmd/mempool_anon.c | 20 +- app/test-pmd/mempool_osdep.h | 8 +- app/test-pmd/parameters.c | 18 +- app/test-pmd/rxonly.c | 8 +- app/test-pmd/testpmd.c | 92 ++-- app/test-pmd/testpmd.h | 20 +- app/test-pmd/txonly.c | 8 +- app/test/commands.c | 8 +- app/test/process.h | 8 +- app/test/test.c | 8 +- app/test/test.h | 8 +- app/test/test_acl.c | 8 +- app/test/test_acl.h | 8 +- app/test/test_alarm.c | 8 +- app/test/test_atomic.c | 8 +- app/test/test_byteorder.c | 8 +- app/test/test_cmdline.c | 8 +- app/test/test_cmdline.h | 8 +- app/test/test_cmdline_cirbuf.c | 8 +- app/test/test_cmdline_etheraddr.c | 8 +- app/test/test_cmdline_ipaddr.c | 10 +- app/test/test_cmdline_lib.c | 8 +- app/test/test_cmdline_num.c | 8 +- app/test/test_cmdline_portlist.c | 8 +- app/test/test_cmdline_string.c | 8 +- app/test/test_common.c | 8 +- app/test/test_cpuflags.c | 8 +- app/test/test_cycles.c | 8 +- app/test/test_debug.c | 8 +- app/test/test_eal_flags.c | 12 +- app/test/test_eal_fs.c | 8 +- app/test/test_errno.c | 8 +- app/test/test_func_reentrancy.c | 34 +- app/test/test_hash.c | 8 +- app/test/test_hash_perf.c | 8 +- app/test/test_ivshmem.c | 8 +- app/test/test_kni.c | 14 +- app/test/test_logs.c | 8 +- app/test/test_lpm.c | 8 +- app/test/test_lpm6.c | 202 ++++---- app/test/test_lpm6_routes.h | 10 +- app/test/test_lpm_routes.h | 8 +- app/test/test_malloc.c | 8 +- app/test/test_mbuf.c | 16 +- app/test/test_memcpy.c | 8 +- app/test/test_memcpy_perf.c | 8 +- app/test/test_memory.c | 8 +- app/test/test_mempool.c | 8 +- app/test/test_mempool_perf.c | 8 +- app/test/test_memzone.c | 12 +- app/test/test_meter.c | 120 ++--- app/test/test_mp_secondary.c | 12 +- app/test/test_pci.c | 8 +- app/test/test_per_lcore.c | 8 +- app/test/test_pmd_ring.c | 30 +- app/test/test_power.c | 8 +- app/test/test_prefetch.c | 8 +- app/test/test_red.c | 68 +-- app/test/test_ring.c | 8 +- app/test/test_ring_perf.c | 26 +- app/test/test_rwlock.c | 8 +- app/test/test_sched.c | 12 +- app/test/test_spinlock.c | 8 +- app/test/test_string_fns.c | 8 +- app/test/test_tailq.c | 8 +- app/test/test_timer.c | 8 +- app/test/test_timer_perf.c | 8 +- app/test/test_version.c | 8 +- examples/cmdline/commands.c | 8 +- examples/cmdline/commands.h | 8 +- examples/cmdline/main.c | 8 +- examples/cmdline/main.h | 8 +- examples/cmdline/parse_obj_list.c | 8 +- examples/cmdline/parse_obj_list.h | 8 +- examples/dpdk_qat/crypto.c | 8 +- examples/dpdk_qat/crypto.h | 8 +- examples/dpdk_qat/main.c | 8 +- examples/dpdk_qat/main.h | 8 +- examples/exception_path/main.c | 8 +- examples/helloworld/main.c | 8 +- examples/helloworld/main.h | 8 +- examples/ip_reassembly/ipv4_frag_tbl.h | 14 +- examples/ip_reassembly/ipv4_rsmbl.h | 18 +- examples/ip_reassembly/main.c | 38 +- examples/ip_reassembly/main.h | 8 +- examples/ipv4_frag/main.c | 8 +- examples/ipv4_frag/main.h | 8 +- examples/ipv4_frag/rte_ipv4_frag.h | 8 +- examples/ipv4_multicast/main.c | 8 +- examples/ipv4_multicast/main.h | 8 +- examples/kni/main.c | 14 +- examples/l2fwd-ivshmem/guest/guest.c | 8 +- examples/l2fwd-ivshmem/host/host.c | 8 +- examples/l2fwd-ivshmem/include/common.h | 8 +- examples/l2fwd/main.c | 8 +- examples/l2fwd/main.h | 8 +- examples/l3fwd-power/main.c | 24 +- examples/l3fwd-power/main.h | 8 +- examples/l3fwd-vf/main.c | 14 +- examples/l3fwd-vf/main.h | 8 +- examples/l3fwd/main.c | 90 ++-- examples/l3fwd/main.h | 8 +- examples/link_status_interrupt/main.c | 8 +- examples/link_status_interrupt/main.h | 8 +- examples/load_balancer/config.c | 8 +- examples/load_balancer/init.c | 8 +- examples/load_balancer/main.c | 8 +- examples/load_balancer/main.h | 8 +- examples/load_balancer/runtime.c | 8 +- .../client_server_mp/mp_client/client.c | 8 +- .../client_server_mp/mp_server/args.c | 8 +- .../client_server_mp/mp_server/args.h | 8 +- .../client_server_mp/mp_server/init.c | 8 +- .../client_server_mp/mp_server/init.h | 8 +- .../client_server_mp/mp_server/main.c | 8 +- .../client_server_mp/mp_server/main.h | 8 +- .../multi_process/client_server_mp/shared/common.h | 8 +- .../client_server_mp/shared/init_drivers.h | 8 +- examples/multi_process/l2fwd_fork/flib.c | 26 +- examples/multi_process/l2fwd_fork/flib.h | 28 +- examples/multi_process/l2fwd_fork/main.c | 124 ++--- examples/multi_process/l2fwd_fork/main.h | 8 +- examples/multi_process/simple_mp/main.c | 8 +- examples/multi_process/simple_mp/mp_commands.c | 8 +- examples/multi_process/simple_mp/mp_commands.h | 8 +- examples/multi_process/symmetric_mp/main.c | 8 +- examples/netmap_compat/bridge/bridge.c | 14 +- examples/netmap_compat/lib/compat_netmap.c | 24 +- examples/netmap_compat/lib/compat_netmap.h | 8 +- examples/netmap_compat/netmap/netmap.h | 14 +- examples/netmap_compat/netmap/netmap_user.h | 12 +- examples/qos_meter/main.c | 56 +-- examples/qos_meter/main.h | 8 +- examples/qos_meter/rte_policer.c | 20 +- examples/qos_meter/rte_policer.h | 12 +- examples/qos_sched/app_thread.c | 8 +- examples/qos_sched/args.c | 20 +- examples/qos_sched/cfg_file.c | 20 +- examples/qos_sched/cfg_file.h | 10 +- examples/qos_sched/cmdline.c | 8 +- examples/qos_sched/init.c | 32 +- examples/qos_sched/main.c | 8 +- examples/qos_sched/main.h | 8 +- examples/qos_sched/stats.c | 8 +- examples/quota_watermark/include/conf.h | 8 +- examples/quota_watermark/qw/args.c | 8 +- examples/quota_watermark/qw/args.h | 8 +- examples/quota_watermark/qw/init.c | 8 +- examples/quota_watermark/qw/init.h | 8 +- examples/quota_watermark/qw/main.c | 12 +- examples/quota_watermark/qw/main.h | 8 +- examples/quota_watermark/qwctl/commands.c | 8 +- examples/quota_watermark/qwctl/commands.h | 8 +- examples/quota_watermark/qwctl/qwctl.c | 8 +- examples/quota_watermark/qwctl/qwctl.h | 8 +- examples/timer/main.c | 8 +- examples/timer/main.h | 8 +- examples/vhost/eventfd_link/eventfd_link.c | 10 +- examples/vhost/eventfd_link/eventfd_link.h | 24 +- examples/vhost/main.c | 36 +- examples/vhost/main.h | 8 +- examples/vhost/vhost-net-cdev.c | 8 +- examples/vhost/vhost-net-cdev.h | 8 +- examples/vhost/virtio-net.c | 12 +- examples/vhost/virtio-net.h | 8 +- examples/vhost_xen/main.c | 28 +- examples/vhost_xen/main.h | 8 +- examples/vhost_xen/vhost_monitor.c | 50 +- examples/vhost_xen/virtio-net.h | 16 +- examples/vhost_xen/xen_vhost.h | 10 +- examples/vhost_xen/xenstore_parse.c | 94 ++-- examples/vmdq/main.c | 68 +-- examples/vmdq/main.h | 8 +- examples/vmdq_dcb/main.c | 28 +- examples/vmdq_dcb/main.h | 8 +- lib/librte_cmdline/cmdline.c | 8 +- lib/librte_cmdline/cmdline.h | 8 +- lib/librte_cmdline/cmdline_cirbuf.c | 8 +- lib/librte_cmdline/cmdline_cirbuf.h | 8 +- lib/librte_cmdline/cmdline_parse.c | 8 +- lib/librte_cmdline/cmdline_parse.h | 8 +- lib/librte_cmdline/cmdline_parse_etheraddr.c | 8 +- lib/librte_cmdline/cmdline_parse_etheraddr.h | 8 +- lib/librte_cmdline/cmdline_parse_ipaddr.c | 8 +- lib/librte_cmdline/cmdline_parse_ipaddr.h | 8 +- lib/librte_cmdline/cmdline_parse_num.c | 8 +- lib/librte_cmdline/cmdline_parse_num.h | 8 +- lib/librte_cmdline/cmdline_parse_portlist.c | 8 +- lib/librte_cmdline/cmdline_parse_portlist.h | 8 +- lib/librte_cmdline/cmdline_parse_string.c | 8 +- lib/librte_cmdline/cmdline_parse_string.h | 8 +- lib/librte_cmdline/cmdline_rdline.c | 8 +- lib/librte_cmdline/cmdline_rdline.h | 8 +- lib/librte_cmdline/cmdline_socket.c | 8 +- lib/librte_cmdline/cmdline_socket.h | 8 +- lib/librte_cmdline/cmdline_vt100.c | 8 +- lib/librte_cmdline/cmdline_vt100.h | 8 +- lib/librte_eal/bsdapp/contigmem/contigmem.c | 12 +- lib/librte_eal/bsdapp/eal/eal.c | 16 +- lib/librte_eal/bsdapp/eal/eal_alarm.c | 14 +- lib/librte_eal/bsdapp/eal/eal_debug.c | 8 +- lib/librte_eal/bsdapp/eal/eal_hugepage_info.c | 12 +- lib/librte_eal/bsdapp/eal/eal_interrupts.c | 12 +- lib/librte_eal/bsdapp/eal/eal_lcore.c | 8 +- lib/librte_eal/bsdapp/eal/eal_log.c | 8 +- lib/librte_eal/bsdapp/eal/eal_memory.c | 12 +- lib/librte_eal/bsdapp/eal/eal_pci.c | 12 +- lib/librte_eal/bsdapp/eal/eal_thread.c | 8 +- lib/librte_eal/bsdapp/eal/eal_timer.c | 8 +- lib/librte_eal/bsdapp/eal/include/eal_filesystem.h | 8 +- lib/librte_eal/bsdapp/eal/include/eal_hugepages.h | 8 +- .../bsdapp/eal/include/eal_internal_cfg.h | 8 +- lib/librte_eal/bsdapp/eal/include/eal_thread.h | 8 +- .../bsdapp/eal/include/exec-env/rte_dom0_common.h | 34 +- .../bsdapp/eal/include/exec-env/rte_interrupts.h | 8 +- .../bsdapp/eal/include/exec-env/rte_kni_common.h | 26 +- .../bsdapp/eal/include/exec-env/rte_lcore.h | 8 +- .../bsdapp/eal/include/exec-env/rte_per_lcore.h | 8 +- lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 12 +- lib/librte_eal/common/eal_common_cpuflags.c | 8 +- lib/librte_eal/common/eal_common_dev.c | 8 +- lib/librte_eal/common/eal_common_errno.c | 8 +- lib/librte_eal/common/eal_common_hexdump.c | 8 +- lib/librte_eal/common/eal_common_launch.c | 8 +- lib/librte_eal/common/eal_common_log.c | 12 +- lib/librte_eal/common/eal_common_memory.c | 8 +- lib/librte_eal/common/eal_common_memzone.c | 14 +- lib/librte_eal/common/eal_common_pci.c | 10 +- lib/librte_eal/common/eal_common_tailqs.c | 10 +- lib/librte_eal/common/include/eal_private.h | 8 +- .../common/include/i686/arch/rte_atomic.h | 8 +- lib/librte_eal/common/include/rte_alarm.h | 8 +- lib/librte_eal/common/include/rte_atomic.h | 10 +- .../common/include/rte_branch_prediction.h | 8 +- lib/librte_eal/common/include/rte_byteorder.h | 8 +- lib/librte_eal/common/include/rte_common.h | 8 +- lib/librte_eal/common/include/rte_cpuflags.h | 8 +- lib/librte_eal/common/include/rte_cycles.h | 8 +- lib/librte_eal/common/include/rte_debug.h | 8 +- lib/librte_eal/common/include/rte_eal.h | 12 +- lib/librte_eal/common/include/rte_eal_memconfig.h | 12 +- lib/librte_eal/common/include/rte_errno.h | 8 +- lib/librte_eal/common/include/rte_hexdump.h | 8 +- lib/librte_eal/common/include/rte_interrupts.h | 8 +- lib/librte_eal/common/include/rte_launch.h | 8 +- lib/librte_eal/common/include/rte_lcore.h | 8 +- lib/librte_eal/common/include/rte_log.h | 8 +- lib/librte_eal/common/include/rte_malloc_heap.h | 8 +- lib/librte_eal/common/include/rte_memcpy.h | 8 +- lib/librte_eal/common/include/rte_memory.h | 34 +- lib/librte_eal/common/include/rte_memzone.h | 8 +- lib/librte_eal/common/include/rte_pci.h | 8 +- lib/librte_eal/common/include/rte_pci_dev_ids.h | 24 +- lib/librte_eal/common/include/rte_per_lcore.h | 8 +- lib/librte_eal/common/include/rte_prefetch.h | 8 +- lib/librte_eal/common/include/rte_random.h | 8 +- lib/librte_eal/common/include/rte_rwlock.h | 8 +- lib/librte_eal/common/include/rte_spinlock.h | 8 +- lib/librte_eal/common/include/rte_string_fns.h | 8 +- lib/librte_eal/common/include/rte_tailq.h | 8 +- lib/librte_eal/common/include/rte_tailq_elem.h | 8 +- lib/librte_eal/common/include/rte_version.h | 8 +- lib/librte_eal/common/include/rte_warnings.h | 8 +- .../common/include/x86_64/arch/rte_atomic.h | 8 +- lib/librte_eal/linuxapp/eal/eal.c | 22 +- lib/librte_eal/linuxapp/eal/eal_alarm.c | 8 +- lib/librte_eal/linuxapp/eal/eal_debug.c | 8 +- lib/librte_eal/linuxapp/eal/eal_hugepage_info.c | 8 +- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 8 +- lib/librte_eal/linuxapp/eal/eal_ivshmem.c | 12 +- lib/librte_eal/linuxapp/eal/eal_lcore.c | 8 +- lib/librte_eal/linuxapp/eal/eal_log.c | 8 +- lib/librte_eal/linuxapp/eal/eal_memory.c | 8 +- lib/librte_eal/linuxapp/eal/eal_pci.c | 52 +- lib/librte_eal/linuxapp/eal/eal_thread.c | 8 +- lib/librte_eal/linuxapp/eal/eal_timer.c | 8 +- lib/librte_eal/linuxapp/eal/eal_xen_memory.c | 54 +- .../linuxapp/eal/include/eal_filesystem.h | 8 +- .../linuxapp/eal/include/eal_hugepages.h | 8 +- .../linuxapp/eal/include/eal_internal_cfg.h | 8 +- lib/librte_eal/linuxapp/eal/include/eal_thread.h | 8 +- .../eal/include/exec-env/rte_dom0_common.h | 34 +- .../linuxapp/eal/include/exec-env/rte_interrupts.h | 8 +- .../linuxapp/eal/include/exec-env/rte_kni_common.h | 26 +- .../linuxapp/eal/include/exec-env/rte_lcore.h | 8 +- .../linuxapp/eal/include/exec-env/rte_per_lcore.h | 8 +- lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 26 +- lib/librte_eal/linuxapp/kni/kni_dev.h | 12 +- lib/librte_eal/linuxapp/kni/kni_fifo.h | 10 +- lib/librte_eal/linuxapp/kni/kni_misc.c | 10 +- lib/librte_eal/linuxapp/kni/kni_net.c | 14 +- lib/librte_eal/linuxapp/kni/kni_vhost.c | 136 +++--- lib/librte_eal/linuxapp/xen_dom0/dom0_mm_dev.h | 24 +- lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c | 108 ++-- lib/librte_ether/rte_ethdev.c | 126 ++--- lib/librte_ether/rte_ethdev.h | 126 ++--- lib/librte_ether/rte_ether.h | 8 +- lib/librte_hash/rte_fbk_hash.c | 18 +- lib/librte_hash/rte_fbk_hash.h | 24 +- lib/librte_hash/rte_hash.c | 26 +- lib/librte_hash/rte_hash.h | 14 +- lib/librte_hash/rte_hash_crc.h | 8 +- lib/librte_hash/rte_jhash.h | 8 +- lib/librte_ivshmem/rte_ivshmem.c | 8 +- lib/librte_ivshmem/rte_ivshmem.h | 8 +- lib/librte_kni/rte_kni.c | 22 +- lib/librte_kni/rte_kni.h | 30 +- lib/librte_kni/rte_kni_fifo.h | 8 +- lib/librte_lpm/rte_lpm.c | 24 +- lib/librte_lpm/rte_lpm.h | 8 +- lib/librte_lpm/rte_lpm6.c | 114 ++--- lib/librte_lpm/rte_lpm6.h | 8 +- lib/librte_malloc/malloc_elem.c | 8 +- lib/librte_malloc/malloc_elem.h | 8 +- lib/librte_malloc/malloc_heap.c | 8 +- lib/librte_malloc/malloc_heap.h | 8 +- lib/librte_malloc/rte_malloc.c | 8 +- lib/librte_malloc/rte_malloc.h | 8 +- lib/librte_mbuf/rte_mbuf.c | 8 +- lib/librte_mbuf/rte_mbuf.h | 8 +- lib/librte_mempool/rte_dom0_mempool.c | 72 +-- lib/librte_mempool/rte_mempool.c | 26 +- lib/librte_mempool/rte_mempool.h | 10 +- lib/librte_meter/rte_meter.c | 30 +- lib/librte_meter/rte_meter.h | 66 +-- lib/librte_net/rte_ip.h | 8 +- lib/librte_net/rte_sctp.h | 8 +- lib/librte_net/rte_tcp.h | 8 +- lib/librte_net/rte_udp.h | 8 +- lib/librte_pmd_e1000/e1000_ethdev.h | 16 +- lib/librte_pmd_e1000/e1000_logs.h | 8 +- lib/librte_pmd_e1000/em_ethdev.c | 10 +- lib/librte_pmd_e1000/em_rxtx.c | 20 +- lib/librte_pmd_e1000/igb_ethdev.c | 84 ++-- lib/librte_pmd_e1000/igb_pf.c | 64 +-- lib/librte_pmd_e1000/igb_rxtx.c | 100 ++-- lib/librte_pmd_ixgbe/ixgbe_82599_bypass.c | 14 +- lib/librte_pmd_ixgbe/ixgbe_bypass.c | 8 +- lib/librte_pmd_ixgbe/ixgbe_bypass.h | 8 +- lib/librte_pmd_ixgbe/ixgbe_bypass_api.h | 8 +- lib/librte_pmd_ixgbe/ixgbe_bypass_defines.h | 8 +- lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 242 ++++----- lib/librte_pmd_ixgbe/ixgbe_ethdev.h | 14 +- lib/librte_pmd_ixgbe/ixgbe_fdir.c | 8 +- lib/librte_pmd_ixgbe/ixgbe_logs.h | 8 +- lib/librte_pmd_ixgbe/ixgbe_pf.c | 84 ++-- lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 112 ++--- lib/librte_pmd_ixgbe/ixgbe_rxtx.h | 10 +- lib/librte_pmd_pcap/rte_eth_pcap.c | 12 +- lib/librte_pmd_ring/rte_eth_ring.c | 12 +- lib/librte_pmd_ring/rte_eth_ring.h | 8 +- lib/librte_pmd_virtio/virtio_ethdev.c | 20 +- lib/librte_pmd_virtio/virtio_ethdev.h | 8 +- lib/librte_pmd_virtio/virtio_logs.h | 8 +- lib/librte_pmd_virtio/virtio_pci.c | 8 +- lib/librte_pmd_virtio/virtio_pci.h | 10 +- lib/librte_pmd_virtio/virtio_ring.h | 8 +- lib/librte_pmd_virtio/virtio_rxtx.c | 8 +- lib/librte_pmd_virtio/virtqueue.c | 8 +- lib/librte_pmd_virtio/virtqueue.h | 18 +- lib/librte_pmd_vmxnet3/vmxnet3/includeCheck.h | 8 +- lib/librte_pmd_vmxnet3/vmxnet3/upt1_defs.h | 2 +- lib/librte_pmd_vmxnet3/vmxnet3/vmware_pack_begin.h | 8 +- lib/librte_pmd_vmxnet3/vmxnet3/vmware_pack_end.h | 8 +- lib/librte_pmd_vmxnet3/vmxnet3/vmxnet3_defs.h | 2 +- lib/librte_pmd_vmxnet3/vmxnet3/vmxnet3_osdep.h | 8 +- lib/librte_pmd_vmxnet3/vmxnet3_ethdev.c | 24 +- lib/librte_pmd_vmxnet3/vmxnet3_ethdev.h | 8 +- lib/librte_pmd_vmxnet3/vmxnet3_logs.h | 8 +- lib/librte_pmd_vmxnet3/vmxnet3_ring.h | 8 +- lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c | 18 +- lib/librte_pmd_xenvirt/rte_eth_xenvirt.c | 16 +- lib/librte_pmd_xenvirt/rte_eth_xenvirt.h | 8 +- lib/librte_pmd_xenvirt/rte_mempool_gntalloc.c | 16 +- lib/librte_pmd_xenvirt/rte_xen_lib.c | 10 +- lib/librte_pmd_xenvirt/rte_xen_lib.h | 8 +- lib/librte_pmd_xenvirt/virtio_logs.h | 8 +- lib/librte_pmd_xenvirt/virtqueue.h | 16 +- lib/librte_power/rte_power.c | 22 +- lib/librte_power/rte_power.h | 34 +- lib/librte_ring/rte_ring.c | 18 +- lib/librte_ring/rte_ring.h | 12 +- lib/librte_sched/rte_approx.c | 56 +-- lib/librte_sched/rte_approx.h | 12 +- lib/librte_sched/rte_bitmap.h | 102 ++-- lib/librte_sched/rte_red.c | 16 +- lib/librte_sched/rte_red.h | 50 +- lib/librte_sched/rte_sched.c | 544 ++++++++++----------- lib/librte_sched/rte_sched.h | 96 ++-- lib/librte_sched/rte_sched_common.h | 18 +- lib/librte_timer/rte_timer.c | 8 +- lib/librte_timer/rte_timer.h | 8 +- scripts/testhost/testhost.c | 8 +- 405 files changed, 3736 insertions(+), 3736 deletions(-)
app/cmdline_test/cmdline_test.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/cmdline_test/cmdline_test.h +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/cmdline_test/commands.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/dump_cfg/main.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/dump_cfg/main.h +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test-pmd/cmdline.c +30 -30
173 lines not on this page · raw message
app/test-pmd/config.c +21 -21
127 lines not on this page · raw message
app/test-pmd/csumonly.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test-pmd/ieee1588fwd.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test-pmd/iofwd.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test-pmd/macfwd-retry.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test-pmd/macfwd.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test-pmd/mempool_anon.c +10 -10
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -72,7 +72,7 @@ get_phys_map(void *va, phys_addr_t pa[], uint32_t pg_num, uint32_t pg_sz)"at offset %zu, error code: %d\n" , nb, PAGEMAP_FNAME, (size_t)ofs, errno); rc =ENOENT ; - } + }close (fd);
@@ -136,11 +136,11 @@ mempool_anon_create(const char *name, unsigned elt_num, unsigned elt_size,if ((usz =rte_mempool_xmem_usage (va, elt_num, total_size, pa, pg_num, pg_shift)) <0 ) { - + n = -usz; rc =ENOENT ;RTE_LOG (ERR ,USER1 ,"%s(%s) only %u objects from %u " -"requested can be created over " +"requested can be created over " "mmaped region %p of %zu bytes\n" , __func__, name, n, elt_num, va, sz); }else {
@@ -150,7 +150,7 @@ mempool_anon_create(const char *name, unsigned elt_num, unsigned elt_size, uv = va + usz; usz = sz - usz; - + RTE_LOG(INFO, USER1, "%s(%s): unmap unused %zu of %zu " "mmaped bytes @%p\n",
@@ -159,7 +159,7 @@ mempool_anon_create(const char *name, unsigned elt_num, unsigned elt_size, sz -= usz; pg_num = sz >> pg_shift; } - + if ((mp = rte_mempool_xmem_create(name, elt_num, elt_size, cache_size, private_data_size, mp_init, mp_init_arg,
@@ -169,7 +169,7 @@ mempool_anon_create(const char *name, unsigned elt_num, unsigned elt_size,RTE_VERIFY (elt_num == mp->size); } - } + }if (mp ==NULL ) {munmap (va, sz);
app/test-pmd/mempool_osdep.h +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test-pmd/parameters.c +9 -9
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -364,7 +364,7 @@ parse_portnuma_config(const char *q_arg) _NUM_FLD };unsigned long int_fld[_NUM_FLD]; -char *str_fld[_NUM_FLD]; +char *str_fld[_NUM_FLD];/* reset from value set at definition */ while ((p =strchr (p0,'(' )) !=NULL ) {
@@ -417,7 +417,7 @@ parse_ringnuma_config(const char *q_arg) _NUM_FLD };unsigned long int_fld[_NUM_FLD]; -char *str_fld[_NUM_FLD]; +char *str_fld[_NUM_FLD];#define RX_RING_ONLY 0x1#define TX_RING_ONLY 0x2#define RXTX_RING 0x3
@@ -475,8 +475,8 @@ parse_ringnuma_config(const char *q_arg) ring_flag,port_id);break ; } - } - + } +return 0 ; }
@@ -551,7 +551,7 @@ launch_args_parse(int argc, char** argv) { "mp-anon", 0, 0, 0 }, { "port-numa-config", 1, 0, 0 }, { "ring-numa-config", 1, 0, 0 }, - { "socket-num", 1, 0, 0 }, + { "socket-num", 1, 0, 0 }, { "mbuf-size", 1, 0, 0 }, { "total-num-mbufs", 1, 0, 0 }, { "max-pkt-len", 1, 0, 0 },
app/test-pmd/rxonly.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test-pmd/testpmd.c +46 -46
298 lines not on this page · raw message
app/test-pmd/testpmd.h +10 -10
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -241,7 +241,7 @@ struct dcb_config {enum rte_eth_nb_tcs num_tcs;uint8_t pfc_en; }; - +/* * In DCB io FWD mode, 128 RX queue to 128 TX queue mapping */
@@ -287,20 +287,20 @@ extern uint32_t bypass_timeout; /**< Store the NIC bypass watchdog timeout */#define MAX_SOCKET 2/*MAX SOCKET:currently, it is 2 */ /* -* Store specified sockets on which memory pool to be used by ports -* is allocated. +* Store specified sockets on which memory pool to be used by ports +* is allocated. */ uint8_t port_numa[RTE_MAX_ETHPORTS ];/* * Store specified sockets on which RX ring to be used by ports -* is allocated. +* is allocated. */ uint8_t rxring_numa[RTE_MAX_ETHPORTS ];/* * Store specified sockets on which TX ring to be used by ports -* is allocated. +* is allocated. */ uint8_t txring_numa[RTE_MAX_ETHPORTS ];
@@ -525,7 +525,7 @@ void fdir_remove_perfect_filter(portid_t port_id, uint16_t soft_id,void fdir_set_masks (portid_t port_id,struct rte_fdir_masks *fdir_masks);void port_rss_reta_info (portid_t port_id,struct rte_eth_rss_reta *reta_conf);void set_vf_traffic (portid_t port_id,uint8_t is_rx,uint16_t vf,uint8_t on); -void set_vf_rx_vlan (portid_t port_id,uint16_t vlan_id, +void set_vf_rx_vlan (portid_t port_id,uint16_t vlan_id,uint64_t vf_mask,uint8_t on);void port_rss_hash_conf_show (portid_t port_id,int show_rss_key);
app/test-pmd/txonly.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/commands.c +4 -4
@@ -1,14 +1,14 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * Copyright(c) 2014 6WIND S.A. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -18,7 +18,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/process.h +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test.h +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_acl.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_acl.h +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_alarm.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_atomic.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_byteorder.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_cmdline.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_cmdline.h +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_cmdline_cirbuf.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_cmdline_etheraddr.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_cmdline_ipaddr.c +5 -5
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -630,7 +630,7 @@ test_parse_ipaddr_invalid_data(void)int ret;memset (&result,0 ,sizeof (result)); - +/* test invalid strings */ for (i =0 ; i <IPADDR_INVALID_STRS_SIZE ; i++) {
app/test/test_cmdline_lib.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_cmdline_num.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_cmdline_portlist.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_cmdline_string.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_common.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_cpuflags.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_cycles.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_debug.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_eal_flags.c +6 -6
@@ -1,14 +1,14 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * Copyright(c) 2014 6WIND S.A. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -18,7 +18,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -162,7 +162,7 @@ process_hugefiles(const char * prefix, enum hugepage_action action)rte_snprintf (file_path,sizeof (file_path),"%s/%s" , hugedir, dirent->d_name); - +/* remove file */ if (remove (file_path) <0 ) { printf("Error deleting %s - %s!\n",
@@ -668,7 +668,7 @@ test_dom0_misc_flags(void)printf ("Error - process did not run ok with --no-shconf flag\n" ); return -1; } - +return 0 ; }#else
app/test/test_eal_fs.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_errno.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_func_reentrancy.c +17 -17
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -92,7 +92,7 @@ static rte_atomic32_t synchro = RTE_ATOMIC32_INIT(0); }while (0 )/* -* rte_eal_init only init once +* rte_eal_init only init once */ static inttest_eal_init_once (__attribute__((unused))void *arg)
@@ -119,7 +119,7 @@ ring_create_lookup(__attribute__((unused)) void *arg)int i;WAIT_SYNCHRO_FOR_SLAVES (); - +/* create the same ring simultaneously on all threads */ for (i =0 ; i <MAX_ITER_TIMES ; i++) { rp =rte_ring_create ("fr_test_once" ,4096 ,SOCKET_ID_ANY ,0 );
@@ -235,7 +235,7 @@ hash_create_free(__attribute__((unused)) void *arg) };WAIT_SYNCHRO_FOR_SLAVES (); - +/* create the same hash simultaneously on all threads */ hash_params.name ="fr_test_once" ;for (i =0 ; i <MAX_ITER_TIMES ; i++) {
@@ -250,7 +250,7 @@ hash_create_free(__attribute__((unused)) void *arg) hash_params.name = hash_name; handle =rte_hash_create (&hash_params); -if (NULL == handle) +if (NULL == handle)return -1 ;/* verify correct existing and then free all */
@@ -303,7 +303,7 @@ fbk_create_free(__attribute__((unused)) void *arg) };WAIT_SYNCHRO_FOR_SLAVES (); - +/* create the same fbk hash table simultaneously on all threads */ fbk_params.name ="fr_test_once" ;for (i =0 ; i <MAX_ITER_TIMES ; i++) {
@@ -319,7 +319,7 @@ fbk_create_free(__attribute__((unused)) void *arg) handle =rte_fbk_hash_create (&fbk_params);if (NULL == handle) -return -1 ; +return -1 ;/* verify correct existing and then free all */ if (handle !=rte_fbk_hash_find_existing (fbk_name))
@@ -365,7 +365,7 @@ lpm_create_free(__attribute__((unused)) void *arg)int i;WAIT_SYNCHRO_FOR_SLAVES (); - +/* create the same lpm simultaneously on all threads */ for (i =0 ; i <MAX_ITER_TIMES ; i++) { lpm =rte_lpm_create ("fr_test_once" ,SOCKET_ID_ANY ,4 ,RTE_LPM_HEAP );
@@ -378,7 +378,7 @@ lpm_create_free(__attribute__((unused)) void *arg)rte_snprintf (lpm_name,sizeof (lpm_name),"fr_test_%d_%d" , lcore_self, i); lpm =rte_lpm_create (lpm_name,SOCKET_ID_ANY ,4 ,RTE_LPM_HEAP );if (NULL == lpm) -return -1 ; +return -1 ;/* verify correct existing and then free all */ if (lpm !=rte_lpm_find_existing (lpm_name))
@@ -419,8 +419,8 @@ struct test_case test_cases[] = {#endif /* RTE_LIBRTE_LPM */ }; -/** -* launch test case in two separate thread +/** +* launch test case in two separate thread */ static int launch_test (struct test_case *pt_case)
@@ -454,11 +454,11 @@ launch_test(struct test_case *pt_case) cores--;if (rte_eal_wait_lcore (lcore_id) <0 ) ret =-1 ; - +if (pt_case->clean !=NULL ) pt_case->clean (lcore_id); } - +return ret; }
@@ -482,7 +482,7 @@ test_func_reentrancy(void) pt_case = &test_cases[case_id];if (pt_case->func ==NULL )continue ; - +if (launch_test (pt_case) <0 ) {printf ("Func-ReEnt CASE %" PRIu32": %s FAIL\n" , case_id, pt_case->name);return -1 ;
app/test/test_hash.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_hash_perf.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_ivshmem.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_kni.c +7 -7
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -144,7 +144,7 @@ static int kni_change_mtu(uint8_t port_id, unsigned new_mtu) {printf ("Change MTU of port %d to %u\n" , port_id, new_mtu); - kni_pkt_mtu = new_mtu; + kni_pkt_mtu = new_mtu;printf ("Change MTU of port %d to %i successfully.\n" , port_id, kni_pkt_mtu);return 0 ;
@@ -458,7 +458,7 @@ test_kni_processing(uint8_t port_id, struct rte_mempool *mp)return -1 ; } test_kni_ctx =NULL ; - +/* test of releasing a released kni device */ if (rte_kni_release (kni) ==0 ) {printf ("should not release a released kni device\n" );
@@ -477,7 +477,7 @@ test_kni_processing(uint8_t port_id, struct rte_mempool *mp)printf ("fail to release kni\n" );return -1 ; } - +return ret; fail_kni:if (rte_kni_release (kni) <0 ) {
app/test/test_logs.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_lpm.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_lpm6.c +101 -101
688 lines not on this page · raw message
app/test/test_lpm6_routes.h +5 -5
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -45,7 +45,7 @@ struct ips_tbl_entry { };static struct rules_tbl_entry large_route_table[] = -{ +{ {{66 ,70 ,154 ,143 ,197 ,233 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 },50 ,146 }, {{107 ,79 ,18 ,235 ,142 ,84 ,80 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 },54 ,141 }, {{247 ,132 ,113 ,1 ,215 ,247 ,183 ,239 ,128 ,0 ,0 ,0 ,0 ,0 ,0 ,0 },67 ,23 },
app/test/test_lpm_routes.h +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_malloc.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_mbuf.c +8 -8
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -464,7 +464,7 @@ test_pktmbuf_pool_ptr(void)unsigned i;struct rte_mbuf *m[NB_MBUF ];int ret =0 ; - +for (i=0 ; i<NB_MBUF ; i++) m[i] =NULL ;
@@ -483,10 +483,10 @@ test_pktmbuf_pool_ptr(void)if (m[i] !=NULL )rte_pktmbuf_free (m[i]); } - +for (i=0 ; i<NB_MBUF ; i++) m[i] =NULL ; - +/* alloc NB_MBUF mbufs */ for (i=0 ; i<NB_MBUF ; i++) { m[i] =rte_pktmbuf_alloc (pktmbuf_pool);
@@ -861,7 +861,7 @@ test_mbuf(void)printf ("test_mbuf_pool() failed (2)\n" );return -1 ; } - +/* test that the pointer to the data on a packet mbuf is set properly */ if (test_pktmbuf_pool_ptr () <0 ) {printf ("test_pktmbuf_pool_ptr() failed\n" );
app/test/test_memcpy.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_memcpy_perf.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_memory.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_mempool.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_mempool_perf.c +4 -4
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
app/test/test_memzone.c +6 -6
@@ -1,13 +1,13 @@/*- * BSD LICENSE -* +* * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. -* +* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: -* +* * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@* * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. -* +* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -569,7 +569,7 @@ check_memzone_bounded(const char *name, uint32_t len, uint32_t align, bmask = ~((phys_addr_t )bound -1 ); -if ((mz =rte_memzone_reserve_bounded (name, len,SOCKET_ID_ANY ,0 , +if ((mz =rte_memzone_reserve_bounded (name, len,SOCKET_ID_ANY ,0 , align, bound)) ==NULL ) {printf ("%s(%s): memzone creation failed\n" , __func__, name);
@@ -620,7 +620,7 @@ test_memzone_bounded(void) "conditions\n", __func__, memzone_err->name);return (-1 ); } - +/* should fail as len is greater then boundary */ name ="bounded_error_32" ; if ((memzone_err = rte_memzone_reserve_bounded(name,
app/test/test_meter.c +60 -60
6 lines not on this page · raw message
app/test/test_red.c +34 -34
68 lines not on this page · raw message
examples/l2fwd-ivshmem/include/common.h +4 -4
Lines of this file are not shown. View the raw message.
examples/l3fwd/main.c +45 -45
90 lines not on this page · raw message
examples/multi_process/client_server_mp/mp_client/client.c +4 -4
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/mp_server/args.c +4 -4
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/mp_server/args.h +4 -4
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/mp_server/init.c +4 -4
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/mp_server/init.h +4 -4
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/mp_server/main.c +4 -4
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/mp_server/main.h +4 -4
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/shared/common.h +4 -4
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/shared/init_drivers.h +4 -4
Lines of this file are not shown. View the raw message.
examples/multi_process/l2fwd_fork/flib.c +13 -13
Lines of this file are not shown. View the raw message.
examples/multi_process/l2fwd_fork/flib.h +14 -14
Lines of this file are not shown. View the raw message.
examples/multi_process/l2fwd_fork/main.c +62 -62
124 lines not on this page · raw message
examples/multi_process/l2fwd_fork/main.h +4 -4
Lines of this file are not shown. View the raw message.
examples/multi_process/simple_mp/main.c +4 -4
Lines of this file are not shown. View the raw message.
examples/multi_process/simple_mp/mp_commands.c +4 -4
Lines of this file are not shown. View the raw message.
examples/multi_process/simple_mp/mp_commands.h +4 -4
Lines of this file are not shown. View the raw message.
examples/multi_process/symmetric_mp/main.c +4 -4
Lines of this file are not shown. View the raw message.
examples/netmap_compat/lib/compat_netmap.c +12 -12
Lines of this file are not shown. View the raw message.
examples/netmap_compat/lib/compat_netmap.h +4 -4
Lines of this file are not shown. View the raw message.
examples/netmap_compat/netmap/netmap_user.h +6 -6
Lines of this file are not shown. View the raw message.
examples/qos_meter/main.c +28 -28
56 lines not on this page · raw message
examples/quota_watermark/include/conf.h +4 -4
Lines of this file are not shown. View the raw message.
examples/quota_watermark/qwctl/commands.c +4 -4
Lines of this file are not shown. View the raw message.
examples/quota_watermark/qwctl/commands.h +4 -4
Lines of this file are not shown. View the raw message.
examples/vhost/eventfd_link/eventfd_link.c +5 -5
Lines of this file are not shown. View the raw message.
examples/vhost/eventfd_link/eventfd_link.h +12 -12
Lines of this file are not shown. View the raw message.
examples/vhost_xen/vhost_monitor.c +25 -25
50 lines not on this page · raw message
examples/vhost_xen/xenstore_parse.c +47 -47
94 lines not on this page · raw message
examples/vmdq/main.c +34 -34
68 lines not on this page · raw message
lib/librte_cmdline/cmdline_parse_etheraddr.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_cmdline/cmdline_parse_etheraddr.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_cmdline/cmdline_parse_ipaddr.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_cmdline/cmdline_parse_ipaddr.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_cmdline/cmdline_parse_portlist.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_cmdline/cmdline_parse_portlist.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_cmdline/cmdline_parse_string.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_cmdline/cmdline_parse_string.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/bsdapp/contigmem/contigmem.c +6 -6
Lines of this file are not shown. View the raw message.
lib/librte_eal/bsdapp/eal/eal_hugepage_info.c +6 -6
Lines of this file are not shown. View the raw message.
lib/librte_eal/bsdapp/eal/eal_interrupts.c +6 -6
Lines of this file are not shown. View the raw message.
lib/librte_eal/bsdapp/eal/include/eal_filesystem.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/bsdapp/eal/include/eal_hugepages.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/bsdapp/eal/include/eal_internal_cfg.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/bsdapp/eal/include/eal_thread.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/bsdapp/eal/include/exec-env/rte_dom0_common.h +17 -17
Lines of this file are not shown. View the raw message.
lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/bsdapp/eal/include/exec-env/rte_kni_common.h +13 -13
Lines of this file are not shown. View the raw message.
lib/librte_eal/bsdapp/eal/include/exec-env/rte_lcore.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/bsdapp/eal/include/exec-env/rte_per_lcore.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/bsdapp/nic_uio/nic_uio.c +6 -6
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/eal_common_cpuflags.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/eal_common_errno.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/eal_common_hexdump.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/eal_common_launch.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/eal_common_memory.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/eal_common_memzone.c +7 -7
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/eal_common_tailqs.c +5 -5
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/eal_private.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/i686/arch/rte_atomic.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_alarm.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_atomic.h +5 -5
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_branch_prediction.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_byteorder.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_common.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_cpuflags.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_cycles.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_debug.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_eal.h +6 -6
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_eal_memconfig.h +6 -6
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_errno.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_hexdump.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_interrupts.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_launch.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_lcore.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_log.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_malloc_heap.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_memcpy.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_memory.h +17 -17
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_memzone.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_pci.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_pci_dev_ids.h +12 -12
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_per_lcore.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_prefetch.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_random.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_rwlock.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_spinlock.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_string_fns.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_tailq.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_tailq_elem.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_version.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/rte_warnings.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/common/include/x86_64/arch/rte_atomic.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/eal_alarm.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/eal_debug.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/eal_hugepage_info.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/eal_interrupts.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/eal_ivshmem.c +6 -6
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/eal_lcore.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/eal_memory.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/eal_pci.c +26 -26
52 lines not on this page · raw message
lib/librte_eal/linuxapp/eal/eal_thread.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/eal_timer.c +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/eal_xen_memory.c +27 -27
54 lines not on this page · raw message
lib/librte_eal/linuxapp/eal/include/eal_filesystem.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/include/eal_hugepages.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/include/eal_internal_cfg.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/include/eal_thread.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/include/exec-env/rte_dom0_common.h +17 -17
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h +13 -13
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/include/exec-env/rte_lcore.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/eal/include/exec-env/rte_per_lcore.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/igb_uio/igb_uio.c +13 -13
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/kni/kni_vhost.c +68 -68
136 lines not on this page · raw message
lib/librte_eal/linuxapp/xen_dom0/dom0_mm_dev.h +12 -12
Lines of this file are not shown. View the raw message.
lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c +54 -54
108 lines not on this page · raw message
lib/librte_ether/rte_ethdev.c +63 -63
126 lines not on this page · raw message
lib/librte_ether/rte_ethdev.h +63 -63
126 lines not on this page · raw message
lib/librte_lpm/rte_lpm6.c +57 -57
114 lines not on this page · raw message
lib/librte_mempool/rte_dom0_mempool.c +36 -36
72 lines not on this page · raw message
lib/librte_meter/rte_meter.h +33 -33
66 lines not on this page · raw message
lib/librte_pmd_e1000/igb_ethdev.c +42 -42
84 lines not on this page · raw message
lib/librte_pmd_e1000/igb_pf.c +32 -32
64 lines not on this page · raw message
lib/librte_pmd_e1000/igb_rxtx.c +50 -50
100 lines not on this page · raw message
lib/librte_pmd_ixgbe/ixgbe_82599_bypass.c +7 -7
Lines of this file are not shown. View the raw message.
lib/librte_pmd_ixgbe/ixgbe_bypass_api.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_pmd_ixgbe/ixgbe_bypass_defines.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_pmd_ixgbe/ixgbe_ethdev.c +121 -121
242 lines not on this page · raw message
lib/librte_pmd_ixgbe/ixgbe_pf.c +42 -42
84 lines not on this page · raw message
lib/librte_pmd_ixgbe/ixgbe_rxtx.c +56 -56
112 lines not on this page · raw message
lib/librte_pmd_virtio/virtio_ethdev.c +10 -10
Lines of this file are not shown. View the raw message.
lib/librte_pmd_vmxnet3/vmxnet3/includeCheck.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_pmd_vmxnet3/vmxnet3/upt1_defs.h +1 -1
Lines of this file are not shown. View the raw message.
lib/librte_pmd_vmxnet3/vmxnet3/vmware_pack_begin.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_pmd_vmxnet3/vmxnet3/vmware_pack_end.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_pmd_vmxnet3/vmxnet3/vmxnet3_defs.h +1 -1
Lines of this file are not shown. View the raw message.
lib/librte_pmd_vmxnet3/vmxnet3/vmxnet3_osdep.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_pmd_vmxnet3/vmxnet3_ethdev.c +12 -12
Lines of this file are not shown. View the raw message.
lib/librte_pmd_vmxnet3/vmxnet3_ethdev.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_pmd_xenvirt/rte_eth_xenvirt.c +8 -8
Lines of this file are not shown. View the raw message.
lib/librte_pmd_xenvirt/rte_eth_xenvirt.h +4 -4
Lines of this file are not shown. View the raw message.
lib/librte_pmd_xenvirt/rte_mempool_gntalloc.c +8 -8
Lines of this file are not shown. View the raw message.
lib/librte_sched/rte_approx.c +28 -28
56 lines not on this page · raw message
lib/librte_sched/rte_bitmap.h +51 -51
102 lines not on this page · raw message
lib/librte_sched/rte_red.h +25 -25
50 lines not on this page · raw message
lib/librte_sched/rte_sched.c +272 -272
544 lines not on this page · raw message
lib/librte_sched/rte_sched.h +48 -48
96 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.9.3
Part of the diff is not shown here. View the raw message.
Neil Horman
Acked-byQuoted 6 lines · Bruce Richardson
This commit removes trailing whitespace from lines in files. Almost all files are affected, as the BSD license copyright header had trailing whitespace on 4 lines in it [hence the number of files reporting 8 lines changed in the diffstat].
Signed-off-by Bruce Richardson <[email protected]>
Quoted 7 lines
Quoted 6 lines
This commit removes trailing whitespace from lines in files. Almost all files are affected, as the BSD license copyright header had trailing whitespace on 4 lines in it [hence the number of files reporting 8 lines changed in the diffstat].
Signed-off-by Bruce Richardson <[email protected]>Acked-by Neil Horman <[email protected]>
I've completed it with these changes:
- remove spaces before tabs in libs
- remove more trailing spaces in non-C files
Applied for version 1.7.0.
Some whitespaces and indentation errors are remaining, especially in examples. But it can be fixed when examples will be updated.
I'm not a big fan of such patch. I prefer to take care of not adding new spacing errors. So from now, trailing whitespaces, spaces before tabs and wrong indentation should be tracked carefully in new patches.
Thanks
Signature · 1 line
Thomas
Quoted 19 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Wednesday, June 11, 2014 3:04 AM
To: Richardson, Bruce
Cc: [email protected]; Neil Horman
Subject: Re: [dpdk-dev] [PATCH] fix trailing whitespace.Quoted 7 lines
Quoted 6 lines
This commit removes trailing whitespace from lines in files. Almost all files are affected, as the BSD license copyright header had trailing whitespace on 4 lines in it [hence the number of files reporting 8 lines changed in the diffstat].
Signed-off-by Bruce Richardson <[email protected]>Acked-by Neil Horman <[email protected]>I've completed it with these changes:
- remove spaces before tabs in libs
- remove more trailing spaces in non-C files
Quoted 8 lines
Applied for version 1.7.0.
Some whitespaces and indentation errors are remaining, especially in examples. But it can be fixed when examples will be updated.
I'm not a big fan of such patch. I prefer to take care of not adding new spacing errors. So from now, trailing whitespaces, spaces before tabs and wrong indentation should be tracked carefully in new patches.
Just FYI: my reasoning for cleaning it up now is that it allows us to write rules for our editors or IDEs to automatically fix whitespace errors on save (the patch I generated was created by using a vim rule on file save). Without having things cleaned up ahead of time, having a vim rule such as this will cleanup each file as it is modified, leading to lots of extra whitespace changes in our diffs, which are irrelevant to the code being changed. This then makes our lives harder when working on patches.
/Bruce
Quoted 21 lines · Bruce
Quoted 21 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Wednesday, June 11, 2014 3:04 AM
To: Richardson, Bruce
Cc: [email protected]; Neil Horman
Subject: Re: [dpdk-dev] [PATCH] fix trailing whitespace.Quoted 7 lines
Quoted 6 lines
This commit removes trailing whitespace from lines in files. Almost all files are affected, as the BSD license copyright header had trailing whitespace on 4 lines in it [hence the number of files reporting 8 lines changed in the diffstat].
Signed-off-by Bruce Richardson <[email protected]>Acked-by Neil Horman <[email protected]>I've completed it with these changes:
- remove spaces before tabs in libs
- remove more trailing spaces in non-C filesApplied for version 1.7.0.
Quoted 8 lines
Quoted 6 lines
Some whitespaces and indentation errors are remaining, especially in examples. But it can be fixed when examples will be updated.
I'm not a big fan of such patch. I prefer to take care of not adding new spacing errors. So from now, trailing whitespaces, spaces before tabs and wrong indentation should be tracked carefully in new patches.Just FYI: my reasoning for cleaning it up now is that it allows us to write rules for our editors or IDEs to automatically fix whitespace errors on save (the patch I generated was created by using a vim rule on file save). Without having things cleaned up ahead of time, having a vim rule such as this will cleanup each file as it is modified, leading to lots of extra whitespace changes in our diffs, which are irrelevant to the code being changed. This then makes our lives harder when working on patches.
This sort of change should probably be accompanied by a script to do patch checking prior to submission (something like checkpatch.pl in the linux kernel). Not every contributor will have a whitespace cleaning rule set, and such a checker will be allow users to clean patches prior to submission, both for whitepace errors and any other errors you want to enforce (trailing whtespace, leading spaces, parenthetical spaces, etc).
Neil
Quoted 2 lines
/Bruce