[dpdk-dev] [PATCH v2] eal: add counter size for efd clean

2017-08-13 Thread Jingjing Wu
For virtual device, the rte_intr_handle struct is initialized by the virtual device driver, including the event fd assignment. If the event fd need to be read for clean, an argument is required for the proper event fd read. This patch adds efd_counter_size in rte_intr_handle struct to tell the rx

[dpdk-dev] [PATCH] timer: move 64bit specific code under ARCH64

2017-08-13 Thread Jerin Jacob
64bit load and store will be an atomic operation on all the 64bit processors. Change RTE_ARCH_X86_64 to RTE_ARCH_64 to reflect the case. Fixes: 9b15ba895b9f ("timer: use a skip list") Cc: sta...@dpdk.org Signed-off-by: Jerin Jacob --- lib/librte_timer/rte_timer.c | 2 +- 1 file changed, 1 insert

[dpdk-dev] [PATCH 2/2] net/mlx5: fix probe failure report

2017-08-13 Thread Matan Azrad
The corrupted code doesn't return error when probe function fails due to error in device mac address getting. By this way, the probe function may return success even if the ETH dev is not allocated. Hence, the probe caller, for example failsafe PMD, fails when it tries to get ETH dev after the dev

[dpdk-dev] [PATCH 1/2] net/mlx5: support device removal event

2017-08-13 Thread Matan Azrad
Extend the LSC event handling to support the device removal as well. The Verbs library may send several related events, which are different from LSC event. The mlx5 event handling has been made capable of receiving and signaling several event types at once. This support includes next: 1. Removal

[dpdk-dev] [PATCH 5/5] eal/timer: honor architecture specific rdtsc hz function

2017-08-13 Thread Jerin Jacob
When calibrating the tsc frequency, first, probe the architecture specific rdtsc hz function. if not available, use the existing calibrate scheme to calibrate the tsc frequency. Signed-off-by: Jerin Jacob --- lib/librte_eal/common/eal_common_timer.c | 5 - 1 file changed, 4 insertions(+), 1

[dpdk-dev] [PATCH 4/5] eal/armv8: define architecture specific rdtsc hz

2017-08-13 Thread Jerin Jacob
Use cntvct_el0 system register to get the system counter frequency. If the system is configured with RTE_ARM_EAL_RDTSC_USE_PMU then return 0(let the common code calibrate the tsc frequency). CC: Jianbo Liu Signed-off-by: Jerin Jacob --- .../common/include/arch/arm/rte_cycles_64.h| 30 +

[dpdk-dev] [PATCH 3/5] eal/armv7: define architecture specific rdtsc hz

2017-08-13 Thread Jerin Jacob
CC: Jan Viktorin CC: Jianbo Liu Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/arm/rte_cycles_32.h | 13 + 1 file changed, 13 insertions(+) diff --git a/lib/librte_eal/common/include/arch/arm/rte_cycles_32.h b/lib/librte_eal/common/include/arch/arm/rte_cycles_32

[dpdk-dev] [PATCH 2/5] eal/ppc64: define architecture specific rdtsc hz

2017-08-13 Thread Jerin Jacob
CC: Chao Zhu Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h | 13 + 1 file changed, 13 insertions(+) diff --git a/lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h b/lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h index 8fa6fc60b..

[dpdk-dev] [PATCH 1/5] eal/x86: define architecture specific rdtsc hz

2017-08-13 Thread Jerin Jacob
CC: Bruce Richardson CC: Konstantin Ananyev Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/x86/rte_cycles.h | 13 + 1 file changed, 13 insertions(+) diff --git a/lib/librte_eal/common/include/arch/x86/rte_cycles.h b/lib/librte_eal/common/include/arch/x86/rte_cy

[dpdk-dev] [PATCH 0/5] improve tsc frequency calibration

2017-08-13 Thread Jerin Jacob
Some architecture like armv8 provides an architecture specific function to get the rdtsc frequency. The existing rdtsc calibration scheme uses OS serivce like sleep(1) to calibrate the frequency which may not produce the accurate result. Introducing an architecture specific hook to get the rdtsc fr