[dpdk-dev] [PATCH] eal: sPAPR IOMMU support in pci probing for vfio-pci in ppc64le

2017-02-09 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Below changes adds pci probing support for vfio-pci devices in power8. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chao Zhu --- lib/librte_eal/linuxapp/eal/eal_vfio.c | 88 ++ lib/librte_eal/linuxapp/eal/eal_vfio.h | 1

[dpdk-dev] [PATCH v2] net/bonding: support bifurcated driver in eal cli using --vdev

2017-07-04 Thread Gowrishankar
From: Gowrishankar Muthukrishnan At present, creating bonding devices using --vdev is broken for PMD like mlx5 as it is neither UIO nor VFIO based and hence PMD driver is unknown to find_port_id_by_pci_addr(), as below. testpmd --vdev 'net_bonding0,mode=1,slave=,socket_id=0&

[dpdk-dev] [PATCH] mlx5: fix get link settings call for speed and duplex values

2017-07-17 Thread Gowrishankar
From: Gowrishankar Muthukrishnan mlx5 pmd does not correctly retrieve link speed and duplex values in linksetting struct through ETHTOOL_GLINKSETTINGS ioctl call. Due to which pktgen application could not correctly calculate tx/rx rate and hence, very few packets (of count 32) only sent all the

[dpdk-dev] [PATCH v2] net/mlx5: fix get link settings call for speed and duplex values

