Re: [dpdk-dev] [PATCH v6 3/4] net/ixgbe: cleanup Tx buffers

2020-01-05 Thread Ananyev, Konstantin
> > > Add support to the ixgbe driver for the API rte_eth_tx_done_cleanup to > > > force free consumed buffers on Tx ring. > > > > > > Signed-off-by: Chenxu Di > > > --- > > > drivers/net/ixgbe/ixgbe_ethdev.c | 2 + > > > drivers/net/ixgbe/ixgbe_rxtx.c | 116 +++

Re: [dpdk-dev] [PATCH] net/mlx5: allow install more meter actions

2020-01-05 Thread Tonghao Zhang
On Fri, Jan 3, 2020 at 11:38 AM Suanming Mou wrote: > > Hello Tonghao, > > Could you please explain much detail about your issue scenario? > > If I understand correctly, you are trying to create two flows with the two > same match criteria? > > Example from testpmd just like that: > add port mete

[dpdk-dev] [PATCH v1 0/1] Add Broadcom Stingray for meson cross-compilation

2020-01-05 Thread Qingmin Liu
Add Broadcom Stingray meson config support. Qingmin Liu (1): config: add Broadcom Stingray for meson cross-compilation config/arm/arm64_stingray_linux_gcc | 17 + 1 file changed, 17 insertions(+) create mode 100644 config/arm/arm64_stingray_linux_gcc -- 2.21.0

[dpdk-dev] [PATCH v1 1/1] config: add Broadcom Stingray for meson cross-compilation

2020-01-05 Thread Qingmin Liu
Broadcom Stingray is armv8 CPU having cortex-a72. The implementor ID is 0x41 (arm) and the primary part number is 0xd08 (cortex-a72). Signed-off-by: Qingmin Liu --- config/arm/arm64_stingray_linux_gcc | 17 + 1 file changed, 17 insertions(+) create mode 100644 config/arm/arm64_s

[dpdk-dev] [PATCH] net/af_xdp: fix redundant check for NEED WAKEUP

2020-01-05 Thread Xiao Wang
Function kick_tx() has built-in detection on NEED_WAKEUP flag, so just call it directly, like elsewhere in the driver. Fixes: d8a210774e1d ("net/af_xdp: support unaligned umem chunks") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/af_xdp/rte_eth_af_xdp.c | 5 + 1 file changed

Re: [dpdk-dev] [PATCH v3] net/ice: use the copy API to do MAC assignment

2020-01-05 Thread Yang, Qiming
> -Original Message- > From: Wang, Haiyue > Sent: Friday, January 3, 2020 10:59 AM > To: dev@dpdk.org; step...@networkplumber.org; Zhang, Qi Z > ; Yang, Qiming ; Ye, > Xiaolong > Cc: Wang, Haiyue > Subject: [PATCH v3] net/ice: use the copy API to do MAC assignment > > Use the API rte_e

[dpdk-dev] [PATCH v2 00/12] base code update

2020-01-05 Thread Qi Zhang
Main changes: 1. add support for MAC rules on specific port 2. support MAC/VLAN with TCP/UDP in switch rule 3. support 1/10G device 4. couple bug fix and code clean. v2: - rebase to next-net-intel. - remove unnecessary empty line in patch 03/12 Qi Zhang (12): net/ice/base: whitelist register f

[dpdk-dev] [PATCH v2 01/12] net/ice/base: whitelist register for NVM access

2020-01-05 Thread Qi Zhang
Allow tools to access register offset 0xB8188 (GLGEN_RSTAT) for NVMUpdate operations. This is a read-only register, so risk of other issues stemming from this change is low. Even so, update the write command to prevent and reject any commands which attempt to write to this register, just like we d

[dpdk-dev] [PATCH v2 07/12] net/ice/base: fix loop limit

