[dpdk-dev] [PATCH v2] librte_cmdline: FreeBSD Fix oveflow when size of command result structure is greater than BUFSIZ

2014-11-10 Thread Alan Carew
mmitdiff;h=b1d5b169352e57df3fc14c51ffad4b83f3e5613f Signed-off-by: Alan Carew --- lib/librte_cmdline/cmdline_parse.c | 22 +++--- lib/librte_cmdline/cmdline_parse.h | 3 +++ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/lib/librte_cmdline/cmdline_parse.c b/lib/librte_cmdline/cmdli

[dpdk-dev] [PATCH] librte_cmdline: FreeBSD Fix oveflow when size of command result structure is greater than BUFSIZ

2014-10-20 Thread Alan Carew
lter 0 udp src 192.168.0.0 1024 dst 192.168.0.0 1024 flexbytes 0x800 vlan 0 queue 0 soft 0x17 Signed-off-by: Alan Carew --- lib/librte_cmdline/cmdline_parse.c | 2 +- lib/librte_cmdline/cmdline_parse.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/librte_cmdline/cmdli

[dpdk-dev] [PATCH] librte_eal: FreeBSD contigmem prevent possible buffer overrun during module unload.

2014-10-14 Thread Alan Carew
prevent this allocation from occuring the logic in contigmem_unload() will attempt to free hw.contigmem.num_buffers and an overrun occurs. This patch limits the freeing to a maximum of RTE_CONTIGMEM_MAX_NUM_BUFS. Signed-off-by: Alan Carew --- lib/librte_eal/bsdapp/contigmem/contigmem.c | 2 +- 1

[dpdk-dev] [PATCH v4 10/10] VM Power Management Unit Tests

2014-10-12 Thread Alan Carew
Updated the unit tests to cover both librte_power implementations as well as the external API. Signed-off-by: Alan Carew --- app/test/Makefile | 3 +- app/test/autotest_data.py | 26 ++ app/test/test_power.c | 445 +++--- app

[dpdk-dev] [PATCH v4 09/10] Build system integration for VM Power Management(Guest and Host)

2014-10-12 Thread Alan Carew
librte_power now contains both rte_power_acpi_cpufreq and rte_power_kvm_vm implementations. Signed-off-by: Alan Carew --- lib/librte_power/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_power/Makefile b/lib/librte_power/Makefile index 6185812..d672a5a

[dpdk-dev] [PATCH v4 08/10] Packet format for VM Power Management(Host and Guest).

2014-10-12 Thread Alan Carew
Provides a command packet format for host and guest. Signed-off-by: Alan Carew --- lib/librte_power/channel_commands.h | 77 + 1 file changed, 77 insertions(+) create mode 100644 lib/librte_power/channel_commands.h diff --git a/lib/librte_power

[dpdk-dev] [PATCH v4 07/10] librte_power common interface for Guest and Host

2014-10-12 Thread Alan Carew
) rte_power_freq_min(unsigned lcore_id) rte_power_freq_max(unsigned lcore_id) The other unsupported APIs return -ENOTSUP Signed-off-by: Alan Carew --- lib/librte_power/rte_power.c | 540 - lib/librte_power/rte_power.h | 120 +-- lib

[dpdk-dev] [PATCH v4 06/10] VM communication channels for VM Power Management(Guest).

2014-10-12 Thread Alan Carew
application has exclusive to a device/channel. Each channel is opened in non-blocking mode, after a successful open a test packet is send to the host to ensure the host side is monitoring. Signed-off-by: Alan Carew --- lib/librte_power/guest_channel.c | 162

[dpdk-dev] [PATCH v4 05/10] VM Power Management CLI(Guest).

2014-10-12 Thread Alan Carew
be monitored by the host. After successful initialisation a CPU frequency command can be sent to the host using: set_cpu_freq . Signed-off-by: Alan Carew --- examples/vm_power_manager/guest_cli/Makefile | 56 examples/vm_power_manager/guest_cli/main.c | 87

