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
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
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
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
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
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
)
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
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
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
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
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
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
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
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
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
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
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
)
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
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
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
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
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
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
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
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
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
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
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
)
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
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
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
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
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
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
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
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
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
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
: 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
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
(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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 +++
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
56 matches
Mail list logo