[dpdk-dev] [PATCH 2/2] app/testpmd: change command line of getting profile info

2017-03-31 Thread Beilei Xing
This patch changes CLI of getting loaded profile info list from "get ddp list (port_id)" to "ddp get list (port_id)" which is more consistent with other CLIs. Signed-off-by: Beilei Xing --- app/test-pmd/cmdline.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ap

[dpdk-dev] [PATCH 0/2] change command line for ddp

2017-03-31 Thread Beilei Xing
This patch set changes CLI for ddp to align with other CLIs. Beilei Xing (2): app/testpmd: change command line of loading profile app/testpmd: change command line of getting profile info app/test-pmd/cmdline.c | 24 1 file changed, 12 insertions(+), 12 deletions(-)

[dpdk-dev] [PATCH 1/2] app/testpmd: change command line of loading profile

2017-03-31 Thread Beilei Xing
This patch changes CLI of loading profile from "add ddp (port_id) (profile_path)" to "ddp add (port_id) (profile_path)" which is more consistent with other CLIs. Signed-off-by: Beilei Xing --- app/test-pmd/cmdline.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a

[dpdk-dev] [PATCH] net/i40e: fix vlan promisc setting

2017-03-31 Thread Wenzhuo Lu
After adding VLAN filter, the VLAN promiscuous mode is disabled. But there's no chance to enable it. So add the check after deleting VLAN filter. If there's no VLAN filter left, enable the VLAN promiscuous mode. Fixes: 310dac2fde07 ("net/i40e: fix VLAN filter issue") Cc: sta...@dpdk.org Signed-of

Re: [dpdk-dev] [PATCH] vhost: fix fd leaks for vhost-user server mode

2017-03-31 Thread Yuanhan Liu
On Mon, Mar 27, 2017 at 04:52:15PM +0800, Yuanhan Liu wrote: > A vhost-user server socket could have many connections, thus many connfd. > However, we currently just use one single int var to store it. Meaning, > it will get overwritten every time a new connection is created. > > While this will n

Re: [dpdk-dev] [PATCH v3 5/5] net/virtio-user: add lsc support

2017-03-31 Thread Yuanhan Liu
On Fri, Mar 31, 2017 at 07:44:58PM +, Jianfeng Tan wrote: > +static void virtio_user_delayed_handler(void *param) Coding style issue. ... > > if (offset == offsetof(struct virtio_net_config, max_virtqueue_pairs)) > *(uint16_t *)dst = dev->max_queue_pairs; > @@ -319,7 +36

[dpdk-dev] FW: [dpdk-test-report] | ERROR | daily Intel builds (33/55)

2017-03-31 Thread Wei, FangfangX
Hi all, There's one new build error: LD DPDK/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c: In function ‘igbuio_pci_probe’: DPDK/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c:434:2: error: implicit declaration of function ‘dma_zallo

Re: [dpdk-dev] [PATCH] net/fm10k: fix secondary process crash

2017-03-31 Thread Chen, Jing D
> -Original Message- > From: Wang, Xiao W > Sent: Tuesday, March 28, 2017 11:59 AM > To: Chen, Jing D > Cc: dev@dpdk.org; Wang, Xiao W ; > sta...@dpdk.org > Subject: [PATCH] net/fm10k: fix secondary process crash > > If the primary process has initialized all the queues to vector pmd mo

Re: [dpdk-dev] [PATCH] net/i40e: add packet prefetch