[dpdk-dev] [PATCH v4 04/10] VM Power Management application and Makefile.

2014-10-12 Thread Alan Carew
For launching CLI thread and Monitor thread and initialising resources. Requires a minimum of two lcores to run, additional cores specified by eal core mask are not used. Signed-off-by: Alan Carew --- examples/vm_power_manager/Makefile | 57 ++ examples/vm_power_manager/main.c

[dpdk-dev] [PATCH v4 03/10] CPU Frequency Power Management(Host).

2014-10-12 Thread Alan Carew
A wrapper around librte_power(using ACPI cpufreq), providing locking around the non-threadsafe library, allowing for frequency changes based on core masks and core numbers from both the CLI thread and epoll monitor thread. Signed-off-by: Alan Carew --- examples/vm_power_manager/power_manager.c

[dpdk-dev] [PATCH v4 02/10] VM Power Management CLI(Host).

2014-10-12 Thread Alan Carew
equency for the specified core set_cpu_freq [Fixed STRING]: set_cpu_freq , Set the current frequency for the specified core by scaling up/down/min/max quit [Fixed STRING]: close the application Signed-off-by: Alan Carew --- examples/vm_power_manager/vm_power_cli.c | 669

[dpdk-dev] [PATCH v4 01/10] Channel Manager and Monitor for VM Power Management(Host).

2014-10-12 Thread Alan Carew
LIN events and mapping the vCPU to pCPU(s) associated with a request from a particular VM. Signed-off-by: Alan Carew --- examples/vm_power_manager/channel_manager.c | 804 examples/vm_power_manager/channel_manager.h | 314 +++ examples/vm_power_manager/channel

[dpdk-dev] [PATCH v4 00/10] VM Power Management

2014-10-12 Thread Alan Carew
vCPU pinning via CLI Changes in V2: Runtime selection of librte_power implementations. Updated Unit tests to cover librte_power changes. PATCH[0/3] was sent twice, again as PATCH[0/4] Miscellaneous fixes. Alan Carew (10): Channel Manager and Monitor for VM Power Management(Host). VM Power

[dpdk-dev] [PATCH v3 10/10] VM Power Management Unit Tests

2014-09-29 Thread Alan Carew
Updated the unit tests to cover both librte_power implementations as well as the external API. Signed-off-by: Alan Carew --- app/test/Makefile | 3 +- app/test/autotest_data.py | 26 ++ app/test/test_power.c | 445 +++--- app

[dpdk-dev] [PATCH v3 09/10] Build system integration for VM Power Management(Guest and Host)

2014-09-29 Thread Alan Carew
librte_power now contains both rte_power_acpi_cpufreq and rte_power_kvm_vm implementations. Signed-off-by: Alan Carew --- lib/librte_power/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_power/Makefile b/lib/librte_power/Makefile index 6185812..d672a5a

[dpdk-dev] [PATCH v3 08/10] Packet format for VM Power Management(Host and Guest).

2014-09-29 Thread Alan Carew
Provides a command packet format for host and guest. Signed-off-by: Alan Carew --- lib/librte_power/channel_commands.h | 77 + 1 file changed, 77 insertions(+) create mode 100644 lib/librte_power/channel_commands.h diff --git a/lib/librte_power

[dpdk-dev] [PATCH v3 07/10] librte_power common interface for Guest and Host

2014-09-29 Thread Alan Carew
) rte_power_freq_min(unsigned lcore_id) rte_power_freq_max(unsigned lcore_id) The other unsupported APIs return -ENOTSUP Signed-off-by: Alan Carew --- lib/librte_power/rte_power.c | 540 - lib/librte_power/rte_power.h | 120 +-- lib

[dpdk-dev] [PATCH v3 06/10] VM communication channels for VM Power Management(Guest).

2014-09-29 Thread Alan Carew
application has exclusive to a device/channel. Each channel is opened in non-blocking mode, after a successful open a test packet is send to the host to ensure the host side is monitoring. Signed-off-by: Alan Carew --- lib/librte_power/guest_channel.c | 162

