[dpdk-dev] [PATCH 0/2] enable VLAN offload in DCF

2020-09-01 Thread Qiming Yang
This patch set enabled port representor and vlan offload base on DCF port representor. Qiming Yang (2): net/ice: add dcf port representor infrastructure net/ice: add VLAN config for DCF drivers/net/ice/Makefile | 1 + drivers/net/ice/ice_dcf.h| 1 + driver

Re: [dpdk-dev] [PATCH] gro: add UDP GRO and VXLAN UDP GRO support

2020-09-01 Thread Hu, Jiayu
GRO lib requires users to provide correct mbuf->l2_len/packet_type etc.. This is for avoiding parsing packet headers. If we believe users give correct packet_type, we also should believe l2_len/l4_len etc. are correct. Otherwise, we need to get layer 4 header length from ipv4 header, rather than mb

Re: [dpdk-dev] [PATCH] gro: add UDP GRO and VXLAN UDP GRO support

2020-09-01 Thread yang_y_yi
Jiayu, TCP header length is variable if there is TCP option, it is usually 20 if no TCP option, but correct value must be between 20 and 60 (including 20 and 60), I think we can't assume l4 header length has been set correctly if packet_type is set correctly, this is my point. I think it will be

Re: [dpdk-dev] [PATCH] gro: add UDP GRO and VXLAN UDP GRO support

2020-09-01 Thread Hu, Jiayu
Yi, Packet type is checked by mbuf->packet_type field, and input packets should provide correct packet_type value. TCP GRO only process TCP packets whose header length is between 20 and 60 bytes. So we check l4_len. From: yang_y_yi Sent: Tuesday, September 1, 2020 4:43 PM To: Hu, Jiayu Cc: dev@

Re: [dpdk-dev] [PATCH v6 1/8] net/dpaa: add support for fmlib in dpdk

2020-09-01 Thread Hemant Agrawal
Hi Ferruh, > -Original Message- > From: Ferruh Yigit > Sent: Tuesday, September 1, 2020 9:19 PM > To: Hemant Agrawal ; dev@dpdk.org > Subject: Re: [PATCH v6 1/8] net/dpaa: add support for fmlib in dpdk > > On 9/1/2020 1:36 PM, Hemant Agrawal wrote: > > DPAA platorm MAC interface is known

Re: [dpdk-dev] [PATCH v3 1/4] ethdev: add a field for rxq info structure

2020-09-01 Thread Chengchang Tang
Hi, Matan On 2020/9/1 23:33, Matan Azrad wrote: > > Hi Chengchang > > Please see some question below. > > From: Chengchang Tang >> Add a field named rx_buf_size in rte_eth_rxq_info to indicate the buffer size >> used in receiving packets for HW. >> >> In this way, upper-layer users can get this

Re: [dpdk-dev] [PATCH v1] net/ice: fix none GTPU TEID hash

2020-09-01 Thread Peng, Yuan
Test-by Peng, Yuan -Original Message- From: dev On Behalf Of Jeff Guo Sent: Friday, August 28, 2020 11:34 PM To: Yang, Qiming ; Zhang, Qi Z Cc: dev@dpdk.org; Guo, Jia Subject: [dpdk-dev] [PATCH v1] net/ice: fix none GTPU TEID hash GTPU TEID hash should only be enabled when ETH_RSS_GT

[dpdk-dev] [PATCH v2] app/testpmd: fix the default RSS key configuration

2020-09-01 Thread Lijun Ou
When a user runs a flow create cmd to configure an RSS rule with specifying the empty rss actions in testpmd, this mean that the flow gets the default RSS functions from the valid NIC default RSS hash key. However, the testpmd is not set the default RSS key incorrectly when RSS key is not specified

[dpdk-dev] [PATCH] net/ixgbe: fix vf reset hw error handling