2017-07-24 Thread Gowrishankar
From: Gowrishankar Muthukrishnan ETHTOOL_GLINKSETTINGS ioctl call in mlx5 pmd returns inconsistent link status due to which any application relying on it would not function correctly. Changes: v2 - coding style update Fixes: 188408719888 ("net/mlx5: fix support for newer link speeds"

[dpdk-dev] [PATCH] net/mlx5: fix inconsistent link status query

2017-07-25 Thread Gowrishankar
From: Gowrishankar Muthukrishnan ETHTOOL_GLINKSETTINGS ioctl call in mlx5 pmd returns inconsistent link status due to which any application relying on it would not function correctly. Fixes: 188408719888 ("net/mlx5: fix support for newer link speeds") Cc: sta...@dpdk.org Sig

[dpdk-dev] [PATCH v4] net/mlx5: fix inconsistent link status query

2017-07-25 Thread Gowrishankar
From: Gowrishankar Muthukrishnan ETHTOOL_GLINKSETTINGS ioctl call in mlx5 pmd returns inconsistent link status due to which any application relying on it would not function correctly. Fixes: 188408719888 ("net/mlx5: fix support for newer link speeds") Cc: sta...@dpdk.org Sig

[dpdk-dev] [PATCH v2] net/bonding: enable bonding pmd in ppc64le

2017-07-31 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Earlier bonding pmd was disabled in default config for ppc64le. Hence, removing it as it has been verified. Signed-off-by: Gowrishankar Muthukrishnan --- v2: - remove configuration variable for default enablement config/defconfig_ppc_64-power8-linuxapp-gcc

[dpdk-dev] [PATCH] i40e: implement vector PMD for altivec

2017-02-18 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch enables i40e driver in powerpc along with its altivec intrinsic support. Signed-off-by: Gowrishankar Muthukrishnan --- MAINTAINERS | 1 + config/defconfig_ppc_64-power8-linuxapp-gcc | 2 +- doc/guides/nics

[dpdk-dev] [PATCH v2] i40e: implement vector PMD for altivec

2017-02-20 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Changes: v2 - minor corrections for gcc strict aliasing and coding style standard. This patch enables i40e driver in powerpc along with its altivec intrinsic support. Signed-off-by: Gowrishankar Muthukrishnan --- MAINTAINERS

[dpdk-dev] [PATCH v3] i40e: implement vector PMD for altivec

2017-02-20 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Changes: v3 - minor corrections for coding style standard. v2 - minor corrections for gcc strict aliasing and coding style standard. This patch enables i40e driver in powerpc along with its altivec intrinsic support. Signed-off-by: Gowrishankar Muthukrishnan

[dpdk-dev] [PATCH v4] i40e: implement vector PMD for altivec

2017-02-22 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch enables i40e driver in powerpc along with its altivec intrinsic support. Changes: v4 - docs and config update. v3 - minor corrections for coding style standard. v2 - minor corrections for gcc strict aliasing and coding style standard. Signed-off-by

[dpdk-dev] [PATCH v2] eal: sPAPR IOMMU support in pci probing for vfio-pci in ppc64le

2017-03-02 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Below changes adds pci probing support for vfio-pci devices in power8. Changes: v2 - kernel version checked and doc updated Signed-off-by: Gowrishankar Muthukrishnan --- doc/guides/rel_notes/release_17_05.rst | 4 ++ lib/librte_eal/linuxapp/eal/eal_vfio.c

[dpdk-dev] [PATCH v3] eal: sPAPR IOMMU support in pci probing for vfio-pci in ppc64le

2017-03-06 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Below changes adds pci probing support for vfio-pci devices in power8. v3 - better validation for kernel not implementing few iocts called v2 - kernel version checked and doc updated Signed-off-by: Gowrishankar Muthukrishnan --- doc/guides/rel_notes

[dpdk-dev] [PATCH v7 1/9] lpm: add altivec intrinsics for dpdk lpm on ppc_64

2016-09-08 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch adds ppc64le port for LPM library in DPDK. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chao Zhu --- app/test/test_xmmt_ops.h | 16 +++ config/defconfig_ppc_64-power8-linuxapp-gcc| 1 - .../common/include

[dpdk-dev] [PATCH v7 2/9] acl: add altivec intrinsics for dpdk acl on ppc_64

2016-09-08 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch adds port for ACL library in ppc64le. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Konstantin Ananyev Acked-by: Chao Zhu --- app/test-acl/main.c | 4 + config/defconfig_ppc_64-power8-linuxapp-gcc | 1 - lib

[dpdk-dev] [PATCH v7 3/9] l3fwd: add altivec support for em_hash_key

2016-09-08 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch adds ppc64le port for em_mask_key function. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chao Zhu --- examples/l3fwd/l3fwd_em.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/l3fwd/l3fwd_em.c b

[dpdk-dev] [PATCH v7 4/9] table: enable table library for ppc64le

2016-09-08 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch enables librte_table in ppc64le. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chao Zhu --- config/defconfig_ppc_64-power8-linuxapp-gcc | 1 - 1 file changed, 1 deletion(-) diff --git a/config/defconfig_ppc_64-power8-linuxapp-gcc b/config

[dpdk-dev] [PATCH v7 6/9] port: enable port library for ppc64le

2016-09-08 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch enables librte_port in ppc64le. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chao Zhu --- config/defconfig_ppc_64-power8-linuxapp-gcc | 1 - 1 file changed, 1 deletion(-) diff --git a/config/defconfig_ppc_64-power8-linuxapp-gcc b/config

[dpdk-dev] [PATCH v7 7/9] pipeline: enable pipeline library for ppc64le

2016-09-08 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch enables librte_pipeline for ppc64le. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chao Zhu --- config/defconfig_ppc_64-power8-linuxapp-gcc | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/defconfig_ppc_64-power8-linuxapp-gcc b

[dpdk-dev] [PATCH v7 8/9] ip_pipeline: fix lcore mapping for varying SMT threads as in ppc64

2016-09-08 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch fixes ip_pipeline panic in app_init_core_map while preparing cpu core map in powerpc with SMT off. cpu_core_map_compute_linux currently prepares core mapping based on file existence in sysfs ie. /sys/devices/system/cpu/cpu/topology/physical_package_id

[dpdk-dev] [PATCH v7 9/9] table: fix verification on hash bucket header alignment

2016-09-08 Thread Gowrishankar
From: Gowrishankar Muthukrishnan In powerpc systems, rte table hash structs rte_bucket_4_8, rte_bucket_4_16 and rte_bucket_4_32 are not cache aligned and hence verification on same would fail. Instead of checking alignment on cpu cacheline, it could equally be tested as multiple of 64 bytes

[dpdk-dev] [PATCH v7 0/9] enable lpm, acl and other missing libraries in ppc64le

2016-09-08 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patchset enables LPM, ACL and other few missing libs in ppc64le and also address few patches in related examples (ip_pipeline and l3fwd). Test report: 1. LPM and ACL unit tests passed. Steps: compile test app and run (with any needed params

[dpdk-dev] [PATCH v7 5/9] sched: enable sched library for ppc64le

2016-09-08 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch enables librte_sched in ppc64le. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Chao Zhu --- config/defconfig_ppc_64-power8-linuxapp-gcc | 1 - 1 file changed, 1 deletion(-) diff --git a/config/defconfig_ppc_64-power8-linuxapp-gcc b/config

[dpdk-dev] [PATCH] examples: fix ip_pipeline to load PMD driver correctly

2016-09-21 Thread Gowrishankar
From: Gowrishankar Muthukrishnan There is typo in init.c of ip_pipeline example due to which, invalid file path is added to -d option of EAL i.e path starting with =. Signed-off-by: Gowrishankar Muthukrishnan --- examples/ip_pipeline/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[dpdk-dev] [PATCH] net/bonding: enable bonding pmd in ppc64le

2017-06-14 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Earlier bonding pmd was disabled in default config for ppc64le. Same has been verified, with active-backup mode for an instance (to bond two VFs in each phy port): testpmd-bonding-cmd.txt: create bonded device 1 0 create bonded device 1 0 add bonding slave 0 4

[dpdk-dev] [PATCH] net/bonding: support bifurcated driver in eal cli using --vdev

2017-06-14 Thread Gowrishankar
From: Gowrishankar Muthukrishnan At present, creating bonding devices using --vdev is broken for PMD like mlx5 as it is neither UIO nor VFIO based and hence PMD driver is unknown to find_port_id_by_pci_addr(), as below. testpmd --vdev 'net_bonding0,mode=1,slave=,socket_id=0&

[dpdk-dev] [PATCH] net/i40e: fix compilation error in ppc64le

2017-04-20 Thread Gowrishankar
From: Gowrishankar Muthukrishnan A typo introduced in i40e_rxtx_vec_altivec.c from commit 67f038076657 ("net/i40e: enable per-device packet type mapping"). This patch is to address compilation error in ppc64le. Signed-off-by: Gowrishankar Muthukrishnan --- driver

[dpdk-dev] [PATCH] usertools: fix cpu_layout script for multithreads of more than 2

2017-04-28 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Current usertools/cpu_layout.py is broken to handle multithreads of count more than 2 as in IBM powerpc P8 servers. Below patch addressed this issue. Also, added minor exception catch on failing to open unavailable sys file in case of multithread=off

[dpdk-dev] [PATCH] kni: add new mbuf in alloc_q only based on its empty slots

2017-05-11 Thread Gowrishankar
From: Gowrishankar Muthukrishnan In kni_allocate_mbufs(), we attempt to add max_burst (32) count of mbuf always into alloc_q, which is excessively leading too many rte_pktmbuf_free() when alloc_q is contending at high packet rate (for eg 10Gig data). In a situation when alloc_q fifo can only

[dpdk-dev] [PATCH v2] kni: add new mbuf in alloc_q only based on its empty slots

2017-05-11 Thread Gowrishankar
From: Gowrishankar Muthukrishnan In kni_allocate_mbufs(), we attempt to add max_burst (32) count of mbuf always into alloc_q, which is excessively leading too many rte_pktmbuf_ free() when alloc_q is contending at high packet rate (for eg 10Gig data). In a situation when alloc_q fifo can only

[dpdk-dev] [PATCH 0/2] eal/malloc: fix wrong heap initialization over multiple memsegs

2018-05-03 Thread Gowrishankar
From: Gowrishankar Muthukrishnan When there are multiple memsegs (each per hugepage), there are couple of problems observed: 1. Same heap size index is always chosen to add new malloc_elems again and again, while there is an increasing heap size actually. Hence, when there is

[dpdk-dev] [PATCH 1/2] eal/malloc: merge malloc_elems in heap if they are contiguous

2018-05-03 Thread Gowrishankar
From: Gowrishankar Muthukrishnan During malloc heap init, if there are malloc_elems contiguous in virt addresses, they could be merged so that, merged malloc_elem would guarantee larger free memory size than its actual hugepage size, it was created for. Fixes: fafcc11985 ("mem: rework me

[dpdk-dev] [PATCH 2/2] eal/malloc: fix heap index to correctly insert memseg

2018-05-03 Thread Gowrishankar
From: Gowrishankar Muthukrishnan When there are multiple memsegs created and adding new memseg would cause bigger heap size, its index in free_head list should be based on new size of heap. Currently, only the size of elem is accounted as in malloc_elem_free_list_insert. As heap total size gets

[dpdk-dev] [PATCH] bus/fslmc: use PRIu64 instead of llX in format specifier

2018-04-12 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Instead of llX, use C99 standard "PRIu64" in format specifier. Former one breaks compile in ppc64le. Fixes: c2c167fdb3 ("bus/fslmc: support memory event callbacks for VFIO") Signed-off-by: Gowrishankar Muthukrishnan -- In file included f

[dpdk-dev] [PATCH] event/dpaa: fix integer overflow on max_event_ports at compile time

2018-04-12 Thread Gowrishankar
From: Gowrishankar Muthukrishnan dev_info->max_event_ports is uint8_t. dpaa_event_dev_info_get assigns DPAA_EVENT_MAX_EVENT_PORT (which is RTE_MAX_LCORE, upto 256 in ppc64le) into this variable, which breaks compile in ppc64le. Fixes: 9caac5dd1e ("event/dpaa: introduce PMD")

[dpdk-dev] [PATCH v2] bus/fslmc: use PRIu64 instead of llX in format specifier

2018-04-13 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Instead of llX, use C99 standard "PRIu64" in format specifier. Former one breaks compile in ppc64le. Fixes: c2c167fdb3 ("bus/fslmc: support memory event callbacks for VFIO") Signed-off-by: Gowrishankar Muthukrishnan -- v2: - corrected

[dpdk-dev] [PATCH v2] bus/fslmc: use PRIu64 instead of llX in format specifier

2018-04-13 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Instead of llX, use C99 standard "PRIu64" in format specifier. Former one breaks compile in ppc64le. Fixes: c2c167fdb3 ("bus/fslmc: support memory event callbacks for VFIO") Signed-off-by: Gowrishankar Muthukrishnan -- v2: - corrected

[dpdk-dev] [PATCH v3] bus/fslmc: use PRIu64 instead of llX in format specifier

2018-04-13 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Instead of llX, use C99 standard "PRIu64" in format specifier. Former one breaks compile in ppc64le. Fixes: c2c167fdb3 ("bus/fslmc: support memory event callbacks for VFIO") Signed-off-by: Gowrishankar Muthukrishnan -- v3: - correction to

[dpdk-dev] [PATCH v2 24/41] vfio: allow to map other memory regions

2018-03-30 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Below patch adds powerpc arch specific changes. Signed-off-by: Gowrishankar Muthukrishnan --- lib/librte_eal/linuxapp/eal/eal_vfio.c | 63 +- 1 file changed, 47 insertions(+), 16 deletions(-) diff --git a/lib/librte_eal

[dpdk-dev] [PATCH v2 24/41] vfio: allow to map other memory regions

2018-04-02 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Below patch adds powerpc arch specific changes. Signed-off-by: Gowrishankar Muthukrishnan --- lib/librte_eal/linuxapp/eal/eal_vfio.c | 110 +++-- 1 file changed, 105 insertions(+), 5 deletions(-) diff --git a/lib/librte_eal

[dpdk-dev] [PATCH v3] net/bonding: support bifurcated driver in eal cli using --vdev

2017-09-20 Thread Gowrishankar
From: Gowrishankar Muthukrishnan At present, creating bonding devices using --vdev is broken for PMD like mlx5 as it is neither UIO nor VFIO based and hence PMD driver is unknown to find_port_id_by_pci_addr(), as below. testpmd --vdev 'net_bonding0,mode=1,slave=,socket_id=0&

[dpdk-dev] [PATCH] examples/l3fwd: optimised packet processing on powerpc

2017-09-21 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch adds altivec support for lpm packet processing in powerpc. Signed-off-by: Gowrishankar Muthukrishnan --- examples/l3fwd/l3fwd_altivec.h | 279 + examples/l3fwd/l3fwd_lpm.c | 4 +- examples/l3fwd

[dpdk-dev] [PATCH v2] examples/l3fwd: optimised packet processing on powerpc

2017-09-21 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch adds altivec support for lpm packet processing in powerpc. Signed-off-by: Gowrishankar Muthukrishnan --- v2: * coding style standards MAINTAINERS| 1 + examples/l3fwd/l3fwd_altivec.h | 284

[dpdk-dev] [PATCH] eal: fix TSC resolution in hz for ppc_64 architecture

2017-09-21 Thread Gowrishankar
From: Gowrishankar Muthukrishnan In ppc_64, rte_rdtsc() returns timebase register value which increments at independent timebase frequency and hence not related to lcore cpu frequency to derive into. In this patch, we fix get_tsc_freq() to not depend upon rte_rdtsc(), but obtain cpu current

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

2017-09-22 Thread Gowrishankar
: Gowrishankar Muthukrishnan --- v2: * add ppc_64 specific implementation .../common/include/arch/ppc_64/rte_cycles.h| 24 ++ 1 file changed, 24 insertions(+) diff --git a/lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h b/lib/librte_eal/common/include/arch/ppc_64

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

2017-09-22 Thread Gowrishankar
From: Gowrishankar Muthukrishnan 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

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

2017-09-22 Thread Gowrishankar
From: 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 Acked-by: Jianbo Liu --- .../common/incl

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

2017-09-22 Thread Gowrishankar
From: 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,

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

2017-09-22 Thread Gowrishankar
From: 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/ar

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

2017-09-22 Thread Gowrishankar
From: Jerin Jacob CC: Bruce Richardson CC: Konstantin Ananyev Signed-off-by: Jerin Jacob Acked-by: Anatoly Burakov --- 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

[dpdk-dev] [PATCH] net/tap: define __NR_bpf for powerpc

2018-01-29 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch defines __NR_bpf for powerpc architecture and hence, fixes compiling tap driver for this architecture. Fixes: b02d85e1 ("net/tap: add eBPF API") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/net/tap/tap_bpf.h | 2 ++ 1 file

[dpdk-dev] [PATCH] ring: fix compilation error with a broken else clause

2018-01-30 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Calling rte_smp_wmb macro expands into a compound block, which would break compiling a else clause following it, if that calling place has been terminated already with ";", as in below code. This patch adds { } around this macro to allow compilin

[dpdk-dev] [PATCH] eal/ppc64: revert implement arch-specific TSC freq query

2018-01-30 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This reverts commit 15692396fd68932b6a81f00f12d4b0da12baa7d3 (eal/ppc64: implement arch-specific TSC freq query). We intended to derive pkt/sec estimation with cpu clock frequency. As timebase register serves the timer purpose, we need to stick with it for

[dpdk-dev] [PATCH v2] eal/ppc: fix compilation error with a broken else clause

2018-01-30 Thread Gowrishankar
From: Gowrishankar Muthukrishnan Calling rte_smp_{w/r}mb macro expands into a compound block, which would break compiling a else clause following it, if that calling place has been terminated already with ";", as in below code. This patch adds { } around this macro to allow compilin

[dpdk-dev] [PATCH] eal/ppc: fix rte_smp_mb for a compilation error with else clause

2018-02-27 Thread Gowrishankar
From: Gowrishankar Muthukrishnan This patch fixes the compilation problem with rte_smp_mb, when there is else clause following it, as in test_barrier.c. Fixes: 05c3fd7110 ("eal/ppc: atomic operations for IBM Power") Cc: sta...@dpdk.org Signed-off-by: Gowrishankar Muthukrishnan

[dpdk-dev] [PATCH] net/bonding: avoid wrong casting on primary_slave_port_id from input param

2018-03-06 Thread Gowrishankar
From: Gowrishankar Muthukrishnan primary_slave_port_id is uint16_t which needs to be correctly stored with the same data type of input parameter in bond_ethdev_configure. Fixes: f8244c6399 ("ethdev: increase port id range") Cc: sta...@dpdk.org Signed-off-by: Gowrishankar Muthukrishna

[dpdk-dev] linking error with dpdk

2016-06-20 Thread gowrishankar
t; /home/ubuntu/raja2/dpdk-2.2.0/lib You need to have CONFIG_RTE_BUILD_COMBINE_LIBS=y if you are trying dpdk-2.2.0 or less. As Ferruh replied earlier, refer to dpdk version what INSTALL.DPDK.md suggests. Thanks, Gowrishankar > ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var > --wi

[dpdk-dev] [PATCH] eal/ppc: fix secondary process to map hugepages in correct order

2016-03-07 Thread Gowrishankar
decrementing addresses. Signed-off-by: Gowrishankar --- lib/librte_eal/linuxapp/eal/eal_memory.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c index 5b9132c..6aea5d0

[dpdk-dev] [PATCH 1/6] config: enable lpm, port, table, pipeline, acl, sched libraries for ppc64le

2016-07-07 Thread Gowrishankar
From: gowrishankar In this patch, DPDK libraries such as LPM, port, table, pipeline, ACL, and sched are enabled for ppc64le. Signed-off-by: Gowrishankar --- config/defconfig_ppc_64-power8-linuxapp-gcc | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config

[dpdk-dev] [PATCH 0/6] enable lpm, acl and other missing libraries in ppc64le

2016-07-07 Thread Gowrishankar
This patchset enables LPM, ACL and other few missing libs in ppc64le and also address few patches in related examples (ip_pipeline and l3fwd). Test report: LPM autotest test results as below. RTE>>lpm_autotest No. routes = 1076806 Route distribution per prefix width: DEPTHQUANTITY (PERCEN

[dpdk-dev] [PATCH 1/6] config: enable lpm, port, table, pipeline, acl, sched libraries for ppc64le

2016-07-07 Thread Gowrishankar
From: gowrishankar In this patch, DPDK libraries such as LPM, port, table, pipeline, ACL, and sched are enabled for ppc64le. Signed-off-by: Gowrishankar --- config/defconfig_ppc_64-power8-linuxapp-gcc | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config

[dpdk-dev] [PATCH 2/6] lpm: add altivec intrinsics for dpdk lpm on ppc_64

2016-07-07 Thread Gowrishankar
From: gowrishankar This patch adds ppc64le port for LPM library in DPDK. Signed-off-by: Gowrishankar --- app/test/test_xmmt_ops.h | 16 +++ .../common/include/arch/ppc_64/rte_vect.h | 60 lib/librte_lpm/Makefile| 2

[dpdk-dev] [PATCH 3/6] acl: add altivec intrinsics for dpdk acl on ppc_64

2016-07-07 Thread Gowrishankar
From: gowrishankar This patch adds port for ACL library in ppc64le. Signed-off-by: Gowrishankar --- app/test-acl/main.c | 4 + lib/librte_acl/Makefile | 2 + lib/librte_acl/acl.h | 4 + lib/librte_acl/acl_run.h | 2 + lib/librte_acl

[dpdk-dev] [PATCH 4/6] table: cache align rte_bucket_4_8

2016-07-07 Thread Gowrishankar
From: gowrishankar Align rte_bucket_4_8 for cache line. Signed-off-by: Gowrishankar --- lib/librte_table/rte_table_hash_key8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_table/rte_table_hash_key8.c b/lib/librte_table/rte_table_hash_key8.c index e2e2bdc

[dpdk-dev] [PATCH 5/6] ip_pipeline: fix lcore mapping for varying SMT threads as in ppc64

2016-07-07 Thread Gowrishankar
From: gowrishankar offline lcore would still refer to original core id and this has to be considered while creating cpu core mask. Signed-off-by: Gowrishankar --- examples/ip_pipeline/cpu_core_map.c | 12 +--- examples/ip_pipeline/init.c | 4 2 files changed, 5

[dpdk-dev] [PATCH 6/6] l3fwd: add altivec support for em_hash_key

2016-07-07 Thread Gowrishankar
From: gowrishankar This patch adds ppc64le port for em_mask_key function. Signed-off-by: Gowrishankar --- examples/l3fwd/l3fwd_em.c | 8 1 file changed, 8 insertions(+) diff --git a/examples/l3fwd/l3fwd_em.c b/examples/l3fwd/l3fwd_em.c index fc59243..3e261d1 100644 --- a/examples

[dpdk-dev] [PATCH 1/6] config: enable lpm, port, table, pipeline, acl, sched libraries for ppc64le

2016-07-09 Thread gowrishankar
u suggest to send individual patchset (or patch) for each feature being enabled, one by one ?. Thanks, Gowrishankar

[dpdk-dev] [PATCH v2 0/6] enable lpm, acl and other missing libraries in ppc64le

2016-07-10 Thread Gowrishankar
From: gowrishankar This patchset enables LPM, ACL and other few missing libs in ppc64le and also address few patches in related examples (ip_pipeline and l3fwd). Test report: LPM and ACL unit tests verified as in patch set v1. Same results as before observed. v2 changes: - enabling libs in

[dpdk-dev] [PATCH v2 1/6] lpm: add altivec intrinsics for dpdk lpm on ppc_64

2016-07-10 Thread Gowrishankar
From: gowrishankar This patch adds ppc64le port for LPM library in DPDK. Signed-off-by: Gowrishankar --- app/test/test_xmmt_ops.h | 16 +++ config/defconfig_ppc_64-power8-linuxapp-gcc| 1 - .../common/include/arch/ppc_64/rte_vect.h | 60

[dpdk-dev] [PATCH v2 2/6] acl: add altivec intrinsics for dpdk acl on ppc_64

2016-07-10 Thread Gowrishankar
From: gowrishankar This patch adds port for ACL library in ppc64le. Signed-off-by: Gowrishankar --- app/test-acl/main.c | 4 + config/defconfig_ppc_64-power8-linuxapp-gcc | 1 - lib/librte_acl/Makefile | 2 + lib/librte_acl/acl.h

[dpdk-dev] [PATCH v2 3/6] ip_pipeline: fix lcore mapping for varying SMT threads as in ppc64

2016-07-10 Thread Gowrishankar
From: gowrishankar offline lcore would still refer to original core id and this has to be considered while creating cpu core mask. Signed-off-by: Gowrishankar --- config/defconfig_ppc_64-power8-linuxapp-gcc | 3 --- examples/ip_pipeline/cpu_core_map.c | 12 +--- examples

[dpdk-dev] [PATCH v2 4/6] table: cache align rte_bucket_4_8

2016-07-10 Thread Gowrishankar
From: gowrishankar Align rte_bucket_4_8 for cache line. Signed-off-by: Gowrishankar --- lib/librte_table/rte_table_hash_key8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_table/rte_table_hash_key8.c b/lib/librte_table/rte_table_hash_key8.c index e2e2bdc

[dpdk-dev] [PATCH v2 6/6] l3fwd: add altivec support for em_hash_key

2016-07-10 Thread Gowrishankar
From: gowrishankar This patch adds ppc64le port for em_mask_key function. Signed-off-by: Gowrishankar --- examples/l3fwd/l3fwd_em.c | 8 1 file changed, 8 insertions(+) diff --git a/examples/l3fwd/l3fwd_em.c b/examples/l3fwd/l3fwd_em.c index fc59243..3e261d1 100644 --- a/examples

[dpdk-dev] [PATCH v2 5/6] sched: enable sched library for ppc64le

2016-07-10 Thread Gowrishankar
From: gowrishankar This patch enables librte_sched in ppc64le. Signed-off-by: Gowrishankar --- config/defconfig_ppc_64-power8-linuxapp-gcc | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/defconfig_ppc_64-power8-linuxapp-gcc b/config/defconfig_ppc_64-power8-linuxapp-gcc index

[dpdk-dev] [PATCH v2 0/6] enable lpm, acl and other missing libraries in ppc64le

2016-07-11 Thread gowrishankar
Hi Chao, On Monday 11 July 2016 02:25 PM, Chao Zhu wrote: > Gowrishankar, > > Nice patches! Do you have some function test result? I need some time to > verify the patches. Please find below lpm and acl units tests (Test OK at the end of each tests). # ./app/test < EAL/PMD log

[dpdk-dev] [PATCH v2 0/6] enable lpm, acl and other missing libraries in ppc64le

2016-07-16 Thread gowrishankar
Hi Chao, I did not face this error. Even I verified today with tip of master 6596554... . However I had patch conflict for examples/l3fwd/l3fwd_em.c which is fixed now and v3 patch set sent recently. Could you please check. Thanks, Gowrishankar On Friday 15 July 2016 08:45 AM, Chao Zhu wrote

[dpdk-dev] librte_meter compilation fails on IBM Power8

2016-07-16 Thread gowrishankar
I remember I came across this problem some time back (not sure on which tip of master), but certainly it is no more appearing now (atleast today tip 65965546 ..) Just an update. Thanks, Gowrishankar On Friday 24 June 2016 03:19 PM, Chao Zhu wrote: > I can repeat this problem by &quo

[dpdk-dev] [PATCH] eal/ppc: fix secondary process to map hugepages in correct order

2016-03-17 Thread gowrishankar
Could this patch be reviewed please. Thanks, Gowrishankar On Monday 07 March 2016 07:43 PM, Gowrishankar wrote: > From: Gowri Shankar > > For a secondary process address space to map hugepages from every segment of > primary process, hugepage_file entries has to be mapped revers

[dpdk-dev] [PATCH v2] examples: fix ip_pipeline to load PMD driver correctly

2016-10-04 Thread Gowrishankar
From: Gowrishankar Muthukrishnan v2: minor correction in patch to avoid space between -d option and driver path Gowrishankar Muthukrishnan (1): examples: fix ip_pipeline to load PMD driver correctly examples/ip_pipeline/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1

[dpdk-dev] [PATCH v2] examples: fix ip_pipeline to load PMD driver correctly

2016-10-04 Thread Gowrishankar
From: Gowrishankar Muthukrishnan There is typo in init.c of ip_pipeline example due to which, invalid file path is added to -d option of EAL i.e path starting with =. Signed-off-by: Gowrishankar Muthukrishnan --- examples/ip_pipeline/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[dpdk-dev] [ovs-dev] dpdkvhostuser fail to alloc memory when receive packet from other host

2015-06-17 Thread gowrishankar
On Wednesday 17 June 2015 03:19 PM, Du, Fan wrote: > Hi, > > I'm playing dpdkvhostuser ports with latest DPDK and ovs master tree with > iperf benchmarking. > When kvm guest1(backed up dpdkvhostuser port)siting on HOST1 is receiving > packets from either other physical HOST2, > or similar kvm gue

[PATCH v3 0/7] cryptodev: support digest message in SM2

2023-09-28 Thread Gowrishankar Muthukrishnan
This patch series fixes SM2 algorithm implementation to support digest message as input along with plain message as today. v3: - fixed minor issues in code rebase Gowrishankar Muthukrishnan (7): crypto/openssl: include SM2 in asymmetric capabilities cryptodev: add hash algorithms in

[PATCH v3 1/7] crypto/openssl: include SM2 in asymmetric capabilities

2023-09-28 Thread Gowrishankar Muthukrishnan
Include SM2 algorithm in the asymmetric capabilities supported by OpenSSL PMD. Fixes: 3b7d638fb11f ("crypto/openssl: support asymmetric SM2") Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Arkadiusz Kusztal --- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 14

[PATCH v3 2/7] cryptodev: add hash algorithms in asymmetric capability

2023-09-28 Thread Gowrishankar Muthukrishnan
already supports it. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_cryptodev_asym.c | 52 ++-- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 1 + lib/cryptodev/cryptodev_trace.h | 9 lib/cryptodev/cryptodev_trace_points.c

[PATCH v3 3/7] cryptodev: use generic EC xform params for SM2

2023-09-28 Thread Gowrishankar Muthukrishnan
SM2 curve could use generic EC xform as it is yet another EC. This would also require SM2 curve ID enumerated along with other curves, as listed in: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Arkadiusz Kusztal

[PATCH v3 4/7] cryptodev: set private and public keys in EC session

2023-09-28 Thread Gowrishankar Muthukrishnan
Set EC private and public keys into xform so that, it can be maintained per session. Signed-off-by: Gowrishankar Muthukrishnan Change-Id: Ib8251987c805bc304f819bf13f94f310f225a0e3 --- app/test/test_cryptodev_asym.c | 60 ++-- drivers/common/cnxk/roc_ae.h

[PATCH v3 5/7] cryptodev: add RNG capability in EC based xform

2023-09-28 Thread Gowrishankar Muthukrishnan
Elliptic curve based asymmetric operations use cryptographically secure random number in its computation. If PMD supports RNG for such ops, the application could skip computing on its own. This patch adds new field in asymmetric capability to declare this capability. Signed-off-by: Gowrishankar

[PATCH v3 7/7] app/test: check asymmetric capabilities in SM2 test

2023-09-28 Thread Gowrishankar Muthukrishnan
Check asymmetric capabilities such as SM3 hash support and internal RNG and accordingly choose op params for SM2 test. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Arkadiusz Kusztal --- app/test/test_cryptodev_asym.c | 77 +++--- app/test

[PATCH v3 6/7] crypto/cnxk: add SM2 support

2023-09-28 Thread Gowrishankar Muthukrishnan
Add SM2 asymmetric algorithm support in cnxk PMD. Signed-off-by: Gowrishankar Muthukrishnan --- doc/guides/cryptodevs/features/cn10k.ini | 1 + doc/guides/rel_notes/release_23_11.rst| 6 + drivers/common/cnxk/hw/cpt.h | 3 +- drivers/common/cnxk/roc_ae.c

[PATCH v4 0/7] cryptodev: support digest message in SM2

2023-10-09 Thread Gowrishankar Muthukrishnan
This patch series fixes SM2 algorithm implementation to support digest message as input along with plain message as today. v4: - code rebase on next-crypto Gowrishankar Muthukrishnan (7): crypto/openssl: include SM2 in asymmetric capabilities cryptodev: add hash algorithms in asymmetric

[PATCH v4 1/7] crypto/openssl: include SM2 in asymmetric capabilities

2023-10-09 Thread Gowrishankar Muthukrishnan
Include SM2 algorithm in the asymmetric capabilities supported by OpenSSL PMD. Fixes: 3b7d638fb11f ("crypto/openssl: support asymmetric SM2") Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Arkadiusz Kusztal --- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 14

[PATCH v4 2/7] cryptodev: add hash algorithms in asymmetric capability

2023-10-09 Thread Gowrishankar Muthukrishnan
already supports it. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_cryptodev_asym.c | 52 ++-- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 1 + lib/cryptodev/cryptodev_trace.h | 9 lib/cryptodev/cryptodev_trace_points.c

[PATCH v4 3/7] cryptodev: use generic EC xform params for SM2

2023-10-09 Thread Gowrishankar Muthukrishnan
SM2 curve could use generic EC xform as it is yet another EC. This would also require SM2 curve ID enumerated along with other curves, as listed in: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Arkadiusz Kusztal

[PATCH v4 4/7] cryptodev: set private and public keys in EC session

2023-10-09 Thread Gowrishankar Muthukrishnan
Set EC private and public keys into xform so that, it can be maintained per session. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Ciara Power --- app/test/test_cryptodev_asym.c | 60 ++-- drivers/common/cnxk/roc_ae.h | 18 ++ drivers

[PATCH v4 5/7] cryptodev: add RNG capability in EC based xform

2023-10-09 Thread Gowrishankar Muthukrishnan
Elliptic curve based asymmetric operations use cryptographically secure random number in its computation. If PMD supports RNG for such ops, the application could skip computing on its own. This patch adds new field in asymmetric capability to declare this capability. Signed-off-by: Gowrishankar

[PATCH v4 6/7] crypto/cnxk: add SM2 support

2023-10-09 Thread Gowrishankar Muthukrishnan
Add SM2 asymmetric algorithm support in cnxk PMD. Signed-off-by: Gowrishankar Muthukrishnan --- doc/guides/cryptodevs/features/cn10k.ini | 1 + doc/guides/rel_notes/release_23_11.rst| 4 + drivers/common/cnxk/hw/cpt.h | 2 +- drivers/common/cnxk/roc_ae.c

[PATCH v4 7/7] app/test: check asymmetric capabilities in SM2 test

2023-10-09 Thread Gowrishankar Muthukrishnan
Check asymmetric capabilities such as SM3 hash support and internal RNG and accordingly choose op params for SM2 test. Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Arkadiusz Kusztal --- app/test/test_cryptodev_asym.c | 77 +++--- app/test

[PATCH v2] test/cryptodev: add modexp group tests

2023-10-25 Thread Gowrishankar Muthukrishnan
Add modexp tests for groups 5, 14, 15, 16, 17 and 18. Signed-off-by: Gowrishankar Muthukrishnan --- v2: - rebase on main --- app/test/test_cryptodev_asym.c | 48 + app/test/test_cryptodev_mod_test_vectors.h | 989 - 2 files changed, 1036 insertions(+), 1

[PATCH v1 0/4] test/cryptodev: add ECDH tests

2023-10-26 Thread Gowrishankar Muthukrishnan
This patch series adds ECDH testsuite. It also enables ECDH support in CNXK PMD. Gowrishankar Muthukrishnan (4): test/cryptodev: add ECDH tests crypto/cnxk: use generic EC opcodes crypto/cnxk: change order of ECFPM params crypto/cnxk: add ECDH support app/test/test_cryptodev_asym.c

[PATCH v1 1/4] test/cryptodev: add ECDH tests

2023-10-26 Thread Gowrishankar Muthukrishnan
Add ECDH tests. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/test_cryptodev_asym.c | 729 +++ app/test/test_cryptodev_asym_util.h | 12 + app/test/test_cryptodev_ecdh_test_vectors.h | 577 +++ app/test

  1   2   3   4   5   6   7   8   9   >