[dpdk-dev] [PATCH v3 05/10] VM Power Management CLI(Guest).

2014-09-29 Thread Alan Carew
be monitored by the host. After successful initialisation a CPU frequency command can be sent to the host using: set_cpu_freq . Signed-off-by: Alan Carew --- examples/vm_power_manager/guest_cli/Makefile | 56 examples/vm_power_manager/guest_cli/main.c | 87

[dpdk-dev] [PATCH v3 04/10] VM Power Management application and Makefile.

2014-09-29 Thread Alan Carew
For launching CLI thread and Monitor thread and initialising resources. Requires a minimum of two lcores to run, additional cores specified by eal core mask are not used. Signed-off-by: Alan Carew --- examples/vm_power_manager/Makefile | 57 +++ examples/vm_power_manager/main.c

[dpdk-dev] [PATCH v3 03/10] CPU Frequency Power Management(Host).

2014-09-29 Thread Alan Carew
A wrapper around librte_power(using ACPI cpufreq), providing locking around the non-threadsafe library, allowing for frequency changes based on core masks and core numbers from both the CLI thread and epoll monitor thread. Signed-off-by: Alan Carew --- examples/vm_power_manager/power_manager.c

[dpdk-dev] [PATCH v3 02/10] VM Power Management CLI(Host).

2014-09-29 Thread Alan Carew
equency for the specified core set_cpu_freq [Fixed STRING]: set_cpu_freq , Set the current frequency for the specified core by scaling up/down/min/max quit [Fixed STRING]: close the application Signed-off-by: Alan Carew --- examples/vm_power_manager/vm_power_cli.c | 669

[dpdk-dev] [PATCH v3 01/10] Channel Manager and Monitor for VM Power Management(Host).

2014-09-29 Thread Alan Carew
LIN events and mapping the vCPU to pCPU(s) associated with a request from a particular VM. Signed-off-by: Alan Carew --- examples/vm_power_manager/channel_manager.c | 804 examples/vm_power_manager/channel_manager.h | 314 +++ examples/vm_power_manager/channel

[dpdk-dev] [PATCH v3 00/10] VM Power Management

2014-09-29 Thread Alan Carew
tion of librte_power implementations. Updated Unit tests to cover librte_power changes. PATCH[0/3] was sent twice, again as PATCH[0/4] Miscellaneous fixes. Alan Carew (10): Channel Manager and Monitor for VM Power Management(Host). VM Power Management CLI(Host). CPU Frequency Power Manageme

[dpdk-dev] [PATCH v2 10/10] VM Power Management Unit Tests

2014-09-24 Thread Alan Carew
Updated the unit tests to cover both librte_power implementations as well as the external API. Signed-off-by: Alan Carew --- app/test/Makefile | 3 +- app/test/autotest_data.py | 26 ++ app/test/test_power.c | 445 +++--- app

[dpdk-dev] [PATCH v2 09/10] Build system integration for VM Power Management(Guest and Host)

2014-09-24 Thread Alan Carew
librte_power now contains both rte_power_acpi_cpufreq and rte_power_kvm_vm implementations. Signed-off-by: Alan Carew --- lib/librte_power/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_power/Makefile b/lib/librte_power/Makefile index 6185812..d672a5a

[dpdk-dev] [PATCH v2 08/10] Packet format for VM Power Management(Host and Guest).

2014-09-24 Thread Alan Carew
Provides a command packet format for host and guest. Signed-off-by: Alan Carew --- lib/librte_power/channel_commands.h | 68 + 1 file changed, 68 insertions(+) create mode 100644 lib/librte_power/channel_commands.h diff --git a/lib/librte_power

[dpdk-dev] [PATCH v2 07/10] librte_power common interface for Guest and Host