2020-09-01 Thread SteveX Yang
The PF control message will interrupt the assigning MAC address for VF when PF physical link down, and the VF reset operation returns the IXGBE_ERR_INVALID_MAC_ADDR. In this case, reuses the MAC address from eth_ixgbevf_dev_init() directly, no need care of PF assignment. Fixes: f69166c9a3c9 ("net/

Re: [dpdk-dev] [RFC v2] lib/hash: integrate RCU QSBR

2020-09-01 Thread Dharmik Thakkar
Hi Yipeng, Thank you for the comments! > On Aug 31, 2020, at 3:47 PM, Wang, Yipeng1 wrote: > >> -Original Message- >> From: Dharmik Thakkar >> Sent: Tuesday, August 18, 2020 9:06 PM >> To: Wang, Yipeng1 ; Gobriel, Sameh >> ; Richardson, Bruce ; >> Ray Kinsella ; Neil Horman >> Cc: dev@

Re: [dpdk-dev] [EXT] Re: [PATCH v7 1/3] ethdev: add level support for RSS offload types

2020-09-01 Thread Ajit Khaparde
On Tue, Sep 1, 2020 at 7:27 AM Kiran Kumar Kokkilagadda < kirankum...@marvell.com> wrote: > > > > -Original Message- > > From: Ferruh Yigit > > Sent: Tuesday, September 1, 2020 7:08 PM > > To: Kiran Kumar Kokkilagadda ; Thomas Monjalon > > ; Andrew Rybchenko > > Cc: dev@dpdk.org; Jerin J

[dpdk-dev] [PATCH V1] testpmd: add eeprom/module eeprom display

2020-09-01 Thread David Liu
Change display message. Add EEPROM dump command "show port eeprom" Add module EEPROM dump command "show port module_eeprom" Commands will dump the content of the EEPROM/module EEPROM for the selected port. Signed-off-by: David Liu --- app/test-pmd/cmdline.c | 87 +

[dpdk-dev] [PATCH V1] testpmd: add eeprom/module eeprom display

2020-09-01 Thread David Liu
Add EEPROM dump command "show port eeprom" Add module EEPROM dump command "show port module_eeprom" Commands will dump the content of the EEPROM/module EEPROM for the selected port. Signed-off-by: David Liu --- app/test-pmd/cmdline.c | 87 ++ app/test-

Re: [dpdk-dev] [PATCH v2] app/test/test_distributor.c: prevent memory leakages from the pool

2020-09-01 Thread Lukasz Wojciechowski
Sarosh, I cherry picked your patch on current main branch and it works and builds without problems, maybe try resubmitting it as v3. Best regards Lukasz W dniu 24.06.2020 o 12:02, Sarosh Arif pisze: > Some tests are failing on this patch but I don't think the reason > behind the failure is th

[dpdk-dev] [PATCH] net/cxgbe: fix segfault when accessing empty Tx mbuf list

2020-09-01 Thread Rahul Lakkireddy
Ensure packets are available before accessing the mbuf list in Tx burst function. Otherwise, just reclaim completed Tx descriptors and exit. Fixes: b1df19e43e1d ("net/cxgbe: fix prefetch for non-coalesced Tx packets") Cc: sta...@dpdk.org Reported-by: Brian Poole Signed-off-by: Rahul Lakkireddy

[dpdk-dev] [PATCH] net/cxgbe: fix duplicate MAC addresses in MPS TCAM

2020-09-01 Thread Rahul Lakkireddy
From: Karra Satwik During MAC address insertion to MPS TCAM, add a default mask when the mask is not explicitly specified. Othewise, driver misses the mask comparison and ends up inserting duplicate entries in the MPS TCAM. Fixes: 6fda3f0ddda9 ("net/cxgbe: add API to program hardware MPS table")

[dpdk-dev] [PATCH 2/2] net/cxgbe: release port resources during port close

2020-09-01 Thread Rahul Lakkireddy
Enable RTE_ETH_DEV_CLOSE_REMOVE during PCI probe for all ports enumerated under the PF. Free up the underlying port Virtual Identifier (VI) and associated resources during port close. Once all the ports under the PF are closed, free up the PF-wide shared resources. Invoke port close function of all

[dpdk-dev] [PATCH 1/2] net/cxgbe: fix queue DMA ring leaks during port close

2020-09-01 Thread Rahul Lakkireddy
Free up the DMA memzones properly for all the port's queues during port close. So, rework DMA ring allocation/free logic to use rte_eth_dma_zone_reserve()/rte_eth_dma_zone_free() helper functions for allocating/freeing the memzones. The firmware event queue doesn't have an associated freelist queu

[dpdk-dev] [PATCH 0/2] net/cxgbe: release port resources during port close

2020-09-01 Thread Rahul Lakkireddy
Patch 1 fixes queue DMA ring leaks seen during port close. Patch 2 enables RTE_ETH_DEV_CLOSE_REMOVE and reworks resources release logic for port close. Thanks, Rahul Rahul Lakkireddy (2): net/cxgbe: fix queue DMA ring leaks during port close net/cxgbe: release port resources during port clo

[dpdk-dev] [PATCH] usertools: add huge page setup script

2020-09-01 Thread Stephen Hemminger
This is an improved version of the setup of huge pages bases on earlier DPDK setup. Differences are: * it autodetects NUMA vs non NUMA * it allows setting different page sizes recent kernels support multiple sizes. * it accepts a parameter in bytes (not pages). Signed-off-by: Stephen

Re: [dpdk-dev] [PATCH 2/4] ethdev: fix compiling errors for per-queue statistics

2020-09-01 Thread Ferruh Yigit
On 9/1/2020 12:52 PM, Min Hu (Connor) wrote: > From: Huisong Li > > Currently, only statistics of rx/tx queues with queue_id less than > RTE_ETHDEV_QUEUE_STAT_CNTRS can be displayed. If there is a certain > application scenario that it needs to use 256 or more than 256 queues > and display all st

Re: [dpdk-dev] [RFC] avoid libfdt checks adding full paths to pkg-config

2020-09-01 Thread Luca Boccassi
On Tue, 2020-09-01 at 17:58 +0200, Christian Ehrhardt wrote: > The checks for libfdt try dependency() first which would only work if > a pkg-config would be present but libfdt has none. > Then it probes for the lib path itself via cc.find_library. > > But later it adds the result of either probe t

Re: [dpdk-dev] [PATCH 0/4] ethdev: change the queue ID type

2020-09-01 Thread Ferruh Yigit
On 9/1/2020 12:52 PM, Min Hu (Connor) wrote: > This series are minor change the queue ID type from > uint8_t to uint16_t. > > Huisong Li (2): > ethdev: change data type in TC rxq and TC txq > ethdev: fix compiling errors for per-queue statistics > > Min Hu (Connor) (2): > doc: announce modi

Re: [dpdk-dev] [RFC] avoid libfdt checks adding full paths to pkg-config

2020-09-01 Thread Christian Ehrhardt
On Tue, Sep 1, 2020 at 5:58 PM Christian Ehrhardt wrote: > > The checks for libfdt try dependency() first which would only work if > a pkg-config would be present but libfdt has none. > Then it probes for the lib path itself via cc.find_library. > > But later it adds the result of either probe to

[dpdk-dev] Regarding bond and slave driver configuration in DPDK 19.11

2020-09-01 Thread Nandini Rangaswamy
Hi , I am attempting to setup/configure bond and slave interfaces in DPDK application and it fails in DPDK 19.11. DPDK daemon is started with the following command line arguments: --no-daemon --socket-mem 1024 1024 --vdev eth_bond_bond0,mode=4,xmit_policy=l34,socket_id=1,mac=ac:1f:6b:8d:d7:c6,lac

[dpdk-dev] [RFC] avoid libfdt checks adding full paths to pkg-config

2020-09-01 Thread Christian Ehrhardt
The checks for libfdt try dependency() first which would only work if a pkg-config would be present but libfdt has none. Then it probes for the lib path itself via cc.find_library. But later it adds the result of either probe to ext_deps which ends up in build and also the resulting pkg-config to

Re: [dpdk-dev] [PATCH v6 1/8] net/dpaa: add support for fmlib in dpdk

2020-09-01 Thread Ferruh Yigit
On 9/1/2020 1:36 PM, Hemant Agrawal wrote: > DPAA platorm MAC interface is known as FMAN i.e. Frame Manager. > There are two ways to control it. > 1. Statically configure the queues and classification rules before the > start of the application using FMC tool. > 2. Dynamically configure it within a

Re: [dpdk-dev] [PATCH v3 1/4] ethdev: add a field for rxq info structure

2020-09-01 Thread Matan Azrad
Hi Chengchang Please see some question below. From: Chengchang Tang > Add a field named rx_buf_size in rte_eth_rxq_info to indicate the buffer size > used in receiving packets for HW. > > In this way, upper-layer users can get this information by calling > rte_eth_rx_queue_info_get. > > Signe

Re: [dpdk-dev] 19.11.4 patches review and test

2020-09-01 Thread Stokes, Ian
> Hi, > > Yes , OVS was using pkg-config even before these patches were rolled out. > But it always used to pick the DPDK shared libs by default for OVS even on > using > the -Bstatic/-Bshared flags. > These patches from Bruce simplify the process from DPDK side without having > the user to speci

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/af_xdp: change return value from Rx to unsigned

2020-09-01 Thread Ferruh Yigit
On 8/7/2020 11:07 AM, Ferruh Yigit wrote: > On 8/7/2020 10:32 AM, Ciara Loftus wrote: >> The af_xdp rx function was returning a negative value on error, when an >> unsigned value is expected. Fix this. >> >> Fixes: d8a210774e1d ("net/af_xdp: support unaligned umem chunks") >> Cc: sta...@dpdk.org >>

Re: [dpdk-dev] [PATCH v4 2/2] Add l2reflect measurement application

2020-09-01 Thread Thomas Monjalon
28/08/2020 16:22, Henning Schild: > Thomas, > > what is the state on this one? Any more steps to take or people to > involve? I can try adding some key people in Cc list, while doing a quick review. > I first showed that in action back in 2016 on FOSDEM. > https://archive.fosdem.org/2016/schedul

Re: [dpdk-dev] [EXT] Re: [PATCH v7 1/3] ethdev: add level support for RSS offload types

2020-09-01 Thread Ferruh Yigit
On 9/1/2020 3:27 PM, Kiran Kumar Kokkilagadda wrote: -Original Message- From: Ferruh Yigit Sent: Tuesday, September 1, 2020 7:08 PM To: Kiran Kumar Kokkilagadda ; Thomas Monjalon ; Andrew Rybchenko Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ; or...@mellanox.com; xuanziya...@huawei.c

[dpdk-dev] [PATCH] doc: add index file to doxygen dependencies

2020-09-01 Thread Bruce Richardson
The doxygen index file is not printed as a processed file by doxygen so it does not appear in the output .d (dependency file) list automatically generated. Therefore, for correct rebuild tracking, we need to explicitly include it as a dependency of the doxygen job. Signed-off-by: Bruce Richardson

[dpdk-dev] [PATCH] lib/bpf: remove experimental tag

2020-09-01 Thread Conor Walsh
The BPF lib was introduced in 18.05. There were no changes in it's public API since 19.11. It should be mature enough to remove it's 'experimental' tag. Signed-off-by: Conor Walsh --- MAINTAINERS| 2 +- lib/librte_bpf/rte_bpf.h | 10 -- lib/librte_bpf/r

[dpdk-dev] [PATCH] lib/ipsec: remove experimental tag

2020-09-01 Thread Conor Walsh
Since librte_ipsec was first introduced in 19.02 and there were no changes in it's public API since 19.11, it should be considered mature enough to remove the 'experimental' tag from it. Signed-off-by: Conor Walsh --- MAINTAINERS| 2 +- lib/librte_ipsec/rte_ipsec.h

Re: [dpdk-dev] [EXT] Re: [PATCH v7 1/3] ethdev: add level support for RSS offload types

2020-09-01 Thread Ferruh Yigit
On 9/1/2020 3:27 PM, Kiran Kumar Kokkilagadda wrote: -Original Message- From: Ferruh Yigit Sent: Tuesday, September 1, 2020 7:08 PM To: Kiran Kumar Kokkilagadda ; Thomas Monjalon ; Andrew Rybchenko Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ; or...@mellanox.com; xuanziya...@huawei.c

Re: [dpdk-dev] [EXT] Re: [PATCH v7 1/3] ethdev: add level support for RSS offload types

2020-09-01 Thread Kiran Kumar Kokkilagadda
> -Original Message- > From: Ferruh Yigit > Sent: Tuesday, September 1, 2020 7:08 PM > To: Kiran Kumar Kokkilagadda ; Thomas Monjalon > ; Andrew Rybchenko > Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ; > or...@mellanox.com; xuanziya...@huawei.com; > cloud.wangxiao...@huawei.com; zhougu

Re: [dpdk-dev] DPDK Experimental Functions

2020-09-01 Thread Thomas Monjalon
27/08/2020 15:00, Kinsella, Ray: > Hi All, > > During recent work on the DPDK ABI, where we are looking to develop a nightly > ABI regression test. > > We found a large number of experimental functions currently in DPDK API. > Currently, there are 537 experimental APIs out of a total of roughly

Re: [dpdk-dev] [PATCH v7 1/3] ethdev: add level support for RSS offload types

2020-09-01 Thread Ferruh Yigit
On 9/1/2020 4:27 AM, kirankum...@marvell.com wrote: From: Kiran Kumar K This patch reserves 2 bits as input selection to select Inner and outer encapsulation level for RSS computation. It is combined with existing ETH_RSS_* to choose Inner or outer layers. This functionality already exists in r

Re: [dpdk-dev] [RFC] usertools: Replace dpdk-setup with a python curses based script

2020-09-01 Thread Thomas Monjalon
18/08/2020 19:09, Stephen Hemminger: > On Tue, 18 Aug 2020 17:39:19 +0500 > Sarosh Arif wrote: > > > dpdk-setup has been used for a long time in order to compile and > > configure dpdk along with running some basic applications. dpdk-setup > > uses the make build system to compile which is now de

Re: [dpdk-dev] 19.11.4 patches review and test

2020-09-01 Thread Bruce Richardson
On Tue, Sep 01, 2020 at 02:01:28PM +0100, Bruce Richardson wrote: > On Tue, Sep 01, 2020 at 01:49:07PM +0100, Luca Boccassi wrote: > > On Tue, 2020-09-01 at 14:32 +0200, Christian Ehrhardt wrote: > > > On Tue, Sep 1, 2020 at 10:30 AM Luca Boccassi wrote: > > > > On Tue, 2020-08-18 at 19:12 +0100,

Re: [dpdk-dev] 19.11.4 patches review and test

2020-09-01 Thread Pai G, Sunil
Hi, Yes , OVS was using pkg-config even before these patches were rolled out. But it always used to pick the DPDK shared libs by default for OVS even on using the -Bstatic/-Bshared flags. These patches from Bruce simplify the process from DPDK side without having the user to specify them. Moreov

Re: [dpdk-dev] [PATCH v6 1/3] ethdev: add level support for RSS offload types

2020-09-01 Thread Ferruh Yigit
On 8/29/2020 3:52 PM, Andrew Rybchenko wrote: On 8/21/20 2:03 PM, kirankum...@marvell.com wrote: From: Kiran Kumar K This patch reserves 2 bits as input selection to select Inner and outer layers for RSS computation. It is combined with existing ETH_RSS_* to choose Inner or outer layers for L2

Re: [dpdk-dev] 19.11.4 patches review and test

2020-09-01 Thread Bruce Richardson
On Tue, Sep 01, 2020 at 01:49:07PM +0100, Luca Boccassi wrote: > On Tue, 2020-09-01 at 14:32 +0200, Christian Ehrhardt wrote: > > On Tue, Sep 1, 2020 at 10:30 AM Luca Boccassi wrote: > > > On Tue, 2020-08-18 at 19:12 +0100, Luca Boccassi wrote: > > > > Hi all, > > > > > > > > Here is a list of pa

Re: [dpdk-dev] 19.11.4 patches review and test

2020-09-01 Thread Luca Boccassi
On Tue, 2020-09-01 at 14:32 +0200, Christian Ehrhardt wrote: > On Tue, Sep 1, 2020 at 10:30 AM Luca Boccassi wrote: > > On Tue, 2020-08-18 at 19:12 +0100, Luca Boccassi wrote: > > > Hi all, > > > > > > Here is a list of patches targeted for stable release 19.11.4. > > > > > > The planned date fo

Re: [dpdk-dev] 19.11.4 patches review and test

2020-09-01 Thread Bruce Richardson
On Tue, Sep 01, 2020 at 02:32:26PM +0200, Christian Ehrhardt wrote: > On Tue, Sep 1, 2020 at 10:30 AM Luca Boccassi wrote: > > > > On Tue, 2020-08-18 at 19:12 +0100, Luca Boccassi wrote: > > > Hi all, > > > > > > Here is a list of patches targeted for stable release 19.11.4. > > > > > > The planne

[dpdk-dev] [PATCH v6 8/8] net/dpaa: add RSS update func with FMCless

2020-09-01 Thread Hemant Agrawal
From: Sachin Saxena With fmlib (FMCLESS) mode now RSS can be modified on runtime. This patch add support for RSS update functions Signed-off-by: Hemant Agrawal Signed-off-by: Sachin Saxena --- drivers/net/dpaa/dpaa_ethdev.c | 37 ++ 1 file changed, 37 insertion

[dpdk-dev] [PATCH v6 6/8] net/dpaa: add support for Virtual Storage Profile

2020-09-01 Thread Hemant Agrawal
From: Jun Yang This patch adds support for Virtual Storage profile (VSP) feature. With VSP support when memory pool is created, the hw buffer pool id i.e. bpid is not allocated; thhe bpid is identified by dpaa flow create API. The memory pool of RX queue is attached to specific BMan pool accordin

[dpdk-dev] [PATCH v6 7/8] net/dpaa: add fmc parser support for VSP

2020-09-01 Thread Hemant Agrawal
From: Jun Yang FMC tool genertes and saves the setup in a file. This patch help Parse the /tmp/fmc.bin generated by fmc to setup RXQs for each port on fmc mode. The parser gets the fqids and vspids from fmc.bin Signed-off-by: Jun Yang Acked-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_ethdev.

[dpdk-dev] [PATCH v6 5/8] bus/dpaa: add Virtual Storage Profile port init

2020-09-01 Thread Hemant Agrawal
This patch add support to initialize the VSP ports in the FMAN library. Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/base/fman/fman.c | 57 +++ drivers/bus/dpaa/include/fman.h | 3 ++ 2 files changed, 60 insertions(+) diff --git a/drivers/bus/dpaa/base/fman/

[dpdk-dev] [PATCH v6 3/8] net/dpaa: add support for fmcless mode

2020-09-01 Thread Hemant Agrawal
From: Sachin Saxena This patch uses fmlib to configure the FMAN HW for flow and distribution configuration, thus avoiding the need for static FMC tool execution optionally. Signed-off-by: Sachin Saxena Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/include/fsl_qman.h | 1 + driver

[dpdk-dev] [PATCH v6 4/8] bus/dpaa: add shared MAC support

2020-09-01 Thread Hemant Agrawal
From: Radu Bulie A shared MAC interface is an interface which can be used by both kernel and userspace based on classification configuration It is defined in dts with the compatible string "fsl,dpa-ethernet-shared" which bpool will be seeded by the dpdk partition and configured as a netdev by the

[dpdk-dev] [PATCH v6 2/8] net/dpaa: add VSP support in FMLIB

2020-09-01 Thread Hemant Agrawal
From: Jun Yang This patch adds support for VSP (Virtual Storage Profile) in fmlib routines. VSP allow a network interface to be divided into physical and virtual instance(s). The concept is very similar to SRIOV. Signed-off-by: Jun Yang Acked-by: Hemant Agrawal --- doc/guides/nics/dpaa.rst

Re: [dpdk-dev] 19.11.4 patches review and test

2020-09-01 Thread Christian Ehrhardt
On Tue, Sep 1, 2020 at 10:30 AM Luca Boccassi wrote: > > On Tue, 2020-08-18 at 19:12 +0100, Luca Boccassi wrote: > > Hi all, > > > > Here is a list of patches targeted for stable release 19.11.4. > > > > The planned date for the final release is August 31st. > > > > Please help with testing and va

[dpdk-dev] [PATCH 4/4] doc: add Marvell OCTEON TX2 regex guide

2020-09-01 Thread guyk
From: Guy Kaneti Signed-off-by: Guy Kaneti --- doc/guides/platform/octeontx2.rst | 5 +++ doc/guides/regexdevs/features/octeontx2.ini | 10 + doc/guides/regexdevs/index.rst | 1 + doc/guides/regexdevs/octeontx2.rst | 49 + doc/guides/rel

[dpdk-dev] [PATCH 3/4] usertools: add octeontx2 REE device binding

2020-09-01 Thread guyk
From: Guy Kaneti Update the devbind script with new section of regex devices, also added OCTEONTX2 REE device ID to regex device list Signed-off-by: Guy Kaneti --- usertools/dpdk-devbind.py | 8 1 file changed, 8 insertions(+) diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-d

[dpdk-dev] [PATCH 2/4] regex/octeontx2: add build infra and device support

2020-09-01 Thread guyk
From: Guy Kaneti Add meson based build infrastructure along with the OTX2 regexdev (REE) device functions. For regex rule compiler support build: meson configure -Dree_compiler_sdk= Signed-off-by: Guy Kaneti --- MAINTAINERS |3 + config/common_base

[dpdk-dev] [PATCH 1/4] common/octeontx2: add REE definitions and logging support

2020-09-01 Thread guyk
From: Guy Kaneti Add REE mbox msg definitions, RVU and REE HW definitions Signed-off-by: Guy Kaneti --- drivers/common/octeontx2/hw/otx2_ree.h| 27 + drivers/common/octeontx2/hw/otx2_rvu.h| 5 + drivers/common/octeontx2/otx2_common.c| 1 + drivers/common/octeon

[dpdk-dev] [PATCH 0/4] Add Marvell OCTEON TX2 regex driver

2020-09-01 Thread guyk
From: Guy Kaneti This patchset adds support for OCTEON TX2 regex driver as DPDK regexdev. The driver implements the API defined in the regexdev lib. Guy Kaneti (4): common/octeontx2: add REE definitions and logging support regex/octeontx2: add build infra and device support usertools: add

[dpdk-dev] [PATCH 2/4] ethdev: fix compiling errors for per-queue statistics

2020-09-01 Thread Min Hu (Connor)
From: Huisong Li Currently, only statistics of rx/tx queues with queue_id less than RTE_ETHDEV_QUEUE_STAT_CNTRS can be displayed. If there is a certain application scenario that it needs to use 256 or more than 256 queues and display all statistics of rx/tx queue. At this moment, we have to chang

[dpdk-dev] EAL: Failed to hotplug add device

2020-09-01 Thread Dinesh Ramesh
I am trying to test my application with trex and dpdk l3fwd. It's like sending the traffic from trex port 0 and it should land on l3fwd app port 1 and it should reverse the traffic again from port 1 to port 0. port 0 is ingress and port 1 is egress. sending the traffic in port 0 from trex, and l3fw

[dpdk-dev] [PATCH 4/4] doc: announce modified field in ethdev API

2020-09-01 Thread Min Hu (Connor)
Field type of stat_idx will be modified, from uint8_t to uint16_t in "set_queue_stats_mapping", "rte_eth_dev_set_tx_queue_stats_mapping", "rte_eth_dev_set_rx_queue_stats_mapping" for meeting the needs use 256 or more than 256 queues and display all statistics of rx/tx queue. Signed-off-by: Min Hu

Re: [dpdk-dev] [PATCH] net: add a new network PMD named txgbe

2020-09-01 Thread jiawenwu
Hi Ferruh, Since this patch is too large, it needs to be split into so many small patches, which takes a lot of time. Therefore, I first created a part of patches to contribute. And if there is a review problem with these patches, please let me know as soon. And I will complete the remaining pat

[dpdk-dev] [PATCH 3/4] doc: announce modified field in DCB TC queue mapping

2020-09-01 Thread Min Hu (Connor)
Field type of base and nb_queue will be modified, from uint8_t to uint16_t in struct ``rte_eth_dcb_tc_queue_mapping``.As the data of uint8_t will be truncated when queue number under a TC is greater than 256. Signed-off-by: Min Hu (Connor) Reviewed-by: Wei Hu (Xavier) --- doc/guides/rel_notes/

[dpdk-dev] [PATCH 1/4] ethdev: change data type in TC rxq and TC txq

2020-09-01 Thread Min Hu (Connor)
From: Huisong Li Currently, base and nb_queue in the tc_rxq and tc_txq information of queue and TC mapping on both TX and RX paths are uint8_t. However, these datas will be truncated when queue number under a TC is greater than 256. So it is necessay for base and nb_queue to change from uint8_t t

[dpdk-dev] [PATCH v1 40/42] net/txgbe: add device promiscuous and allmulticast mode

2020-09-01 Thread Jiawen Wu
Add device promiscuous and allmulticast mode Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_ethdev.c | 63 1 file changed, 63 insertions(+) diff --git a/drivers/net/txgbe/txgbe_ethdev.c b/drivers/net/txgbe/txgbe_ethdev.c index 7a2f16d63..a2a8f2726 100644 -

[dpdk-dev] [PATCH 0/4] ethdev: change the queue ID type

2020-09-01 Thread Min Hu (Connor)
This series are minor change the queue ID type from uint8_t to uint16_t. Huisong Li (2): ethdev: change data type in TC rxq and TC txq ethdev: fix compiling errors for per-queue statistics Min Hu (Connor) (2): doc: announce modified field in DCB TC queue mapping doc: announce modified fie

[dpdk-dev] [PATCH v1 41/42] net/txgbe: add MTU set operation

2020-09-01 Thread Jiawen Wu
Add MTU set operation. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_type.h | 2 ++ drivers/net/txgbe/txgbe_ethdev.c| 41 + 2 files changed, 43 insertions(+) diff --git a/drivers/net/txgbe/base/txgbe_type.h b/drivers/net/txgbe/base/txgbe_type.h inde

[dpdk-dev] [PATCH v1 42/42] net/txgbe: add register dump support

2020-09-01 Thread Jiawen Wu
Add register dump support. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_type.h | 1 + drivers/net/txgbe/txgbe_ethdev.c | 113 +++ drivers/net/txgbe/txgbe_regs_group.h | 54 + 3 files changed, 168 insertions(+) create mode 100644 drivers/n

[dpdk-dev] [PATCH v1 38/42] net/txgbe: add DCB packet buffer allocation

2020-09-01 Thread Jiawen Wu
Add DCB packet buffer allocation and priority flow control support. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/meson.build | 1 + drivers/net/txgbe/base/txgbe.h | 1 + drivers/net/txgbe/base/txgbe_dcb.c | 180 drivers/net/txgbe/base/txgbe_dcb.h |

[dpdk-dev] [PATCH v1 39/42] net/txgbe: configure DCB HW resources

2020-09-01 Thread Jiawen Wu
Add DCB transmit and receive mode configurations. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/meson.build| 1 + drivers/net/txgbe/base/txgbe_dcb.c| 180 drivers/net/txgbe/base/txgbe_dcb.h| 27 ++ drivers/net/txgbe/base/txgbe_dcb_hw.c | 283 +++

[dpdk-dev] [PATCH v1 35/42] net/txgbe: add VLAN handle support

2020-09-01 Thread Jiawen Wu
Add VLAN filter, tpid, offload and strip set support. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_ethdev.c | 370 +++ drivers/net/txgbe/txgbe_ethdev.h | 32 +++ 2 files changed, 402 insertions(+) diff --git a/drivers/net/txgbe/txgbe_ethdev.c b/drivers/net/t

[dpdk-dev] [PATCH v1 37/42] net/txgbe: add FC auto negotiation support

2020-09-01 Thread Jiawen Wu
Add flow control negotitation with link partner. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_hw.c | 201 ++ drivers/net/txgbe/base/txgbe_hw.h | 4 +- 2 files changed, 204 insertions(+), 1 deletion(-) diff --git a/drivers/net/txgbe/base/txgbe_hw.c b/d

[dpdk-dev] [PATCH v1 36/42] net/txgbe: add flow control support

2020-09-01 Thread Jiawen Wu
Add flow control support. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_hw.c | 426 drivers/net/txgbe/base/txgbe_hw.h | 6 + drivers/net/txgbe/base/txgbe_type.h | 24 ++ drivers/net/txgbe/txgbe_ethdev.c| 118 +++- drivers/net/txgbe/txgbe_et

[dpdk-dev] [PATCH v1 34/42] net/txgbe: add remaining RX and TX queue operations

2020-09-01 Thread Jiawen Wu
Add remaining receive and transmit queue operaions. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_ethdev.c | 123 +++ drivers/net/txgbe/txgbe_ethdev.h | 16 ++ drivers/net/txgbe/txgbe_rxtx.c | 259 +++ drivers/net/txgbe/txgbe_rxtx.h | 1 + 4

[dpdk-dev] [PATCH v1 30/42] net/txgbe: add device info get

2020-09-01 Thread Jiawen Wu
Add device information get operation. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_ethdev.c | 78 + drivers/net/txgbe/txgbe_ethdev.h | 25 drivers/net/txgbe/txgbe_rxtx.c | 99 drivers/net/txgbe/txgbe_rxtx.h | 4 ++ 4

[dpdk-dev] [PATCH v1 33/42] net/txgbe: add EEPROM info get operation

2020-09-01 Thread Jiawen Wu
Add EEPROM information get related operations. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_eeprom.h | 8 ++ drivers/net/txgbe/base/txgbe_hw.c | 137 +++ drivers/net/txgbe/base/txgbe_hw.h | 5 + drivers/net/txgbe/base/txgbe_phy.c| 16 +++ drivers

[dpdk-dev] [PATCH v1 31/42] net/txgbe: add MAC address operations

2020-09-01 Thread Jiawen Wu
Add MAC address related operations. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_eeprom.h | 2 + drivers/net/txgbe/base/txgbe_hw.c | 434 ++ drivers/net/txgbe/base/txgbe_hw.h | 11 + drivers/net/txgbe/base/txgbe_type.h | 14 +- drivers/net/txgbe

[dpdk-dev] [PATCH v1 29/42] net/txgbe: add queue stats mapping and enable RX DMA unit

2020-09-01 Thread Jiawen Wu
Add queue stats mapping set, complete receive and transmit unit with DMA and sec path. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_hw.c | 389 +++- drivers/net/txgbe/base/txgbe_hw.h | 9 + drivers/net/txgbe/base/txgbe_type.h | 1 + drivers/net/txgbe

[dpdk-dev] [PATCH v1 26/42] net/txgbe: fill TX prepare funtion

2020-09-01 Thread Jiawen Wu
Fill transmit prepare function. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_rxtx.c | 52 +++--- drivers/net/txgbe/txgbe_rxtx.h | 2 ++ 2 files changed, 50 insertions(+), 4 deletions(-) diff --git a/drivers/net/txgbe/txgbe_rxtx.c b/drivers/net/txgbe/txgbe_rx

[dpdk-dev] [PATCH v1 32/42] net/txgbe: add FW version get operation

2020-09-01 Thread Jiawen Wu
Add firmware version get operation. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_ethdev.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/net/txgbe/txgbe_ethdev.c b/drivers/net/txgbe/txgbe_ethdev.c index 4922a9ca0..f5a986309 100644 --- a/drivers/net/tx

[dpdk-dev] [PATCH v1 28/42] net/txgbe: add device xstats get

2020-09-01 Thread Jiawen Wu
Add device xstats get from reading hardware registers. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_ethdev.c | 383 +++ drivers/net/txgbe/txgbe_ethdev.h | 6 + 2 files changed, 389 insertions(+) diff --git a/drivers/net/txgbe/txgbe_ethdev.c b/drivers/net/tx

[dpdk-dev] [PATCH v1 24/42] net/txgbe: fill transmit function with hardware offload

2020-09-01 Thread Jiawen Wu
Fill transmit function with hardware offload. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_rxtx.c | 662 - drivers/net/txgbe/txgbe_rxtx.h | 45 +++ 2 files changed, 703 insertions(+), 4 deletions(-) diff --git a/drivers/net/txgbe/txgbe_rxtx.c b/drivers/n

[dpdk-dev] [PATCH v1 27/42] net/txgbe: add device stats get

2020-09-01 Thread Jiawen Wu
Add device stats get from reading hardware registers. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_type.h | 153 - drivers/net/txgbe/txgbe_ethdev.c| 245 +++- drivers/net/txgbe/txgbe_ethdev.h| 16 ++ 3 files changed, 411 insertions(+)

[dpdk-dev] [PATCH v1 23/42] net/txgbe: fill simple transmit function

2020-09-01 Thread Jiawen Wu
Fill simple transmit function and define transmit descriptor. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_rxtx.c | 226 - drivers/net/txgbe/txgbe_rxtx.h | 82 2 files changed, 304 insertions(+), 4 deletions(-) diff --git a/drivers/net/txgbe

[dpdk-dev] [PATCH v1 20/42] net/txgbe: add RX and TX stop

2020-09-01 Thread Jiawen Wu
Add receive and transmit units stop for specified queue, release mbufs and free queues. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_type.h | 3 + drivers/net/txgbe/txgbe_ethdev.c| 7 + drivers/net/txgbe/txgbe_ethdev.h| 15 ++ drivers/net/txgbe/txgbe_rxtx.c | 305

[dpdk-dev] [PATCH v1 25/42] net/txgbe: fill receive functions

2020-09-01 Thread Jiawen Wu
Fill receive functions and define receive descriptor. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_type.h | 2 + drivers/net/txgbe/txgbe_ethdev.c| 13 + drivers/net/txgbe/txgbe_ethdev.h| 2 + drivers/net/txgbe/txgbe_ptypes.c| 2 - drivers/net/txgbe/txgbe_rxtx.c

[dpdk-dev] [PATCH v1 22/42] net/txgbe: add packet type

2020-09-01 Thread Jiawen Wu
Add packet type marco definition and convert ptype to ptid. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/meson.build| 1 + drivers/net/txgbe/txgbe_ethdev.h | 1 + drivers/net/txgbe/txgbe_ptypes.c | 676 +++ drivers/net/txgbe/txgbe_ptypes.h | 351

[dpdk-dev] [PATCH v1 21/42] net/txgbe: add RX and TX queues setup

2020-09-01 Thread Jiawen Wu
Add receive and transmit queues setup. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_ethdev.c | 2 + drivers/net/txgbe/txgbe_ethdev.h | 9 + drivers/net/txgbe/txgbe_rxtx.c | 365 +++ drivers/net/txgbe/txgbe_rxtx.h | 44 4 files changed, 420 insert

[dpdk-dev] [PATCH v1 18/42] net/txgbe: add rx and tx init

2020-09-01 Thread Jiawen Wu
Add receive and transmit initialize unit. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_type.h | 3 + drivers/net/txgbe/txgbe_ethdev.c| 3 + drivers/net/txgbe/txgbe_ethdev.h| 28 +++ drivers/net/txgbe/txgbe_rxtx.c | 330 +++- drivers/net/txgb

[dpdk-dev] [PATCH v1 17/42] net/txgbe: support device LED on and off

2020-09-01 Thread Jiawen Wu
Support device LED on and off. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_hw.c | 46 +++ drivers/net/txgbe/base/txgbe_hw.h | 3 ++ drivers/net/txgbe/txgbe_ethdev.c | 23 3 files changed, 72 insertions(+) diff --git a/drivers/net/txgb

[dpdk-dev] [PATCH v1 19/42] net/txgbe: add RX and TX start

2020-09-01 Thread Jiawen Wu
Add receive and transmit units start for specified queue. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_hw.h | 1 + drivers/net/txgbe/txgbe_ethdev.c | 2 + drivers/net/txgbe/txgbe_ethdev.h | 4 + drivers/net/txgbe/txgbe_rxtx.c| 175 +- drivers/

[dpdk-dev] [PATCH v1 15/42] net/txgbe: add multi-speed link setup

2020-09-01 Thread Jiawen Wu
Add multispeed fiber setup link and laser control. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_hw.c | 400 +- drivers/net/txgbe/base/txgbe_hw.h | 11 + 2 files changed, 410 insertions(+), 1 deletion(-) diff --git a/drivers/net/txgbe/base/txgbe_hw.c b/

[dpdk-dev] [PATCH v1 16/42] net/txgbe: add autoc read and write

2020-09-01 Thread Jiawen Wu
Add autoc read and write for kr/kx/kx4/sfi link. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_hw.c | 2 + drivers/net/txgbe/base/txgbe_phy.c | 848 drivers/net/txgbe/base/txgbe_phy.h | 2 + drivers/net/txgbe/base/txgbe_type.h | 21 + 4 files cha

[dpdk-dev] [PATCH v1 14/42] net/txgbe: add link status change

2020-09-01 Thread Jiawen Wu
Add ethdev link interrupt handler, MAC setup link and check link status and get capabilities. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_eeprom.h | 3 + drivers/net/txgbe/base/txgbe_hw.c | 508 +- drivers/net/txgbe/base/txgbe_hw.h | 15 + driver

[dpdk-dev] [PATCH v1 13/42] net/txgbe: add interrupt operation

2020-09-01 Thread Jiawen Wu
Add device interrupt handler and setup misx interrupt. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_type.h | 8 + drivers/net/txgbe/txgbe_ethdev.c| 457 +++- drivers/net/txgbe/txgbe_ethdev.h| 32 ++ drivers/net/txgbe/txgbe_pf.c| 6 + 4 fi

[dpdk-dev] [PATCH v1 11/42] net/txgbe: add PHY reset

2020-09-01 Thread Jiawen Wu
Add phy reset function, support read and write phy registers. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_hw.c | 5 + drivers/net/txgbe/base/txgbe_phy.c | 226 + drivers/net/txgbe/base/txgbe_phy.h | 10 ++ 3 files changed, 241 insertions(+) diff --g

[dpdk-dev] [PATCH v1 12/42] net/txgbe: add device start and stop

2020-09-01 Thread Jiawen Wu
Add device start and stop operations. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_eeprom.h | 1 + drivers/net/txgbe/base/txgbe_hw.c | 197 - drivers/net/txgbe/base/txgbe_hw.h | 3 + drivers/net/txgbe/base/txgbe_type.h | 8 +- drivers/net/txgbe/txgbe_

[dpdk-dev] [PATCH v1 10/42] net/txgbe: add module identify

2020-09-01 Thread Jiawen Wu
Add sfp anf qsfp module identify, i2c start and stop. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_eeprom.h | 1 + drivers/net/txgbe/base/txgbe_hw.c | 4 + drivers/net/txgbe/base/txgbe_phy.c| 590 +- drivers/net/txgbe/base/txgbe_phy.h| 12 +

[dpdk-dev] [PATCH v1 05/42] net/txgbe: add mac type and HW ops dummy

2020-09-01 Thread Jiawen Wu
Add base driver shared code from dummy function. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/meson.build | 1 + drivers/net/txgbe/base/txgbe_hw.c | 90 - drivers/net/txgbe/base/txgbe_hw.h | 3 +- drivers/net/txgbe/base/txgbe_type.h | 3 + drivers/net/t

  1   2   >