2017-03-31 Thread Pei, Yulong
Hi All In Non-vector mode, without this patch, single core performance can reach 37.576Mpps with 64Byte packet, But after applied this patch , single core performance downgrade to 34.343Mpps with 64Byte packet. Best Regards Yulong Pei -Original Message- From: dev [mailto:dev-boun...@dp

[dpdk-dev] [PATCH 2/2] app/testpmd: add CLI to set TC min bandwidth

2017-03-31 Thread Wenzhuo Lu
From: Bernard Iremonger Add a CLI in testpmd to test the TC min bandwidth setting. Signed-off-by: Bernard Iremonger Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 66 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files chang

[dpdk-dev] [PATCH 1/2] net/ixgbe: allocate TC bandwidth

2017-03-31 Thread Wenzhuo Lu
From: Bernard Iremonger Ixgbe supports to set the relative bandwidth for the TCs. It's a global setting for the PF and all the VFs of a physical port. This feature provide the API to set the bandwidth. Signed-off-by: Bernard Iremonger Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethd

[dpdk-dev] [PATCH 0/2] enable TC bandwidth allocation on ixgbe

2017-03-31 Thread Wenzhuo Lu
Ixgbe supports to set TCs' bandwidth allocation. This patch set enables this feature. Bernard Iremonger (2): net/ixgbe: allocate TC bandwidth app/testpmd: add CLI to set TC min bandwidth app/test-pmd/cmdline.c | 66 doc/guides/testpmd_app_ug/test

Re: [dpdk-dev] [PATCH] net/i40e: enable statistic reset for VF

2017-03-31 Thread Zhang, Helin
As Thomas asked, I am not quite sure if experimental tag needs to be added. Please double check it. Thanks, Helin > -Original Message- > From: Zhang, Qi Z > Sent: Friday, February 24, 2017 2:27 AM > To: Wu, Jingjing; Zhang, Helin > Cc: dev@dpdk.org; Zhang, Qi Z > Subject: [PATCH] net/i40

Re: [dpdk-dev] [PATCH] net/fm10k: fix secondary process crash

2017-03-31 Thread Wang, Xiao W
Hi Mark, > -Original Message- > From: Chen, Jing D > Sent: Friday, March 31, 2017 9:30 AM > To: Wang, Xiao W > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: RE: [PATCH] net/fm10k: fix secondary process crash > > > > > -Original Message- > > From: Wang, Xiao W > > Sent: Tuesday,

[dpdk-dev] [PATCH] net/vhost: move device stop call in close function

2017-03-31 Thread Sagar Abhang
Moved the call to "eth_dev_stop" inside "eth_dev_close" because "rte_eth_dev_close" calls 'close' operation of device, and in existing code the close was happening without 'stop' operation for vhost device. Moved code to free rx and tx queues inside "eth_dev_close" because the "rte_eth_dev_close" f

[dpdk-dev] [PATCH v3 5/5] net/virtio-user: add lsc support

2017-03-31 Thread Jianfeng Tan
So far, virtio-user with vhost-user as the backend can only support client mode. So when vhost user backend is down, i.e., unix socket connection is broken, the connection cannot be re-connected. We will forcely set the link state to be down. Note: virtio-user with vhost-kernel as the backend stil

[dpdk-dev] [PATCH v3 4/5] net/virtio-user: support to report net status

2017-03-31 Thread Jianfeng Tan
Originally, we did not report support of VIRTIO_NET_F_STATUS. This feature is not reported by vhost backend, instead, it is added/removed by QEMU in virtio PCI case. We report the support of this feature so that following patch will depend on this feature to enable LSC interrupt. Signed-off-by: J

[dpdk-dev] [PATCH v3 2/5] net/virtio-user: move eventfd open/close into init/uninit

2017-03-31 Thread Jianfeng Tan
Originally, eventfd is opened when initializing each vq; and gets closded in virtio_user_stop_device(). To make it possible to initialize intr_handle struct in init() in following patch, we put the open() of all eventfds into init(); and put the close() into uninit(). Suggested-by: Yuanhan Liu S

[dpdk-dev] [PATCH v3 3/5] net/virtio-user: add rxq interrupt mode support

2017-03-31 Thread Jianfeng Tan
For rxq interrupt, the device (backend driver) will notify driver through callfd. Each virtqueue has a callfd. To keep compatible with the existing framework, we will give these callfds to interrupt thread for listening for interrupts. Before that, we need to allocate intr_handle, and fill callfds

[dpdk-dev] [PATCH v3 1/5] eal/linux: add interrupt type for vdev

2017-03-31 Thread Jianfeng Tan
A new interrupt type, RTE_INTR_HANDLE_VDEV, is added to support lsc and rxq interrupt for vdev. For lsc interrupt, except from original EPOLLIN events, we also listen for socket peer closed connection event (EPOLLRDHUP and EPOLLHUP). For rxq interrupt, add a precondition to avoid invoking any vfi

[dpdk-dev] [PATCH v3 0/5] add LSC and Rxq interrupt for virtio-user

2017-03-31 Thread Jianfeng Tan
v3: - Move NET_STATUS addition into device layer. - Drop original 2nd patch. - Add a patch to move open/close of eventfds to init/uninit. - As we initialize intr_handle in each vdev driver, in rte_intr_efd_enable(), skip vdev when initialize intr_handle. - After commit 26bbd3e7dc51("n

[dpdk-dev] [PATCH v2 32/38] test/test: octeontx queue based maximum stage pipeline

2017-03-31 Thread Jerin Jacob
Add queue based pipeline test with maximum number of stages available in the device. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 39 ++ 1 file changed, 39 insertions(+) diff --git a/test/test/test_eventdev_o

[dpdk-dev] [PATCH v2 30/38] test/test: octeontx queue based two stage sched type test

2017-03-31 Thread Jerin Jacob
Add queue based two stage pipeline test with all combination of schedule types. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 169 + 1 file changed, 169 insertions(+) diff --git a/test/test/test_eventdev_octeo

[dpdk-dev] [PATCH v2 27/38] test/test: octeontx single link establishment test

2017-03-31 Thread Jerin Jacob
Add test case to verify queue to port single link establishment operation. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 62 ++ 1 file changed, 62 insertions(+) diff --git a/test/test/test_eventdev_octeontx.c

[dpdk-dev] [PATCH v2 31/38] test/test: octeontx flow based maximum stage pipeline

2017-03-31 Thread Jerin Jacob
Add flow based pipeline test with maximum number of stages available in the device. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 70 ++ 1 file changed, 70 insertions(+) diff --git a/test/test/test_eventdev_oc

[dpdk-dev] [PATCH v2 29/38] test/test: octeontx flow based two stage sched type test

2017-03-31 Thread Jerin Jacob
Add flow based two stage pipeline test with all combination of schedule types. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 170 + 1 file changed, 170 insertions(+) diff --git a/test/test/test_eventdev_octeon

[dpdk-dev] [PATCH v2 28/38] test/test: octeontx multi link establishment test

2017-03-31 Thread Jerin Jacob
Add unit test case to verify queue to port multi link establishment operation. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 77 ++ 1 file changed, 77 insertions(+) diff --git a/test/test/test_eventdev_octeont

[dpdk-dev] [PATCH v2 37/38] maintainers: claim OCTEONTX eventdev PMD maintainership

2017-03-31 Thread Jerin Jacob
Add a section for the eventdev PMDs, and note the next-tree. Claim maintainership of the Cavium octeontx eventdev PMD Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 711fbfb..a

[dpdk-dev] [PATCH v2 38/38] doc: add Cavium OCTEONTX eventdev PMD to 17.05 release notes

2017-03-31 Thread Jerin Jacob
Signed-off-by: Jerin Jacob --- doc/guides/rel_notes/release_17_05.rst | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes/release_17_05.rst b/doc/guides/rel_notes/release_17_05.rst index 918f483..a3b2b4e 100644 --- a/doc/guides/rel_notes/release_17_05.rs

[dpdk-dev] [PATCH v2 36/38] doc: add OCTEONTX ssovf details

2017-03-31 Thread Jerin Jacob
Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by: Harry van Haaren --- doc/guides/eventdevs/index.rst| 38 ++ doc/guides/eventdevs/octeontx.rst | 151 ++ doc/guides/index.rst | 1 + 3 files changed, 190 insertions(

[dpdk-dev] [PATCH v2 35/38] test/test: add remaining tests based on existing helpers

2017-03-31 Thread Jerin Jacob
Add the following tests based existing helper functions - Queue based producer-consumer ingress order test - Run existing queue and flow based ordering test in dequeue timeout mode Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 15 ++

[dpdk-dev] [PATCH v2 34/38] test/test: octeontx producer-consumer based order test

2017-03-31 Thread Jerin Jacob
Add flow based producer-consumer based ingress order test Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 60 ++ 1 file changed, 60 insertions(+) diff --git a/test/test/test_eventdev_octeontx.c b/test/test/test

[dpdk-dev] [PATCH v2 25/38] test/test: add infrastructure for multicore octeontx tests

2017-03-31 Thread Jerin Jacob
Add helper functions to launch and wait for n cores to complete the operation with deadlock detection. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 88 ++ 1 file changed, 88 insertions(+) diff --git a/test/te

[dpdk-dev] [PATCH v2 33/38] test/test: octeontx queue and flow based max stage pipeline

2017-03-31 Thread Jerin Jacob
Add queue and flow based pipeline test with maximum number of stages available in the device. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 41 ++ 1 file changed, 41 insertions(+) diff --git a/test/test/test_e

[dpdk-dev] [PATCH v2 26/38] test/test: octeontx multi queue and multi core/port tests

2017-03-31 Thread Jerin Jacob
Add unit test case to verify multi queue enqueue and multi core/port dequeue operation. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 53 ++ 1 file changed, 53 insertions(+) diff --git a/test/test/test_eventde

[dpdk-dev] [PATCH v2 24/38] test/test: octeontx eventdev priority test

2017-03-31 Thread Jerin Jacob
Added unit test case to verify the priority associated with each event queue available in the device. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 59 ++ 1 file changed, 59 insertions(+) diff --git a/test/tes

[dpdk-dev] [PATCH v2 23/38] test/test: octeontx multi queue enqueue and dequeue test

2017-03-31 Thread Jerin Jacob
Added unit test case to verify enqueue and dequeue operations with multiple queues and a single port. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/test/test/test_eventdev_oct

[dpdk-dev] [PATCH v2 22/38] test/test: octeontx simple event enqueue and dequeue test

2017-03-31 Thread Jerin Jacob
Added unit test case to verify simple event enqueue and dequeue operation with different schedule types Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 54 ++ 1 file changed, 54 insertions(+) diff --git a/test/t

[dpdk-dev] [PATCH v2 20/38] test/test: octeontx unit test case setup and teardown

2017-03-31 Thread Jerin Jacob
Each test case expected to run as standalone. On setup, configure the device in requested mode and start the device. On tear down, close the device and free the allocated resources Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 122 +++

[dpdk-dev] [PATCH v2 21/38] test/test: octeontx unit test case helper functions

2017-03-31 Thread Jerin Jacob
Add helper functions to generate, inject, consume and validate the events. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 202 + 1 file changed, 202 insertions(+) diff --git a/test/test/test_eventdev_octeontx.c

[dpdk-dev] [PATCH v2 19/38] test/test: octeontx eventdev unit test infrastructure

2017-03-31 Thread Jerin Jacob
add test setup and teardown routines. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/Makefile | 5 +- test/test/test_eventdev_octeontx.c | 98 ++ 2 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 test/

[dpdk-dev] [PATCH v2 18/38] event/octeontx: add stop and close function

2017-03-31 Thread Jerin Jacob
Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by: Gage Eads --- drivers/event/octeontx/ssovf_evdev.c | 44 1 file changed, 44 insertions(+) diff --git a/drivers/event/octeontx/ssovf_evdev.c b/drivers/event/octeontx/ssovf_evdev.c index 0db3

[dpdk-dev] [PATCH v2 13/38] event/octeontx: add dump function for easier debugging

2017-03-31 Thread Jerin Jacob
Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by: Gage Eads --- drivers/event/octeontx/ssovf_evdev.c | 46 1 file changed, 46 insertions(+) diff --git a/drivers/event/octeontx/ssovf_evdev.c b/drivers/event/octeontx/ssovf_evdev.c index 1f39

[dpdk-dev] [PATCH v2 11/38] event/octeontx: add support for linking queues to ports

2017-03-31 Thread Jerin Jacob
queues to port link and unlink establishment is through setting/resetting the queue/group membership in SSOW_VHWS_GRPMSK_CHGX Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by: Gage Eads --- drivers/event/octeontx/ssovf_evdev.c | 42 drivers

[dpdk-dev] [PATCH v2 12/38] event/octeontx: add support dequeue timeout tick conversion

2017-03-31 Thread Jerin Jacob
SSO co-processor runs at a different frequency than core clock. Request PF to convert the ns to SSO get_work timeout period. On dequeue, If device is configured with RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT configuration then use different fast path dequeue handler to wait till requested amount of nan

[dpdk-dev] [PATCH v2 10/38] event/octeontx: add support for event ports

2017-03-31 Thread Jerin Jacob
Add in the data-structures for the ports used by workers to sent events to/from the HW scheduler. Also add a function to release the resource allocated in setup Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by: Gage Eads --- drivers/event/octeontx/ssovf_evdev.c | 74 ++

[dpdk-dev] [PATCH v2 09/38] event/octeontx: add support for event queues

2017-03-31 Thread Jerin Jacob
Pretty much everything done in HW. Need to configure the priority associated with event queue aka sso group through a mailbox request to PF Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by: Gage Eads --- - Remove RTE_EVENT_QUEUE_CFG_DEFAULT flag to sync with next-eventdev mast

[dpdk-dev] [PATCH v2 17/38] event/octeontx: add start function

2017-03-31 Thread Jerin Jacob
Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by: Gage Eads --- drivers/event/octeontx/ssovf_evdev.c | 49 +- drivers/event/octeontx/ssovf_evdev.h | 2 ++ drivers/event/octeontx/ssovf_worker.c | 50 +++ 3 files

[dpdk-dev] [PATCH v2 15/38] event/octeontx: add support worker enqueue function

2017-03-31 Thread Jerin Jacob
Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by: Gage Eads --- drivers/event/octeontx/ssovf_evdev.h | 4 ++ drivers/event/octeontx/ssovf_worker.c | 116 ++ 2 files changed, 120 insertions(+) diff --git a/drivers/event/octeontx/ssovf_evdev.h

[dpdk-dev] [PATCH v2 16/38] event/octeontx: add support worker dequeue function

2017-03-31 Thread Jerin Jacob
If device is configured with RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT configuration then use different fast path dequeue handler to wait till requested amount of nanosecond if the event is not available. Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla --- drivers/event/octeontx/ssovf_evde

[dpdk-dev] [PATCH v2 14/38] event/octeontx: add SSO HW device operations

2017-03-31 Thread Jerin Jacob
Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by: Gage Eads --- drivers/event/octeontx/Makefile | 5 ++ drivers/event/octeontx/ssovf_evdev.h | 30 drivers/event/octeontx/ssovf_worker.c | 124 ++ 3 files changed, 159 insertions(

[dpdk-dev] [PATCH v2 07/38] event/octeontx: add device capabilities function

2017-03-31 Thread Jerin Jacob
Add the info_get function to return details on the queues, flow, prioritization capabilities, etc. which this device has. Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by: Gage Eads --- v2: - add newly introduced RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES in info_get --- drivers/event/

[dpdk-dev] [PATCH v2 06/38] event/octeontx: add octeontx eventdev driver

2017-03-31 Thread Jerin Jacob
This adds the minimal changes to allow a octeontx eventdev implementation to be compiled, linked and created at run time. The eventdev does nothing, but can be created via vdev on command line, e.g. sudo ./build/app/test -c 0xff00 --vdev=event_octeontx ... Initializing event_octeontx domain=4 max_

[dpdk-dev] [PATCH v2 05/38] event/octeontx: add mailbox support

2017-03-31 Thread Jerin Jacob
ssovf VF device has mailbox mechanism to communicate with PF device. This patch adds support for a mbox API to send the mailbox request to PF device. The ssovf VF device will be used as the communication channel to talk to PF devices of all the network accelerated co-processors in Octeontx. Exposin

[dpdk-dev] [PATCH v2 08/38] event/octeontx: add configure function

2017-03-31 Thread Jerin Jacob
Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by: Gage Eads --- v2: - Improved the timeout accuracy(Gage) Improved the timeout accuracy by invoking ssovf_mbox_getwork_tmo_set(edev->min_deq_timeout_ns) in ssovf_configure if RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT flag is set htt

[dpdk-dev] [PATCH v2 04/38] event/octeontx: add vdev interface functions

2017-03-31 Thread Jerin Jacob
ssovf and ssowvf PCIe VF devices are shared between eventdev PMD and ethdev PMD. This patch expose a set of interface API to get info about probed ssovf and ssowvf VF resources to use with eventdev and ethdev vdev devices latter. Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by:

[dpdk-dev] [PATCH v2 03/38] event/octeontx: probe ssowvf pcie devices

2017-03-31 Thread Jerin Jacob
An event device consists of event queues and event ports. On Octeontx HW, each event queues(sso group/ssovf) and event ports(sso hws/ssowvf) are enumerated as separate SRIOV VF PCIe device. In order to expose as an event device, On PCIe probe, the driver stores the information associated with the P

[dpdk-dev] [PATCH v2 01/38] event/octeontx: add build and log infrastructure

2017-03-31 Thread Jerin Jacob
Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by: Gage Eads --- v2: - Enabled CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF by default in common config --- config/common_base | 6 +++ config/defconfig_arm64-thunderx-linuxapp-gcc | 6 +++ drivers/e

[dpdk-dev] [PATCH v2 02/38] event/octeontx: probe ssovf pcie devices

2017-03-31 Thread Jerin Jacob
An event device consists of event queues and event ports. On Octeontx HW, each event queues(sso group/ssovf) and event ports(sso hws/ssowvf) are enumerated as separate SRIOV VF PCIe device. In order to expose as an event device, On PCIe probe, the driver stores the information associated with the P

[dpdk-dev] [PATCH v2 00/38] Cavium OCTEONTX ssovf eventdev PMD

2017-03-31 Thread Jerin Jacob
The following patch set adds Cavium OCTEONTX HW based eventdev implementation to the next-eventdev tree. Introduction to OCTEON-TX ARM processors can be found here: http://www.cavium.com/OCTEON-TX_ARM_Processors.html - First 18 patches implements eventdev API with OCTEONTX SSOVF HW. - 19-35 patch

[dpdk-dev] [PATCH 1/2] app/testpmd: load cmdline commands from file at startup

2017-03-31 Thread Allain Legacy
Adds support to testpmd to load a set of cmdline CLI commands at startup. This can be helpful when needing to cut-n-paste many commands each time testpmd is restarted. This option will work in both interactive and non-interactive modes. ./testpmd -n4 -c3 ... -- --cmdline-file=/home/ubuntu/some

[dpdk-dev] [PATCH 2/2] app/testpmd: load cmdline commands from file at runtime

2017-03-31 Thread Allain Legacy
Adds support to testpmd to load a set of cmdline CLI commands at runtime. This can be helpful when needing to cut-n-paste many commands where cut-n-paste may not be practical. testpmd> load /home/ubuntu/somefile.txt Signed-off-by: Allain Legacy --- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH 0/2] testpmd load cmdline commands from file

2017-03-31 Thread Allain Legacy
Enhancing test-pmd to be able to load CLI commands from file both at runtime and at startup. Usually the number of commands to run is small enough that a simple cut-n-paste does the trick, but while testing the flow API it was necessary to load several hundred commands and cut-n-paste could not ke

[dpdk-dev] [PATCH] eal: deprecate rte_cpu_check_supported

2017-03-31 Thread Aaron Conole
It's likely that this function isn't used anywhere, but since it was part of the public API, mark the function for deprecation for at least one release. Signed-off-by: Aaron Conole --- lib/librte_eal/bsdapp/eal/rte_eal_version.map| 7 +++ lib/librte_eal/common/arch/x86/rte_cpuflags.c

[dpdk-dev] [PATCH v7 5/5] net/i40e: update tunnel filter restore function

2017-03-31 Thread Bernard Iremonger
The QinQ filter uses big buffers, set the big_buffer flag when restoring a QinQ filter. Signed-off-by: Bernard Iremonger Acked-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i

[dpdk-dev] [PATCH v7 3/5] net/i40e: parse QinQ pattern

2017-03-31 Thread Bernard Iremonger
add QinQ pattern. add i40e_flow_parse_qinq_pattern function. add i40e_flow_parse_qinq_filter function. Signed-off-by: Bernard Iremonger Acked-by: Wenzhuo Lu --- drivers/net/i40e/i40e_flow.c | 145 ++- 1 file changed, 143 insertions(+), 2 deletions(-) dif

[dpdk-dev] [PATCH v7 4/5] net/i40e: update destroy tunnel filter function

2017-03-31 Thread Bernard Iremonger
The QinQ filter uses big buffers, set the big_buffer flag when removing a QinQ filter. Signed-off-by: Bernard Iremonger Acked-by: Wenzhuo Lu --- drivers/net/i40e/i40e_flow.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i4

[dpdk-dev] [PATCH v7 2/5] net/i40e: add QinQ filter create function

2017-03-31 Thread Bernard Iremonger
Add i40e_cloud_filter_qinq_create function, and call it from i40e_dev_consistent_tunnel_filter_set function. Replace the Outer IP filter with the QinQ filter. QinQ allows multiple VLAN tags to be inserted into a single Ethernet frame. A QinQ frame is a frame that has two VLAN 802.1Q headers. 802.1

[dpdk-dev] [PATCH v7 1/5] net/i40e: initialise L3 MAP register

2017-03-31 Thread Bernard Iremonger
The L3 MAP register is initialised to support QinQ cloud filters. Signed-off-by: Bernard Iremonger Acked-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 00079bb9c

[dpdk-dev] [PATCH v7 0/5] net/i40e: QinQ filter

2017-03-31 Thread Bernard Iremonger
it adds support for QinQ filters. It uses the replace filter Admin Queue command. Changes in v7: Rebase to latest dpdk-next-net. Fix checkpatch warnings. Changes in v6: Rebase to latest dpdk-next-net. Fix checkpatch warnings. Changes in v5: Rebase to latest dpdk-next-net. Rebase patches 2 and 3

Re: [dpdk-dev] [PATCH v7 00/14] eal: Remove most causes of panic on init

2017-03-31 Thread Aaron Conole
Thomas Monjalon writes: > 2017-03-23 14:04, Bruce Richardson: >> On Wed, Mar 22, 2017 at 04:19:26PM -0400, Aaron Conole wrote: >> > In many cases, it's enough to simply let the application know that the >> > call to initialize DPDK has failed. A complete halt can then be >> > decided by the appl

Re: [dpdk-dev] [PATCH] table: fix hash_ext stats update

2017-03-31 Thread Dumitrescu, Cristian
> -Original Message- > From: Aleksey Katargin [mailto:gure...@gmail.com] > Sent: Saturday, March 11, 2017 7:41 AM > To: Dumitrescu, Cristian > Cc: dev@dpdk.org > Subject: [PATCH] table: fix hash_ext stats update > > Fixed stats double update. > > Signed-off-by: Aleksey Katargin > ---

[dpdk-dev] [PATCH 1/2] ethdev: fix adding invalid mac addr

2017-03-31 Thread Wei Dai
some customers find adding mac addr to VF sometimes can fail, but it is still stored in dev->data->mac_addrs[ ]. So this can lead to some errors that assumes the non-zero entry in dev->data->mac_addrs[ ] is valid. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Wei

[dpdk-dev] [PATCH 2/2] app/testpmd: add a command to add many mac addrs

2017-03-31 Thread Wei Dai
Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 52 ++ 1 file changed, 52 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 47f935d..54ca38a 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -639

[dpdk-dev] [PATCH 0/2] mac addr fail to be added shouldn't be storeid

2017-03-31 Thread Wei Dai
current ethdev always store mac addr even it fail to be added. Other function may regard the failed mac addr valid and lead to some errors. So it is need to check if the addr is added successfully or not. And discard it if it fails. In 2nd patch, add a command "add_more_mac_addr port_id base_mac_

Re: [dpdk-dev] [PATCH v6 0/5] net/i40e: QinQ filter

2017-03-31 Thread Iremonger, Bernard
Hi Ferruh, > -Original Message- > From: Yigit, Ferruh > Sent: Friday, March 31, 2017 5:53 PM > To: Iremonger, Bernard ; dev@dpdk.org; > Xing, Beilei ; Wu, Jingjing > Cc: Zhang, Helin ; Lu, Wenzhuo > > Subject: Re: [dpdk-dev] [PATCH v6 0/5] net/i40e: QinQ filter > > On 3/31/2017 4:18 PM

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/mlx5: fix mark id retrieval

2017-03-31 Thread Ferruh Yigit
On 3/30/2017 1:45 PM, Nelio Laranjeiro wrote: > Mark ID in the completion queue entry is 24 bits, the remaining 8 bits are > reserved and may be nonzero. Do not take them into account when looking for > marked packets. > > CC: sta...@dpdk.org > Fixes: ea3bc3b1df94 ("net/mlx5: support mark flow act

Re: [dpdk-dev] [PATCH v6 0/5] net/i40e: QinQ filter

2017-03-31 Thread Ferruh Yigit
On 3/31/2017 4:18 PM, Bernard Iremonger wrote: > It adds support for QinQ filters. > It uses the replace filter Admin Queue command. > > Changes in v6: > Rebase to latest dpdk-next-net. > Fix checkpatch warnings. > > Changes in v5: > Rebase to latest dpdk-next-net. > Rebase patches 2 and 3 follow

Re: [dpdk-dev] [PATCH] vfio: do not use memcmp() to compare PCI address

2017-03-31 Thread Sergio Gonzalez Monroy
On 31/03/2017 17:18, Andrew Rybchenko wrote: On 03/31/2017 07:09 PM, Sergio Gonzalez Monroy wrote: On 31/03/2017 16:56, Andrew Rybchenko wrote: PCI address structure has padding which may have garbage. Fixes: 2f4adfad0a69 ("vfio: add multiprocess support") Cc: sta...@dpdk.org Signed-off-by: A

Re: [dpdk-dev] [PATCH] vfio: do not use memcmp() to compare PCI address

2017-03-31 Thread Andrew Rybchenko
On 03/31/2017 07:09 PM, Sergio Gonzalez Monroy wrote: On 31/03/2017 16:56, Andrew Rybchenko wrote: PCI address structure has padding which may have garbage. Fixes: 2f4adfad0a69 ("vfio: add multiprocess support") Cc: sta...@dpdk.org Signed-off-by: Andrew Rybchenko --- It is a real bug which I'

Re: [dpdk-dev] [PATCH] vfio: do not use memcmp() to compare PCI address

2017-03-31 Thread Sergio Gonzalez Monroy
On 31/03/2017 16:56, Andrew Rybchenko wrote: PCI address structure has padding which may have garbage. Fixes: 2f4adfad0a69 ("vfio: add multiprocess support") Cc: sta...@dpdk.org Signed-off-by: Andrew Rybchenko --- It is a real bug which I've hit during multi-process debugging. lib/librte_ea

[dpdk-dev] [PATCH] vfio: do not use memcmp() to compare PCI address

2017-03-31 Thread Andrew Rybchenko
PCI address structure has padding which may have garbage. Fixes: 2f4adfad0a69 ("vfio: add multiprocess support") Cc: sta...@dpdk.org Signed-off-by: Andrew Rybchenko --- It is a real bug which I've hit during multi-process debugging. lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 3 ++- 1 file ch

Re: [dpdk-dev] [PATCH 00/13] net/sfc: fix device reconfigure

2017-03-31 Thread Ferruh Yigit
On 3/31/2017 11:22 AM, Andrew Rybchenko wrote: > When I implemented initial version of the driver I had incorrect > understanding of the required state transition to reconfigure > device. It was assumed that close is required before reconfigure. > Looking at description in rte_ethdev.h, rte_eth_dev

[dpdk-dev] [PATCH v2] crypto/scheduler: add mode specific option support

2017-03-31 Thread Fan Zhang
Some scheduling modes may need extra options to be configured, this patch adds the function prototype for setting/getting options. Signed-off-by: Fan Zhang --- v2: - Updated for option support in packet-size based mode - Updated version map file drivers/crypto/scheduler/rte_cryptodev_scheduler

Re: [dpdk-dev] [PATCH v2 2/2] net/sfc: do not drop TSO on device configure

2017-03-31 Thread Ferruh Yigit
On 3/29/2017 5:59 PM, Andrew Rybchenko wrote: > If Tx datapath does not support TSO, TSO was dropped on device configure. > It is incorrect to change advertised offloads. > > Fixes: 960b980fc712 ("net/sfc: make TSO a datapath-dependent feature") > > Signed-off-by: Andrew Rybchenko Applied to dp

[dpdk-dev] [PATCH v6 3/5] net/i40e: parse QinQ pattern

2017-03-31 Thread Bernard Iremonger
add QinQ pattern. add i40e_flow_parse_qinq_pattern function. add i40e_flow_parse_qinq_filter function. Signed-off-by: Bernard Iremonger Acked-by: Wenzhuo Lu --- drivers/net/i40e/i40e_flow.c | 145 ++- 1 file changed, 143 insertions(+), 2 deletions(-) dif

[dpdk-dev] [PATCH v6 4/5] net/i40e: update destroy tunnel filter function

2017-03-31 Thread Bernard Iremonger
The QinQ filter uses big buffers, set the big_buffer flag when removing a QinQ filter. Signed-off-by: Bernard Iremonger Acked-by: Wenzhuo Lu --- drivers/net/i40e/i40e_flow.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i4

[dpdk-dev] [PATCH v6 5/5] net/i40e: update tunnel filter restore function

2017-03-31 Thread Bernard Iremonger
The QinQ filter uses big buffers, set the big_buffer flag when restoring a QinQ filter. Signed-off-by: Bernard Iremonger Acked-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i

[dpdk-dev] [PATCH v6 2/5] net/i40e: add QinQ filter create function

2017-03-31 Thread Bernard Iremonger
Add i40e_cloud_filter_qinq_create function, and call it from i40e_dev_consistent_tunnel_filter_set function. Replace the Outer IP filter with the QinQ filter. QinQ allows multiple VLAN tags to be inserted into a single Ethernet frame. A QinQ frame is a frame that has two VLAN 802.1Q headers. 802.1

[dpdk-dev] [PATCH v6 1/5] net/i40e: initialise L3 MAP register

2017-03-31 Thread Bernard Iremonger
The L3 MAP register is initialised to support QinQ cloud filters. Signed-off-by: Bernard Iremonger Acked-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 00079bb9c.

[dpdk-dev] [PATCH v6 0/5] net/i40e: QinQ filter

2017-03-31 Thread Bernard Iremonger
It adds support for QinQ filters. It uses the replace filter Admin Queue command. Changes in v6: Rebase to latest dpdk-next-net. Fix checkpatch warnings. Changes in v5: Rebase to latest dpdk-next-net. Rebase patches 2 and 3 following comments. Uses map_5.88 firmware. Changes in v4: Reordered pa

Re: [dpdk-dev] [PATCH v2 1/2] net/sfc: choose datapaths after probe and before attach

2017-03-31 Thread Ferruh Yigit
On 3/29/2017 5:59 PM, Andrew Rybchenko wrote: > Datapath choice requires NIC capabilities knowledge and, therefore, > should be done after probe. Whereas NIC resources estimation needs > to know chosen datapath (e.g. if Tx datapath is going to use TSO). > > Fixes: 8221da743f58 ("net/sfc: factor ou

Re: [dpdk-dev] [RFC PATCH] test/test: support default mempool autotest

2017-03-31 Thread Santosh Shukla
On Fri, Mar 31, 2017 at 03:47:49PM +0530, Shreyansh Jain wrote: > Mempool test currently supports: > * ring_mp_mc > * stack > > In case a new mempool handler is added, there are multiple options > for supporting that in the mempool autotest: > 1. Like the patch below, adding a new default pool o

Re: [dpdk-dev] [PATCH v7 1/7] net/ark: stub PMD for Atomic Rules Arkville

2017-03-31 Thread Shepard Siegel
Hi Ferruh, Thank you for the terrific news. Ed is traveling today; we agree with you that pushing to RC2 will allow more chance for reviews with little or no other impact. We will update the release notes [1] to announce ARK PMD on Tuesday by 5PM EDT. As an aside, I want to mention that Atomic R

Re: [dpdk-dev] [PATCH] doc: add eventdev library to 17.05 release notes

2017-03-31 Thread Van Haaren, Harry
> From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Friday, March 31, 2017 3:20 PM > To: dev@dpdk.org > Cc: thomas.monja...@6wind.com; Richardson, Bruce > ; Van Haaren, > Harry ; hemant.agra...@nxp.com; Eads, Gage > ; > nipun.gu...@nxp.com; santosh.shu...@caviumnetworks.com--threa

Re: [dpdk-dev] [PATCH v7 1/7] net/ark: stub PMD for Atomic Rules Arkville

2017-03-31 Thread Ferruh Yigit
On 3/29/2017 10:32 PM, Ed Czeck wrote: > Enable Arkville on supported configurations > Add overview documentation > Minimum driver support for valid compile > Arkville PMD is not supported on ARM or PowerPC at this time > > v6: > * Address review comments > * Unify messaging, logging and debug mac

Re: [dpdk-dev] [PATCH v7 21/22] doc: add SW eventdev PMD to 17.05 release notes

2017-03-31 Thread Jerin Jacob
On Thu, Mar 30, 2017 at 08:30:49PM +0100, Harry van Haaren wrote: > Signed-off-by: Harry van Haaren > --- > doc/guides/rel_notes/release_17_05.rst | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/doc/guides/rel_notes/release_17_05.rst > b/doc/guides/rel_notes/release_17_05.rst >

Re: [dpdk-dev] next technical board meeting, 2017-04-06

2017-03-31 Thread Wiles, Keith
Here is a few advantages to CLI: A couple big advantages I see are: - CLI supports commands, files, aliases, directories. - The alias command is just a string using a simple substitution support for other other commands similar to the bash shell like alias commands. - Files can be stati

Re: [dpdk-dev] [PATCH v5 00/14] refactor and cleanup of rte_ring

2017-03-31 Thread Ferruh Yigit
On 3/29/2017 2:09 PM, Bruce Richardson wrote: > This patchset make a set of, sometimes non-backward compatible, cleanup > changes to the rte_ring code in order to improve it. The resulting code is > shorter, since the existing functions are restructured to reduce code > duplication, as well as bein

Re: [dpdk-dev] next technical board meeting, 2017-04-06

2017-03-31 Thread Wiles, Keith
> On Mar 31, 2017, at 3:52 AM, Olivier Matz wrote: > > Hi, > > On Thu, 30 Mar 2017 15:51:48 +, "Wiles, Keith" > wrote: >>> On Mar 30, 2017, at 10:05 AM, Olivier Matz wrote: >>> >>> Hi Keith, >>> >>> On Thu, 30 Mar 2017 14:25:12 +, "Wiles, Keith" >>> wrote: > On Mar 30, 2017

  1   2   3   >