2014-09-24 Thread Alan Carew
) rte_power_freq_min(unsigned lcore_id) rte_power_freq_max(unsigned lcore_id) The other unsupported APIs return -ENOTSUP Signed-off-by: Alan Carew --- lib/librte_power/rte_power.c | 540 - lib/librte_power/rte_power.h | 120 +-- lib

[dpdk-dev] [PATCH v2 06/10] VM communication channels for VM Power Management(Guest).

2014-09-24 Thread Alan Carew
application has exclusive to a device/channel. Each channel is opened in non-blocking mode, after a successful open a test packet is send to the host to ensure the host side is monitoring. Signed-off-by: Alan Carew --- lib/librte_power/guest_channel.c | 162

[dpdk-dev] [PATCH v2 05/10] VM Power Management CLI(Guest).

2014-09-24 Thread Alan Carew
be monitored by the host. After successful initialisation a CPU frequency command can be sent to the host using: set_cpu_freq . Signed-off-by: Alan Carew --- examples/vm_power_manager/guest_cli/Makefile | 56 examples/vm_power_manager/guest_cli/main.c | 86

[dpdk-dev] [PATCH v2 04/10] VM Power Management application and Makefile.

2014-09-24 Thread Alan Carew
For launching CLI thread and Monitor thread and initialising resources. Requires a minimum of two lcores to run, additional cores specified by eal core mask are not used. Signed-off-by: Alan Carew --- examples/vm_power_manager/Makefile | 57 +++ examples/vm_power_manager/main.c

[dpdk-dev] [PATCH v2 03/10] CPU Frequency Power Management(Host).

2014-09-24 Thread Alan Carew
A wrapper around librte_power(using ACPI cpufreq), providing locking around the non-threadsafe library, allowing for frequency changes based on core masks and core numbers from both the CLI thread and epoll monitor thread. Signed-off-by: Alan Carew --- examples/vm_power_manager/power_manager.c

[dpdk-dev] [PATCH v2 02/10] VM Power Management CLI(Host).

2014-09-24 Thread Alan Carew
equency for the specified core set_cpu_freq [Fixed STRING]: set_cpu_freq , Set the current frequency for the specified core by scaling up/down/min/max quit [Fixed STRING]: close the application Signed-off-by: Alan Carew --- examples/vm_power_manager/vm_power_cli.c | 568

[dpdk-dev] [PATCH v2 01/10] Channel Manager and Monitor for VM Power Management(Host).

2014-09-24 Thread Alan Carew
LIN events and mapping the vCPU to pCPU(s) associated with a request from a particular VM. Signed-off-by: Alan Carew --- examples/vm_power_manager/channel_manager.c | 645 examples/vm_power_manager/channel_manager.h | 273 examples/vm_pow

[dpdk-dev] [PATCH v2 00/10] VM Power Management

2014-09-24 Thread Alan Carew
08/09] The current l3fwd-power sample application can also be run on a VM. Changes in V2: Runtime selection of librte_power implementations. Updated Unit tests to cover librte_power changes. PATCH[0/3] was sent twice, again as PATCH[0/4] Miscellaneous fixes. Alan Carew (10): Channel Manage

[dpdk-dev] [PATCH 10/10] VM Power Management CLI(Guest).

2014-09-22 Thread Alan Carew
be monitored by the host. After successful initialisation a CPU frequency command can be sent to the host using: set_cpu_freq . Signed-off-by: Alan Carew --- examples/vm_power_manager/guest_cli/Makefile | 56 examples/vm_power_manager/guest_cli/main.c | 87

[dpdk-dev] [PATCH 09/10] VM Power Management Unit Tests(Guest)

2014-09-22 Thread Alan Carew
Signed-off-by: Alan Carew --- app/test/Makefile | 1 + app/test/autotest_data.py | 13 +++ app/test/test_power_vm.c | 215 ++ 3 files changed, 229 insertions(+) create mode 100644 app/test/test_power_vm.c diff --git a/app/test/Makefile b

[dpdk-dev] [PATCH 08/10] Build system integration for VM Power Management(Guest and Host)