2020-01-05 Thread Qi Zhang
In ice_prot_type_to_id routine, correct the loop limit check to use ARRAY_SIZE instead of looking for the array element to have a specific value. Fixes: fed0c5ca5f19 ("net/ice/base: support programming a new switch recipe") Cc: sta...@dpdk.org Signed-off-by: Dan Nowlin Signed-off-by: Paul M Stil

[dpdk-dev] [PATCH v2 02/12] net/ice/base: support MAC/VLAN with TCP/UDP in switch

2020-01-05 Thread Qi Zhang
Add a feature to allow user to add switch filter using input like MAC + VLAN (C-tag only) + L4 (TCP/UDP) port. API "ice_add_adv_rule" is extended to handle this filter type. Signed-off-by: Kiran Patil Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang Acked-by: Qiming Yang --- drivers

[dpdk-dev] [PATCH v2 04/12] net/ice/base: cleanup format of static const declarations

2020-01-05 Thread Qi Zhang
Use a format consistent with the rest of the code. Signed-off-by: Bruce Allan Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang Acked-by: Qiming Yang --- drivers/net/ice/base/ice_switch.c | 40 ++- 1 file changed, 14 insertions(+), 26 deletions(-)

[dpdk-dev] [PATCH v2 08/12] net/ice/base: increase PF reset wait timeout

2020-01-05 Thread Qi Zhang
Increase the maximum time that the driver will wait for a PF reset from 200 milliseconds to 300 milliseconds, to account for possibility of a slightly longer than expected PF reset. Fixes: 453d087ccaff ("net/ice/base: add common functions") Cc: sta...@dpdk.org Signed-off-by: Jacob Keller Signed-

[dpdk-dev] [PATCH v2 03/12] net/ice/base: do not wait for PE unit to load