2014-09-22 Thread Alan Carew
: CONFIG_RTE_LIBRTE_POWER_VM=y and Add CONFIG_RTE_LIBRTE_POWER=n When building for either the resulting library is called rte_power. Signed-off-by: Alan Carew --- config/common_linuxapp | 6 ++ lib/Makefile | 1 + mk/rte.app.mk | 4 3 files changed, 11 insertions(+) diff --git a/config

[dpdk-dev] [PATCH 07/10] Packet format for VM Power Management(Host and Guest).

2014-09-22 Thread Alan Carew
Provides a command packet format for host and guest. Signed-off-by: Alan Carew --- lib/librte_power_vm/channel_commands.h | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 lib/librte_power_vm/channel_commands.h diff --git a/lib/librte_power_vm

[dpdk-dev] [PATCH 06/10] Alternate implementation of librte_power for VM Power Management(Guest).

2014-09-22 Thread Alan Carew
(unsigned lcore_id) rte_power_freq_down(unsigned lcore_id) rte_power_freq_min(unsigned lcore_id) rte_power_freq_max(unsigned lcore_id) The other unsupported APIs from librte_power return -ENOTSUP. Signed-off-by: Alan Carew --- lib/librte_power_vm/Makefile| 49 ++ lib

[dpdk-dev] [PATCH 05/10] VM communication channels for VM Power Management(Guest).

2014-09-22 Thread Alan Carew
application has exclusive to a device/channel. Each channel is opened in non-blocking mode, after a successful open a test packet is send to the host to ensure the host side is monitoring. Signed-off-by: Alan Carew --- lib/librte_power_vm/guest_channel.c | 150

[dpdk-dev] [PATCH 04/10] CPU Frequency Power Management(Host).

2014-09-22 Thread Alan Carew
A wrapper around librte_power, providing locking around the non-threadsafe library, allowing for frequency changes based on core masks and core numbers from both the CLI thread and epoll monitor thread. Signed-off-by: Alan Carew --- examples/vm_power_manager/Makefile | 57

[dpdk-dev] [PATCH 03/10] CPU Frequency Power Management(Host).

2014-09-22 Thread Alan Carew
A wrapper around librte_power, providing locking around the non-threadsafe library, allowing for frequency changes based on core masks and core numbers from both the CLI thread and epoll monitor thread. Signed-off-by: Alan Carew --- examples/vm_power_manager/power_manager.c | 234

[dpdk-dev] [PATCH 02/10] VM Power Management CLI(Host).

2014-09-22 Thread Alan Carew
equency for the specified core set_cpu_freq [Fixed STRING]: set_cpu_freq , Set the current frequency for the specified core by scaling up/down/min/max quit [Fixed STRING]: close the application Signed-off-by: Alan Carew --- examples/vm_power_manager/vm_power_cli.c | 567

[dpdk-dev] [PATCH 01/10] Channel Manager and Monitor for VM Power Management(Host).

2014-09-22 Thread Alan Carew
LIN events and mapping the vCPU to pCPU(s) associated with a request from a particular VM. Signed-off-by: Alan Carew --- examples/vm_power_manager/channel_manager.c | 643 examples/vm_power_manager/channel_manager.h | 273 examples/vm_pow

[dpdk-dev] [PATCH 00/10] VM Power Management

2014-09-22 Thread Alan Carew
mple application can also be run on a VM. Alan Carew (10): Channel Manager and Monitor for VM Power Management(Host). VM Power Management CLI(Host). CPU Frequency Power Management(Host). CPU Frequency Power Management(Host). VM communication channels for VM Power Management(Guest). Alte

[dpdk-dev] [PATCH 1/1] librte_pmd_virtio: Fix incorrect device specific header offset when MSI-X is disabled

2014-06-16 Thread Alan Carew
Signed-off-by: Alan Carew --- config/common_bsdapp | 2 +- lib/librte_pmd_virtio/virtio_ethdev.c | 28 +++- lib/librte_pmd_virtio/virtio_pci.h| 5 ++--- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/config/common_bsdapp b/config

[dpdk-dev] [PATCH 0/1] librte_pmd_virtio: Fix incorrect device specific header offset when MSI-X is disabled

2014-06-16 Thread Alan Carew
virtio_ethdev, I am basing this on Stephens effort to include FreeBSD support. Suggested-by: Neil Horman Suggested-by: Stephen Hemminger Alan Carew (1): librte_pmd_virtio: Fix incorrect device specific header offset when MSI-X is disabled config/common_bsdapp | 2 +- lib

[dpdk-dev] [PATCH 2/2] eal_pci: Fix compilation under FreeBSD

2014-06-05 Thread Alan Carew
I'm not sure why this has not caused an issue before, perhaps missing -Werror=unused-parameter or super-set and subsequently fixed. This patch adds __rte_unused to pci_unbind_kernel_driver(struct rte_pci_device *dev) Signed-off-by: Alan Carew --- lib/librte_eal/bsdapp/eal/eal_pci.c | 2

[dpdk-dev] [PATCH 1/2] rte_tailq.h: Fix compilation under FreeBSD

2014-06-05 Thread Alan Carew
Recent change to rte_dump_tailq, which now uses a FILE parameter causes compilation to fail under FreeBSD and sourced to a missing include of stdio.h This and next patch(both small) allows to compile without error. Signed-off-by: Alan Carew --- lib/librte_eal/common/include/rte_tailq.h | 1

[dpdk-dev] [PATCH 4/4] [PATCH 4/4] virtio: Fixes the VIRTIO_PCI_CONFIG macro to use the correct offset to the Virtio header

2014-06-05 Thread Alan Carew
This final patch address the issue of not being able to determine the correct offet when MSI-X is disabled. Signed-off-by: Alan Carew --- lib/librte_pmd_virtio/virtio_ethdev.c |1 + lib/librte_pmd_virtio/virtio_pci.h|4 +++- 2 files changed, 4 insertions(+), 1 deletions(-) diff

[dpdk-dev] [PATCH 3/4] [PATCH 3/4] FreeBSD: Adds the equivalent interrupt mode setting and parsing

2014-06-05 Thread Alan Carew
This patch adds the equivalent functionality to FreeBSD as with patches 1 and 2 Signed-off-by: Alan Carew --- lib/librte_eal/bsdapp/eal/eal_pci.c | 45 +++ lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 14 + 2 files changed, 59 insertions(+), 0 deletions

[dpdk-dev] [PATCH 2/4] [PATCH 2/4] eal_pci: Add interrupt mode to rte_pci_device and parsing to eal_pci

2014-06-05 Thread Alan Carew
This patch adds a shared enum between user and kernel space to rte_pci_device. The value of intr_mode is parsed by eal_pci during pci_uio_map_resource Signed-off-by: Alan Carew --- lib/librte_eal/common/Makefile |1 + lib/librte_eal/common/include/rte_pci.h |2 + lib/librte_eal

[dpdk-dev] [PATCH 1/4] [PATCH 1/4] igb_uio: Add interrupt_mode sysfs entry for igb_uio devices

2014-06-05 Thread Alan Carew
This patch adds an "interrupt_mode" sysfs entry for igb_uio devices, allowing userspace eal_pci to track which interrupt mode has been enabled in kernel space. The sysfs entry can be inspected via /sys/bus/pci/devices/ --- .../common/include/rte_pci_dev_feature_defs.h | 85 +++

[dpdk-dev] [PATCH 0/4] librte_pmd_virtio :Fix: virtio_pci.h non-existent virtio feature bit-flag tested

2014-06-05 Thread Alan Carew
determine the configured mode, which allows all user space devices to correctly determine the interrupt mode, including virtio_ethdev. This series should be applied prior to Anatoly Burakov's [VFIO] Add VFIO support to DPDK series Alan Carew (4): igb_uio: Add interrupt_mode sysfs entry