2020-01-05 Thread Qi Zhang
When RDMA is not enabled, when checking for completion of a CORER or GLOBR do not wait for the PE unit to be loaded (indicated by GLNVM_ULD register's PE_DONE bit being set) since that does not happen and will cause issues such as failing to initialize the device. Signed-off-by: Bruce Allan Signe

[dpdk-dev] [PATCH v2 05/12] net/ice/base: flexbytes should match on header data

2020-01-05 Thread Qi Zhang
Change the extraction sequence generated by flow director flexbytes to use package mac protocol. Without this change data in packet headers cannot be used for flexbyte matching. The old extraction for flex bytes started at the beginning of the payload which is after the header. Signed-off-by: Henr

[dpdk-dev] [PATCH v2 06/12] net/ice/base: enable clearing of the HW tables

2020-01-05 Thread Qi Zhang
Enable the code to clear the HW tables. Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang Acked-by: Qiming Yang --- drivers/net/ice/base/ice_flex_pipe.c | 55 drivers/net/ice/base/ice_flex_pipe.h | 1 + 2 files changed, 56 insertions(+) diff --gi

[dpdk-dev] [PATCH v2 09/12] net/ice/base: change fdir desc preparation

2020-01-05 Thread Qi Zhang
Change internal implemenatation of how FD filter programming desc is prepared. This is to minimize the amount of code needed to prep the FD filter programming desc (avoid memcpy, etc...) and just use predefined shifts and mask. This type of change are needed to expedite FD setup during data path (A

[dpdk-dev] [PATCH v2 12/12] net/ice/base: minor code clean

2020-01-05 Thread Qi Zhang
Couple minor code clean include: 1. Improve debug message format. 2. Add missing macro and comment. 3. Remove unnecessary compile options. Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang Acked-by: Qiming Yang --- drivers/net/ice/base/ice_adminq_cmd.h | 1 + drivers/net/ice/base/ice_

[dpdk-dev] [PATCH v2 11/12] net/ice: support 1/10G device IDs

2020-01-05 Thread Qi Zhang
Add support for 1/10G devices. Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang Acked-by: Qiming Yang --- drivers/net/ice/base/ice_devids.h | 4 drivers/net/ice/ice_ethdev.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/net/ice/base/ice_devids.h b/drivers/

[dpdk-dev] [PATCH v2 10/12] net/ice/base: support add MAC rules on specific port

2020-01-05 Thread Qi Zhang
ice_add_mac_rule allow user to add rule to port based on hw->port_info->lport number. Function in some case should allow user to add filter rule on different port, write another function which implemented that behaviour. The same situation is which removing mac function. Add new api function which

Re: [dpdk-dev] [PATCH v2 01/11] examples/l3fwd: add framework for event device

2020-01-05 Thread Pavan Nikhilesh Bhagavatula
>-Original Message- >From: dev On Behalf Of Ananyev, >Konstantin >Sent: Friday, January 3, 2020 6:19 PM >To: Pavan Nikhilesh Bhagavatula ; Jerin >Jacob Kollanukkaran ; Kovacevic, Marko >; Ori Kam ; >Richardson, Bruce ; Nicolau, Radu >; Akhil Goyal ; >Kantecki, Tomasz ; Sunil Kumar Kori

Re: [dpdk-dev] [PATCH v2 07/11] examples/l3fwd: add service core setup based on caps

2020-01-05 Thread Pavan Nikhilesh Bhagavatula
>> diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c >> index 20df12748..69d212bc2 100644 >> --- a/examples/l3fwd/main.c >> +++ b/examples/l3fwd/main.c >> @@ -826,6 +826,93 @@ prepare_ptype_parser(uint16_t portid, >uint16_t queueid) >> return 0; >> } >> >> +static inline int >> +l3

Re: [dpdk-dev] [PATCH v2 08/11] examples/l3fwd: add event lpm main loop

2020-01-05 Thread Pavan Nikhilesh Bhagavatula
>> Add lpm main loop for handling events based on capabilities of the >> event device. >> >> Signed-off-by: Pavan Nikhilesh >> --- >> examples/l3fwd/l3fwd.h | 9 ++ >> examples/l3fwd/l3fwd_event.c | 9 ++ >> examples/l3fwd/l3fwd_event.h | 5 + >> examples/l3fwd/l3fwd_lpm.c | 231

Re: [dpdk-dev] [PATCH v2 09/11] examples/l3fwd: add event em main loop

2020-01-05 Thread Pavan Nikhilesh Bhagavatula
>> Add em main loop for handling events based on capabilities of the >> event device. >> >> Signed-off-by: Pavan Nikhilesh >> --- >> examples/l3fwd/l3fwd.h | 10 ++ >> examples/l3fwd/l3fwd_em.c| 177 >+++ >> examples/l3fwd/l3fwd_em.h|

Re: [dpdk-dev] [PATCH v2 10/11] examples/l3fwd: add graceful teardown for eventdevice

2020-01-05 Thread Pavan Nikhilesh Bhagavatula
>> Add graceful teardown that addresses both event mode and poll >mode. >> >> Signed-off-by: Pavan Nikhilesh >> --- >> examples/l3fwd/main.c | 49 ++- > >> 1 file changed, 34 insertions(+), 15 deletions(-) >> >> diff --git a/examples/l3fwd/main.c b/examples

[dpdk-dev] [PATCH 1/2] examples/l3fwd: set default schedule type as atomic

2020-01-05 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- These patches are based over https://patchwork.dpdk.org/patch/63553/. Feel free to merge into the series. examples/l3fwd/l3fwd_event.h | 4 1 file changed, 4 insertions(+) diff --git a/examples/l3fwd/l3fwd_event.h b/examples/l3fwd/l3fwd_event.h index fcc0ce5

[dpdk-dev] [PATCH 2/2] examples/l3fwd: support multiple queues in event mode

2020-01-05 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- examples/l3fwd/l3fwd_event.c | 55 examples/l3fwd/l3fwd_event.h | 4 +++ examples/l3fwd/main.c| 8 -- 3 files changed, 53 insertions(+), 14 deletions(-) diff --git a/examples/l3fwd/l3fwd_event.c b/examples/l3fwd/l3

Re: [dpdk-dev] [PATCH 0/2] drivers/net: set fixed flag for exact link speed

2020-01-05 Thread Ye Xiaolong
On 12/19, Xu, Ting wrote: > > >> -Original Message- >> From: dev On Behalf Of Guinan Sun >> Sent: Wednesday, December 4, 2019 12:59 AM >> To: dev@dpdk.org >> Cc: Lu, Wenzhuo ; Yang, Qiming >> ; Xing, Beilei ; Sun, GuinanX >> >> Subject: [dpdk-dev] [PATCH 0/2] drivers/net: set fixed flag f

[dpdk-dev] [PATCH v3] net/iavf/base: change the base as driver common

2020-01-05 Thread Haiyue Wang
Change the iavf base code as driver common library, it is used by iavf PMD now, and it can be used by other Intel SR-IOV PMDs in the future. Signed-off-by: Haiyue Wang --- v3: update the commit message. v2: update the commit message, and rename the iavf_main.c to iavf_impl.c drivers/common/Mak

[dpdk-dev] Fwd: l2fwd application are not sending continuous packets .

2020-01-05 Thread satyavalli rama
Hello Dpdk Team, I'm facing issue while forwarding packets in DPDK's l2fwd application. While sending 1 Lac packets from Scapy, I could see sometimes packets are sending from one VM to another VM. Before explaining issue let me explain topology. *Topology :-===*1) I am having 4 VMs(Virtual

Re: [dpdk-dev] [EXT] [PATCH 2/2] examples/l3fwd: support multiple queues in event mode

2020-01-05 Thread Sunil Kumar Kori
Regards Sunil Kumar Kori >-Original Message- >From: Nipun Gupta >Sent: Monday, January 6, 2020 10:05 AM >To: dev@dpdk.org >Cc: Pavan Nikhilesh Bhagavatula ; Jerin Jacob >Kollanukkaran ; hemant.agra...@nxp.com; >akhil.go...@nxp.com; marko.kovace...@intel.com; or...@mellanox.com; >bruce.

[dpdk-dev] [PATCH] net/mlx5: fix modify actions support limitation

2020-01-05 Thread Bing Zhao
In the root table, there is some limitation of total number of header modify actions, 16 or 8 for each. But in other tables, there is no such strict limitation. In an IPv6 case, the IP fields modifying will occupy more actions than that in IPv4, so the total support number should be increased in or

[dpdk-dev] l2fwd application are not sending continuous packets .

2020-01-05 Thread satyavalli rama
Hello Dpdk Team, I'm facing issue while forwarding packets in DPDK's l2fwd application. While sending 1 Lac packets from Scapy, I could see sometimes packets are sending from one VM to another VM. Before explaining issue let me explain topology. *Topology :-===*1) I am having 4 VMs(Virtual

[dpdk-dev] [PATCH 2/2] test/eventdev: fix octeontx2 event device name

2020-01-05 Thread pbhagavatula
From: Pavan Nikhilesh Fix octeontx2 event device name used in eventdevice test. Fixes: 62561532ac4c ("event/octeontx2: add SSO selftest") Cc: sta...@dpdk.org Signed-off-by: Pavan Nikhilesh --- app/test/test_eventdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tes

[dpdk-dev] [PATCH 1/2] test/eventdev: fix unintended vdev creation

2020-01-05 Thread pbhagavatula
From: Pavan Nikhilesh Virtual eventdevice should only be created when there is no existing device with the same name. Fixes: e0f4a0ed4237 ("test: skip tests when missing requirements") Cc: sta...@dpdk.org Signed-off-by: Pavan Nikhilesh --- app/test/test_eventdev.c | 6 +- 1 file changed,

[dpdk-dev] [PATCH] event/octeontx2: fix device name in device info

2020-01-05 Thread pbhagavatula
From: Pavan Nikhilesh Fix imcorrect device name being used in device info. Fixes: bebc3dbcf4a6 ("event/octeontx2: add device capabilities function") Cc: sta...@dpdk.org Signed-off-by: Pavan Nikhilesh --- drivers/event/octeontx2/otx2_evdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-