[dpdk-dev] [RFC PATCH v3 1/3] ethdev: support device reset and recovery events

2020-09-29 Thread Kalesh A P
From: Kalesh AP Adding support for device reset and recovery events in the rte_eth_event framework. FW error and FW reset conditions would be managed internally by PMD without needing application intervention. In such cases, PMD would need reset/recovery events to notify application that PMD is u

[dpdk-dev] [RFC PATCH v3 3/3] app/testpmd: handle device recovery event

2020-09-29 Thread Kalesh A P
From: Kalesh AP Added code to handle device reset and recovery event in testpmd. This is an indication from the PMD that device has reset and recovered error condition. Signed-off-by: Kalesh AP Reviewed-by: Ajit Kumar Khaparde --- app/test-pmd/testpmd.c | 6 +- 1 file changed, 5 insertion

[dpdk-dev] [RFC PATCH v3 2/3] net/bnxt: notify applications about device reset/recovery

2020-09-29 Thread Kalesh A P
From: Kalesh AP When the driver receives RESET_NOTIFY async event from FW or detected an error condition, it should update the application that FW is going to reset. Once the driver recoveres from the reset, update the reset recovery status to application as well. The recovery process is transpa

[dpdk-dev] [RFC PATCH v3 0/3] librte_ethdev: error recovery support

2020-09-29 Thread Kalesh A P
From: Kalesh AP The error recovery solution is a protocol implemented between firmware and bnxt PMD to recover from the fatal errors without a system reboot. There is an alarm thread which constantly monitors the health of the firmware and initiates a recovery when needed. There are two scenario

[dpdk-dev] [RFC PATCH v2 3/3] app/testpmd: handle device recovery event

2020-09-29 Thread Kalesh A P
From: Kalesh AP Added code to handle device reset and recovery event in testpmd. This is an indication from the PMD that device has resetted and recovered error condition. Signed-off-by: Kalesh AP Reviewed-by: Ajit Kumar Khaparde --- app/test-pmd/testpmd.c | 6 +- 1 file changed, 5 insert

[dpdk-dev] [RFC PATCH v2 1/3] ethdev: support device reset and recovery events

2020-09-29 Thread Kalesh A P
From: Kalesh AP Adding support for device reset and recovery events in the rte_eth_event framework. FW error and FW reset conditions would be managed internally by PMD without needing application intervention. In such cases, PMD would need reset/recovery events to notify application that PMD is u

[dpdk-dev] [RFC PATCH v2 2/3] net/bnxt: notify applications about device reset/recovery

2020-09-29 Thread Kalesh A P
From: Kalesh AP When the driver receives RESET_NOTIFY async event from FW or detected an error condition, it should update the application that FW is going to reset. Once the driver recoveres from the reset, update the reset recovery status to application as well. The recovery process is transpa

[dpdk-dev] [RFC PATCH v2 0/3] librte_ethdev: error recovery support

2020-09-29 Thread Kalesh A P
From: Kalesh AP The error recovery solution is a protocol implemented between firmware and bnxt PMD to recover from the fatal errors without a system reboot. There is an alarm thread which constantly monitors the health of the firmware and initiates a recovery when needed. There are two scenario

Re: [dpdk-dev] [PATCH v5 36/41] examples/pipeline: add new example application

2020-09-29 Thread Dumitrescu, Cristian
Hi David, > -Original Message- > From: David Marchand > Sent: Tuesday, September 29, 2020 2:51 PM > To: Dumitrescu, Cristian > Cc: dev ; Thomas Monjalon > Subject: Re: [PATCH v5 36/41] examples/pipeline: add new example > application > > On Wed, Sep 23, 2020 at 8:07 PM Cristian Dumitre

Re: [dpdk-dev] [PATCH v5 38/41] examples/pipeline: add configuration commands

2020-09-29 Thread Dumitrescu, Cristian
> -Original Message- > From: David Marchand > Sent: Tuesday, September 29, 2020 2:52 PM > To: Dumitrescu, Cristian > Cc: dev ; Thomas Monjalon > Subject: Re: [PATCH v5 38/41] examples/pipeline: add configuration > commands > > Caught while diffing with ip_pipeline code. > > On Wed, S

Re: [dpdk-dev] [PATCH v5 00/41] Pipeline alignment with the P4 language

2020-09-29 Thread Dumitrescu, Cristian
> -Original Message- > From: David Marchand > Sent: Tuesday, September 29, 2020 3:09 PM > To: Dumitrescu, Cristian > Cc: dev ; Thomas Monjalon > Subject: Re: [PATCH v5 00/41] Pipeline alignment with the P4 language > > On Wed, Sep 23, 2020 at 8:06 PM Cristian Dumitrescu > wrote: > >

[dpdk-dev] [RFC V2 3/3] app/testpmd: handle device recovery event

2020-09-29 Thread Kalesh A P
From: Kalesh AP Added code to handle device reset and recovery event in testpmd. This is an indication from the PMD that device has resetted and recovered error condition. Signed-off-by: Kalesh AP Reviewed-by: Ajit Kumar Khaparde --- app/test-pmd/testpmd.c | 6 +- 1 file changed, 5 insert

[dpdk-dev] [RFC V2 2/3] net/bnxt: notify applications about device reset/recovery

2020-09-29 Thread Kalesh A P
From: Kalesh AP When the driver receives RESET_NOTIFY async event from FW or detected an error condition, it should update the application that FW is going to reset. Once the driver recoveres from the reset, update the reset recovery status to application as well. The recovery process is transpa

[dpdk-dev] [RFC V2 1/3] ethdev: support device reset and recovery events

2020-09-29 Thread Kalesh A P
From: Kalesh AP Adding support for device reset and recovery events in the rte_eth_event framework. FW error and FW reset conditions would be managed internally by PMD without needing application intervention. In such cases, PMD would need reset/recovery events to notify application that PMD is u

[dpdk-dev] [RFC V2 0/3] librte_ethdev: error recovery support

2020-09-29 Thread Kalesh A P
From: Kalesh AP The error recovery solution is a protocol implemented between firmware and bnxt PMD to recover from the fatal errors without a system reboot. There is an alarm thread which constantly monitors the health of the firmware and initiates a recovery when needed. There are two scenario

[dpdk-dev] [PATCH] net/mlx5: fix incorrect meter table define

2020-09-29 Thread Suanming Mou
As metering and metadata features were developed at the same time. The metering and metadata tables are defined conflicted. This cauese the meter suffix flow jump to the same metadata table and cause flow deadloop. Adjust the metering table define to fix that issue. Fixes: 46a5e6bc6a85 ("net/mlx

[dpdk-dev] [PATCH v6 41/42] examples/pipeline: add VXLAN encapsulation example

2020-09-29 Thread Cristian Dumitrescu
Add VXLAN encapsulation example to the SWX pipeline application. The VXLAN tunnels can be generated with the vxlan_table.py script. Example command line: ./build/pipeline -l0-1 -- -s ./examples/vxlan.cli Signed-off-by: Cristian Dumitrescu --- examples/pipeline/examples/vxlan.cli | 27

[dpdk-dev] [PATCH v6 42/42] doc: add new SWX pipeline type to release notes

2020-09-29 Thread Cristian Dumitrescu
Add the new SWX pipeline type to the release notes. Signed-off-by: Cristian Dumitrescu --- doc/guides/rel_notes/release_20_11.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst index 4eb3224a7..15e

[dpdk-dev] [PATCH v6 40/42] examples/pipeline: add l2fwd with MAC swap example

2020-09-29 Thread Cristian Dumitrescu
Add L2 Forwarding example with MAC destination and source address swap to the SWX pipeline application. Example command line: ./build/pipeline -l0-1 -- -s ./examples/l2fwd_macswp.cli Signed-off-by: Cristian Dumitrescu --- examples/pipeline/examples/l2fwd_macswp.cli | 25 examples/pipe

[dpdk-dev] [PATCH v6 38/42] examples/pipeline: add configuration commands

2020-09-29 Thread Cristian Dumitrescu
Add CLI commands for application configuration and query. Signed-off-by: Cristian Dumitrescu --- examples/pipeline/Makefile|1 + examples/pipeline/cli.c | 1400 + examples/pipeline/cli.h | 19 + examples/pipeline/main.c | 10 +- exampl

[dpdk-dev] [PATCH v6 39/42] examples/pipeline: add l2fwd example

2020-09-29 Thread Cristian Dumitrescu
Add L2 Forwarding example to the SWX pipeline application. Example command line: ./build/pipeline -l0-1 -- -s ./examples/l2fwd.cli Signed-off-by: Cristian Dumitrescu --- examples/pipeline/examples/l2fwd.cli | 25 ++ examples/pipeline/examples/l2fwd.spec | 42 + examples/pi

[dpdk-dev] [PATCH v6 35/42] table: add exact match SWX table

2020-09-29 Thread Cristian Dumitrescu
Add the exact match table type for the SWX pipeline. Used under the hood by the SWX pipeline table instruction. Signed-off-by: Cristian Dumitrescu --- lib/librte_table/meson.build | 6 +- lib/librte_table/rte_swx_table_em.c| 851 + lib/librte_table/rte_swx

[dpdk-dev] [PATCH v6 36/42] examples/pipeline: add new example application

2020-09-29 Thread Cristian Dumitrescu
Add new example application to showcase the API of the newly introduced SWX pipeline type. Signed-off-by: Cristian Dumitrescu --- MAINTAINERS | 1 + examples/meson.build | 1 + examples/pipeline/Makefile| 50 examples/pipeline/main.c | 50 exam

[dpdk-dev] [PATCH v6 37/42] examples/pipeline: add message passing mechanism

2020-09-29 Thread Cristian Dumitrescu
Add network-based connectivity mechanism for the application to allow for the exchange of configuration messages through the network as opposed to local CLI only. Signed-off-by: Cristian Dumitrescu --- examples/pipeline/Makefile| 1 + examples/pipeline/conn.c | 331 +++

[dpdk-dev] [PATCH v6 34/42] port: add source and sink SWX ports

2020-09-29 Thread Cristian Dumitrescu
Add the PCAP file-based source (input) and sink (output) port types for the SWX pipeline. The sink port is typically used to implement the packet drop pipeline action. Used under the hood by the pipeline rx and tx instructions. Signed-off-by: Cristian Dumitrescu --- lib/librte_port/meson.build

[dpdk-dev] [PATCH v6 33/42] port: add ethernet device SWX port

2020-09-29 Thread Cristian Dumitrescu
Add the Ethernet device input/output port type for the SWX pipeline. Used under the hood by the pipeline rx and tx instructions. Signed-off-by: Cristian Dumitrescu --- lib/librte_port/meson.build | 6 +- lib/librte_port/rte_port_version.map | 3 +- lib/librte_port/rte_swx_port_eth

[dpdk-dev] [PATCH v6 32/42] pipeline: add SWX pipeline specification file

2020-09-29 Thread Cristian Dumitrescu
Add support for building the SWX pipeline based on specification file with syntax aligned to the P4 language. The specification file may be generated by the P4C compiler in the future. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/meson.build |1 + lib/librte_pipeli

[dpdk-dev] [PATCH v6 30/42] pipeline: add SWX pipeline flush

2020-09-29 Thread Cristian Dumitrescu
Flush the packets currently buffered by the SWX pipeline output ports. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_pipeline_version.map | 1 + lib/librte_pipeline/rte_swx_pipeline.c | 13 + lib/librte_pipeline/rte_swx_pipeline.h | 12 3 fi

[dpdk-dev] [PATCH v6 31/42] pipeline: add SWX table update high level API

2020-09-29 Thread Cristian Dumitrescu
High-level transaction-oriented API for SWX pipeline table updates. It supports multi-table atomic updates, i.e. multiple tables can be updated in a single step with only the before and after table set visible to the packets. Uses the lower-level table update mechanisms. Signed-off-by: Cristian Du

[dpdk-dev] [PATCH v6 29/42] pipeline: add SWX pipeline query API

2020-09-29 Thread Cristian Dumitrescu
Query API to be used by the control plane to detect the configuration and state of the SWX pipeline and its internal objects. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_pipeline_version.map | 10 + lib/librte_pipeline/rte_swx_ctl.h| 313 +++ lib/l

[dpdk-dev] [PATCH v6 27/42] pipeline: add SWX instruction verifier

2020-09-29 Thread Cristian Dumitrescu
Instruction verifier. Executes at instruction translation time during SWX pipeline build, i.e. at initialization instead of run-time. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline.c | 51 ++ 1 file changed, 51 insertions(+) diff --git a/lib/

[dpdk-dev] [PATCH v6 28/42] pipeline: add SWX instruction optimizer

2020-09-29 Thread Cristian Dumitrescu
Instruction optimizer. Detects frequent patterns and replaces them with some more powerful vector-like pipeline instructions without any user effort. Executes at instruction translation, not at run-time. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline.c | 226

[dpdk-dev] [PATCH v6 25/42] pipeline: introduce SWX jump and return instructions

2020-09-29 Thread Cristian Dumitrescu
The jump instructions are either unconditional (jmp) or conditional on positive/negative tests such as header validity (jmpv/jmpnv), table lookup hit/miss (jmph/jmpnh), executed action (jmpa/jmpna), equality (jmpeq/jmpneq), comparison result (jmplt/jmpgt). The return instruction resumes the pipelin

[dpdk-dev] [PATCH v6 24/42] pipeline: introduce SWX extern instruction

2020-09-29 Thread Cristian Dumitrescu
The extern instruction calls one of the member functions of a given extern object or it calls the given extern function. The function arguments must be written in advance to the mailbox. The results are available in the same place after execution. Signed-off-by: Cristian Dumitrescu --- lib/librt

[dpdk-dev] [PATCH v6 23/42] pipeline: introduce SWX table instruction

2020-09-29 Thread Cristian Dumitrescu
The table instruction looks up the input key into the table and then it triggers the execution of the action found in the table entry. On lookup miss, the default table action is executed. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline.c | 100 +++

[dpdk-dev] [PATCH v6 26/42] pipeline: add SWX instruction description

2020-09-29 Thread Cristian Dumitrescu
Added SWX instruction set reference table. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline.h | 109 + 1 file changed, 109 insertions(+) diff --git a/lib/librte_pipeline/rte_swx_pipeline.h b/lib/librte_pipeline/rte_swx_pipeline.h index fb83a88

[dpdk-dev] [PATCH v6 21/42] pipeline: introduce SWX SHL instruction

2020-09-29 Thread Cristian Dumitrescu
The shl (i.e. shift left) instruction source can be header field (H), meta-data field (M), extern object (E) or function (F) mailbox field, table entry action data field (T) or immediate value (I). The destination is HMEF. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeli

[dpdk-dev] [PATCH v6 20/42] pipeline: introduce SWX XOR instruction

2020-09-29 Thread Cristian Dumitrescu
The xor (i.e. bitwise exclusive or) instruction source can be header field (H), meta-data field (M), extern object (E) or function (F) mailbox field, table entry action data field (T) or immediate value (I). The destination is HMEF. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_

[dpdk-dev] [PATCH v6 22/42] pipeline: introduce SWX SHR instruction

2020-09-29 Thread Cristian Dumitrescu
The shr (i.e. shift right) instruction source can be header field (H), meta-data field (M), extern object (E) or function (F) mailbox field, table entry action data field (T) or immediate value (I). The destination is HMEF. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipel

[dpdk-dev] [PATCH v6 18/42] pipeline: introduce SWX and instruction

2020-09-29 Thread Cristian Dumitrescu
The and (i.e. bitwise and) instruction source can be header field (H), meta-data field (M), extern object (E) or function (F) mailbox field, table entry action data field (T) or immediate value (I). The destination is HMEF. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipel

[dpdk-dev] [PATCH v6 19/42] pipeline: introduce SWX or instruction

2020-09-29 Thread Cristian Dumitrescu
The or (i.e. bitwise or) instruction source can be header field (H), meta-data field (M), extern object (E) or function (F) mailbox field, table entry action data field (T) or immediate value (I). The destination is HMEF. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipelin

[dpdk-dev] [PATCH v6 15/42] pipeline: introduce SWX subtract instruction

2020-09-29 Thread Cristian Dumitrescu
The sub (i.e. subtract) instruction source can be header field (H), meta-data field (M), extern object (E) or function (F) mailbox field, table entry action data field (T) or immediate value (I). The destination is HMEF. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline

[dpdk-dev] [PATCH v6 17/42] pipeline: introduce SWX cksub instruction

2020-09-29 Thread Cristian Dumitrescu
The cksub (i.e. checksum subtract) instruction is used to update the 1's complement sum commonly used by protocols such as IPv4, TCP or UDP. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline.c | 116 + 1 file changed, 116 insertions(+) diff --gi

[dpdk-dev] [PATCH v6 16/42] pipeline: introduce SWX ckadd instruction

2020-09-29 Thread Cristian Dumitrescu
The ckadd (i.e. checksum add) instruction is used to either compute, verify or update the 1's complement sum commonly used by protocols such as IPv4, TCP or UDP. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline.c | 230 + 1 file changed, 230 ins

[dpdk-dev] [PATCH v6 12/42] pipeline: add SWX move instruction

2020-09-29 Thread Cristian Dumitrescu
The mov (i.e. move) instruction source can be header field (H), meta-data field (M), extern object (E) or function (F) mailbox field, table entry action data field (T) or immediate value (I). The destination is HMEF. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline.c |

[dpdk-dev] [PATCH v6 13/42] pipeline: add SWX DMA instruction

2020-09-29 Thread Cristian Dumitrescu
The DMA instruction handles the bulk read transfer of one header from the table entry action data. Typically used to generate headers, i.e. headers that are not extracted from the input packet. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline.c | 207 ++

[dpdk-dev] [PATCH v6 14/42] pipeline: introduce SWX add instruction

2020-09-29 Thread Cristian Dumitrescu
The add instruction source can be header field (H), meta-data field (M), extern object (E) or function (F) mailbox field, table entry action data field (T) or immediate value (I). The destination is HMEF. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline.c | 302 +++

[dpdk-dev] [PATCH v6 11/42] pipeline: add header validate and invalidate SWX instructions

2020-09-29 Thread Cristian Dumitrescu
Add instructions to flag a header as valid or invalid. This flag can be tested by the jmpv (jump if header valid) and jmpnv (jump if header not valid) instructions. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline.c | 108 + 1 file changed, 108

[dpdk-dev] [PATCH v6 10/42] pipeline: add SWX Tx and emit instructions

2020-09-29 Thread Cristian Dumitrescu
Add header emit and packet transmission instructions. Emit adds to the output packet a header that is either generated (e.g. read from table entry by action) or extracted from the input packet. Tx ends the pipeline processing; discard is implemented by tx to special port. Signed-off-by: Cristian D

[dpdk-dev] [PATCH v6 09/42] pipeline: add SWX Rx and extract instructions

2020-09-29 Thread Cristian Dumitrescu
Add packet reception and header extraction instructions. The Rx must be the first pipeline instruction. Each extracted header is logically removed from the packet, then it can be read/written by instructions, emitted into the outgoing packet or discarded. Signed-off-by: Cristian Dumitrescu --- l

[dpdk-dev] [PATCH v6 08/42] pipeline: add SWX pipeline instructions

2020-09-29 Thread Cristian Dumitrescu
The SWX pipeline instructions represent the main program that defines the life of the packet. As packets go through tables that trigger action subroutines, the headers and meta-data get transformed along the way. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_pipeline_version.map

[dpdk-dev] [PATCH v6 07/42] pipeline: add SWX pipeline tables

2020-09-29 Thread Cristian Dumitrescu
Add tables to the SWX pipeline. The match fields are flexibly selected from the headers and meta-data. The set of table actions is flexibly selected for each table from the set of pipeline actions. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/meson.build | 3 +- lib/

[dpdk-dev] [PATCH v6 05/42] pipeline: add SWX extern objects and funcs

2020-09-29 Thread Cristian Dumitrescu
Add extern objects and functions to plug into the SWX pipeline any functionality that cannot be efficiently implemented with existing instructions, e.g. special checksum/ECC, crypto, meters, stats arrays, heuristics, etc. In/out arguments are passed through mailbox with format defined by struct. S

[dpdk-dev] [PATCH v6 06/42] pipeline: add SWX pipeline action

2020-09-29 Thread Cristian Dumitrescu
Add SWX actions that are dynamically-defined through instructions as opposed to pre-defined. The actions are subroutines of the pipeline program that triggered by table lookup. The input arguments are the action data from the table entry (format defined by struct), the headers and meta-data are in/

[dpdk-dev] [PATCH v6 04/42] pipeline: add SWX headers and meta-data

2020-09-29 Thread Cristian Dumitrescu
Add support for dynamically-defined packet headers and meta-data to the SWX pipeline. The header and meta-data format are defined by the struct type they instantiate. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_pipeline_version.map | 3 + lib/librte_pipeline/rte_swx_pipeline

[dpdk-dev] [PATCH v6 03/42] pipeline: add SWX pipeline output port

2020-09-29 Thread Cristian Dumitrescu
Add output ports to the newly introduced SWX pipeline type. Each port instantiates a port type that defines the port operations, e.g. ethdev port, PCAP port, etc. The TX interface is single packet, with packet batching internally for performance. Signed-off-by: Cristian Dumitrescu --- lib/librte

[dpdk-dev] [PATCH v6 01/42] pipeline: add new SWX pipeline type

2020-09-29 Thread Cristian Dumitrescu
Add new improved Software Switch (SWX) pipeline type that supports dynamically-defined packet headers, meta-data, actions and pipelines. Actions and pipelines are defined through instructions. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/meson.build | 10 ++- lib/librt

[dpdk-dev] [PATCH v6 02/42] pipeline: add SWX pipeline input port

2020-09-29 Thread Cristian Dumitrescu
Add input ports to the newly introduced SWX pipeline type. Each port instantiates a port type that defines the port operations, e.g. ethdev port, PCAP port, etc. The RX interface is single packet, with packet batching internally for performance. Signed-off-by: Cristian Dumitrescu --- lib/librte_

[dpdk-dev] [PATCH v6 00/42] Pipeline alignment with the P4 language

2020-09-29 Thread Cristian Dumitrescu
This patch set introduces a new pipeline type that combines the DPDK performance with the flexibility of the P4-16 language[1]. The new API can be used either by itself to code a complete software switch (SWX) or data plane app, or in combination with the open-source P4 compiler P4C [2], potentiall

Re: [dpdk-dev] [PATCH v3 8/8] net/virtio: introduce Vhost-vDPA backend

2020-09-29 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Wednesday, September 30, 2020 12:14 AM > To: dev@dpdk.org; Xia, Chenbo ; Fu, Patrick > ; amore...@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH v3 8/8] net/virtio: introduce Vhost-vDPA backend > > vhost-vDPA is a new virtio backen

Re: [dpdk-dev] [PATCH v3 7/8] net/virtio: split virtio-user start

2020-09-29 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Wednesday, September 30, 2020 12:14 AM > To: dev@dpdk.org; Xia, Chenbo ; Fu, Patrick > ; amore...@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH v3 7/8] net/virtio: split virtio-user start > > Move feature bit settings in device st

Re: [dpdk-dev] [PATCH v3 6/8] net/virtio: adapt Virtio-user status size

2020-09-29 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Wednesday, September 30, 2020 12:14 AM > To: dev@dpdk.org; Xia, Chenbo ; Fu, Patrick > ; amore...@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH v3 6/8] net/virtio: adapt Virtio-user status size > > Set proper payload size for set/

Re: [dpdk-dev] [PATCH v3 5/8] net/virtio: check protocol feature in user backend

2020-09-29 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Wednesday, September 30, 2020 12:14 AM > To: dev@dpdk.org; Xia, Chenbo ; Fu, Patrick > ; amore...@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH v3 5/8] net/virtio: check protocol feature in user backend > > When sending set status

Re: [dpdk-dev] [PATCH v3 3/8] net/virtio: move backend type selection to ethdev

2020-09-29 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Wednesday, September 30, 2020 12:14 AM > To: dev@dpdk.org; Xia, Chenbo ; Fu, Patrick > ; amore...@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH v3 3/8] net/virtio: move backend type selection to ethdev > > From: Adrian Moreno >

Re: [dpdk-dev] [PATCH v3 4/8] net/virtio: introduce Vhost-vDPA backend type

2020-09-29 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Wednesday, September 30, 2020 12:14 AM > To: dev@dpdk.org; Xia, Chenbo ; Fu, Patrick > ; amore...@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH v3 4/8] net/virtio: introduce Vhost-vDPA backend type > > Backend type is determined b

[dpdk-dev] [PATCH v1] net/iavf: fix flow flush after PF reset

2020-09-29 Thread Jeff Guo
When VF begin reset after PF reset, VF will be uninitialized at first and then be initialized, during the time any invalid cmd such as flow flush should not be sent to PF until the uninitialization is finished. Fixes: 1eab95fe2e36 ("net/iavf: fix command after PF reset") Signed-off-by: Jeff Guo -

Re: [dpdk-dev] [PATCH v3 2/8] net/virtio: introduce DMA ops

2020-09-29 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Wednesday, September 30, 2020 12:14 AM > To: dev@dpdk.org; Xia, Chenbo ; Fu, Patrick > ; amore...@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH v3 2/8] net/virtio: introduce DMA ops > > Add DMA map/unmap callbacks to the virtio_us

Re: [dpdk-dev] [PATCH v3 1/8] bus/vdev: add DMA mapping ops

2020-09-29 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Wednesday, September 30, 2020 12:14 AM > To: dev@dpdk.org; Xia, Chenbo ; Fu, Patrick > ; amore...@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH v3 1/8] bus/vdev: add DMA mapping ops > > Add DMA map/unmap operation callbacks to the

Re: [dpdk-dev] [PATCH] net/bonding: fix a possible unbalance packet receiving

2020-09-29 Thread Li RongQing
ping thanks -Li

Re: [dpdk-dev] [PATCH] examples/vhost_blk: fix unchecked return value

2020-09-29 Thread Xia, Chenbo
> -Original Message- > From: wangyunjian > Sent: Friday, September 25, 2020 7:22 PM > To: dev@dpdk.org > Cc: maxime.coque...@redhat.com; Xia, Chenbo ; Wang, > Zhihong ; jerry.lili...@huawei.com; > xudin...@huawei.com; Yunjian Wang ; > sta...@dpdk.org > Subject: [dpdk-dev] [PATCH] examples/

Re: [dpdk-dev] [PATCH v3 0/6] enhancement and fixes for nxp dpaax platform

2020-09-29 Thread Nipun Gupta
Series Acked-by: Nipun Gupta > -Original Message- > From: dev On Behalf Of Sachin Saxena (OSS) > Sent: Thursday, September 24, 2020 9:32 AM > To: dev@dpdk.org; ferruh.yi...@intel.com > Subject: [dpdk-dev] [PATCH v3 0/6] enhancement and fixes for nxp dpaax > platform > > From: Sachin Sax

[dpdk-dev] [PATCH v3 3/3] doc: fix variable size of ethdev port id

2020-09-29 Thread Chenbo Xia
The ethdev port id should be 16 bits now. This patch changes the variable size of port id in docs from 8 bits to 16 bits. Fixes: fdec9301f52d ("doc: add flow classify guides") Fixes: 4a3ef59a10c8 ("examples/flow_filtering: add simple demo of flow API") Cc: sta...@dpdk.org Signed-off-by: Chenbo Xi

[dpdk-dev] [PATCH v3 2/3] app: fix variable size of ethdev port id

2020-09-29 Thread Chenbo Xia
The ethdev port id should be 16 bits now. This patch changes the variable size of port id in applications from 8 bits to 16 bits. Fixes: e977e4199a8d ("app/testpmd: add commands to load/unload BPF filters") Fixes: 46cf97e4bbfa ("eventdev: add test for eth Tx adapter") Cc: sta...@dpdk.org Signed-o

[dpdk-dev] [PATCH v3 1/3] net: fix variable size of ethdev port id

2020-09-29 Thread Chenbo Xia
The ethdev port id should be 16 bits now. This patch changes the variable size of port id in some net drivers from 8 bits to 16 bits. Fixes: 09b23f8b9df6 ("net/bnxt: fix port stop process and cleanup resources") Fixes: 769de16872ab ("net/bnxt: fix port default rule create/destroy") Fixes: 50370662

[dpdk-dev] [PATCH] net/enic: share flow actions with the same signature

2020-09-29 Thread John Daley
Flow actions are a limited resource on the Cisco VIC, but they can be shared between flows if they are exactly the same. Use a hash table and a reference count in the PMD to enable sharing actions with the same signature between flows. Signed-off-by: John Daley Reviewed-by: Hyong Youb Kim --- d

[dpdk-dev] [PATCH v3 2/4] example/vhost: add support for vhost async data path

2020-09-29 Thread Cheng Jiang
This patch is to implement vhost DMA operation callbacks for CBDMA PMD and add vhost async data-path in vhost sample. With providing callback implementation for CBDMA, vswitch can leverage IOAT to accelerate vhost async data-path. Signed-off-by: Cheng Jiang --- examples/vhost/ioat.c | 93 +++

[dpdk-dev] [PATCH v3 3/4] doc: update vhost sample doc for vhost async data path

2020-09-29 Thread Cheng Jiang
Add vhost async driver arguments information for vhost async data path in vhost sample application. Signed-off-by: Cheng Jiang --- doc/guides/sample_app_ug/vhost.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/doc/guides/sample_app_ug/vhost.rst b/doc/guides/sample_app_ug/vh

[dpdk-dev] [PATCH v3 4/4] doc: update release notes for vhost sample

2020-09-29 Thread Cheng Jiang
Add release notes for vhost async data path support in vhost sample. Signed-off-by: Cheng Jiang --- doc/guides/rel_notes/release_20_11.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst index 92431cd52..6

[dpdk-dev] [PATCH v3 1/4] example/vhost: add async vhost args parsing function

2020-09-29 Thread Cheng Jiang
This patch is to add async vhost driver arguments parsing function for CBDMA channel, DMA initiation function and args description. The meson build file is changed to fix dependency problem. With these arguments vhost device can be set to use CBDMA or CPU for enqueue operation and bind vhost device

[dpdk-dev] [PATCH v3 0/4] add async data path in vhost sample

2020-09-29 Thread Cheng Jiang
This patch set makes vhost-vswitch be able to use vhost async APIs for enqueue operations. Demonstrated how the application leverage IOAT DMA channel with vhost async APIs. We introduce two parameters to enable DMA acceleration for Tx operations of queues: -dma_type This parameter is used to speci

Re: [dpdk-dev] [PATCH] vhost: return ready when at least 1 vring is configured

2020-09-29 Thread Xia, Chenbo
Hi Fan & Maxime, I am thinking that should we move set_features outside of new_device callback for crypto device? I see that net and blk devices both set features between register and start, and personally I think this makes sense that device features are set before device start and ready. How do

Re: [dpdk-dev] [PATCH V15 1/3] ethdev: introduce FEC API

2020-09-29 Thread Min Hu (Connor)
Hi, all, Are there any suggestions for this set of patches? I wish this patch can be merged into V20.11,and this is urgent. I only have one day to handle the patches, because from 10/1 to 10/8 we will be on holiday. Please give reply to me, thanks. 在 2020/9/29 16:44

Re: [dpdk-dev] [PATCH v4 3/5] net/ice: fix max mtu size packets with vlan tag cannot be received by default

2020-09-29 Thread Zhang, Qi Z
> -Original Message- > From: Yang, SteveX > Sent: Wednesday, September 30, 2020 9:32 AM > To: Zhang, Qi Z ; Ananyev, Konstantin > ; dev@dpdk.org > Cc: Zhao1, Wei ; Guo, Jia ; Yang, > Qiming ; Wu, Jingjing ; Xing, > Beilei > Subject: RE: [PATCH v4 3/5] net/ice: fix max mtu size packets

Re: [dpdk-dev] [PATCH v6 0/2] update CPU flags for arm64 platform

2020-09-29 Thread Ruifeng Wang
> -Original Message- > From: Wei Hu (Xavier) > Sent: Wednesday, August 19, 2020 6:57 PM > To: dev@dpdk.org > Cc: nd ; Honnappa Nagarahalli > ; Ruifeng Wang > ; jerinjac...@gmail.com; > xavier.hu...@huawei.com > Subject: [PATCH v6 0/2] update CPU flags for arm64 platform > > This series

Re: [dpdk-dev] [PATCH v9 04/10] baseband/acc100: add queue configuration

2020-09-29 Thread Chautru, Nicolas
Hi Tom, > From: Tom Rix > On 9/28/20 5:29 PM, Nicolas Chautru wrote: > > Adding function to create and configure queues for the device. Still > > no capability. > > > > Signed-off-by: Nicolas Chautru > > Reviewed-by: Rosen Xu > > Acked-by: Liu Tianjiao > > --- > > drivers/baseband/acc100/rte

[dpdk-dev] [PATCH 3/3] doc: fix vector mode info for bnxt

2020-09-29 Thread Ajit Khaparde
Vector mode is disabled when jumbo frames are enabled. This usage guide was reporting it incorrectly. Fixes: 1adaf0e0f2ee ("doc: update bnxt guide") Cc:sta...@dpdk.org Signed-off-by: Ajit Khaparde --- doc/guides/nics/bnxt.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/guides/nics/bn

[dpdk-dev] [PATCH 0/3] patchset for bnxt PMD

2020-09-29 Thread Ajit Khaparde
Patches for bnxt PMD to add support for RSS level selection, update HWRM API. Ajit Khaparde (3): net/bnxt: add support for RSS hash selection net/bnxt: update HWRM structures doc: fix vector mode info for bnxt doc/guides/nics/bnxt.rst | 1 - doc/guides/rel_notes/release_2

[dpdk-dev] [PATCH 1/3] net/bnxt: add support for RSS hash selection

2020-09-29 Thread Ajit Khaparde
Add support to select RSS hash based on innermost or outermost headers. If an application is started without any specific settings the default mode configured by FW or HW shall be used. Signed-off-by: Ajit Khaparde --- doc/guides/rel_notes/release_20_11.rst | 1 + drivers/net/bnxt/bnxt.h

Re: [dpdk-dev] [PATCH v2] net/tap: release port upon close

2020-09-29 Thread wangyunjian
> -Original Message- > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Wednesday, September 30, 2020 12:56 AM > To: wangyunjian ; dev@dpdk.org > Cc: keith.wi...@intel.com; tho...@monjalon.net; Lilijun (Jerry) > ; xudingke > Subject: Re: [dpdk-dev] [PATCH v2] net/tap: release por

Re: [dpdk-dev] [PATCH v4 3/5] net/ice: fix max mtu size packets with vlan tag cannot be received by default

2020-09-29 Thread Zhang, Qi Z
> -Original Message- > From: Ananyev, Konstantin > Sent: Wednesday, September 30, 2020 7:02 AM > To: Zhang, Qi Z ; Yang, SteveX > ; dev@dpdk.org > Cc: Zhao1, Wei ; Guo, Jia ; Yang, > Qiming ; Wu, Jingjing ; Xing, > Beilei > Subject: RE: [PATCH v4 3/5] net/ice: fix max mtu size packets

Re: [dpdk-dev] [PATCH v9 03/10] baseband/acc100: add info get function

2020-09-29 Thread Chautru, Nicolas
Hi Tom, > From: Tom Rix > On 9/28/20 5:29 PM, Nicolas Chautru wrote: > > Add in the "info_get" function to the driver, to allow us to query the > > device. > > No processing capability are available yet. > > Linking bbdev-test to support the PMD with null capability. > > > > Signed-off-by: Nicol

Re: [dpdk-dev] [PATCH v9 02/10] baseband/acc100: add register definition file

2020-09-29 Thread Chautru, Nicolas
Hi Tom, > From: Tom Rix > On 9/28/20 5:29 PM, Nicolas Chautru wrote: > > Add in the list of registers for the device and related > > HW specs definitions. > > > > Signed-off-by: Nicolas Chautru > > Reviewed-by: Rosen Xu > > Acked-by: Liu Tianjiao > > --- > > drivers/baseband/acc100/acc100_pf

Re: [dpdk-dev] [PATCH v9 01/10] drivers/baseband: add PMD for ACC100

2020-09-29 Thread Chautru, Nicolas
Hi Tom, > -Original Message- > From: Tom Rix > Sent: Tuesday, September 29, 2020 12:54 PM > To: Chautru, Nicolas ; dev@dpdk.org; > akhil.go...@nxp.com > Cc: Richardson, Bruce ; Xu, Rosen > ; dave.bur...@accelercomm.com; > aidan.godd...@accelercomm.com; Yigit, Ferruh ; > Liu, Tianjiao >

Re: [dpdk-dev] [PATCH v4 3/5] net/ice: fix max mtu size packets with vlan tag cannot be received by default

2020-09-29 Thread Ananyev, Konstantin
> > > -Original Message- > > From: Yang, SteveX > > Sent: Monday, September 28, 2020 2:56 PM > > To: dev@dpdk.org > > Cc: Zhao1, Wei ; Guo, Jia ; Yang, > > Qiming ; Zhang, Qi Z ; Wu, > > Jingjing ; Xing, Beilei ; > > Ananyev, Konstantin ; Yang, SteveX > > > > Subject: [PATCH v4 3/5] net/

Re: [dpdk-dev] [PATCH v9 04/10] baseband/acc100: add queue configuration

2020-09-29 Thread Tom Rix
On 9/28/20 5:29 PM, Nicolas Chautru wrote: > Adding function to create and configure queues for > the device. Still no capability. > > Signed-off-by: Nicolas Chautru > Reviewed-by: Rosen Xu > Acked-by: Liu Tianjiao > --- > drivers/baseband/acc100/rte_acc100_pmd.c | 420 >

Re: [dpdk-dev] [PATCH v4 6/9] example/ip_pipeline: add dynamic config of subport

2020-09-29 Thread Dumitrescu, Cristian
> -Original Message- > From: Dharmappa, Savinay > Sent: Thursday, September 17, 2020 9:43 AM > To: Singh, Jasvinder ; Dumitrescu, Cristian > ; dev@dpdk.org > Cc: Dharmappa, Savinay > Subject: [PATCH v4 6/9] example/ip_pipeline: add dynamic config of subport > > Modify the ip_pipeline

Re: [dpdk-dev] [PATCH v4 3/9] sched: add subport profile add and config api

2020-09-29 Thread Dumitrescu, Cristian
Hi Savinay, Trying to summarize the main points of what we discussed and agreed last week for the benefit of all ... > -Original Message- > From: Dharmappa, Savinay > Sent: Thursday, September 17, 2020 9:43 AM > To: Singh, Jasvinder ; Dumitrescu, Cristian > ; dev@dpdk.org > Cc: Dharmap

Re: [dpdk-dev] [PATCH v9 03/10] baseband/acc100: add info get function

2020-09-29 Thread Tom Rix
On 9/28/20 5:29 PM, Nicolas Chautru wrote: > Add in the "info_get" function to the driver, to allow us to query the > device. > No processing capability are available yet. > Linking bbdev-test to support the PMD with null capability. > > Signed-off-by: Nicolas Chautru > Acked-by: Liu Tianjiao >

Re: [dpdk-dev] [PATCH v9 02/10] baseband/acc100: add register definition file

2020-09-29 Thread Tom Rix
On 9/28/20 5:29 PM, Nicolas Chautru wrote: > Add in the list of registers for the device and related > HW specs definitions. > > Signed-off-by: Nicolas Chautru > Reviewed-by: Rosen Xu > Acked-by: Liu Tianjiao > --- > drivers/baseband/acc100/acc100_pf_enum.h | 1068 > +

Re: [dpdk-dev] [PATCH] net: check that seg is valid before dereference

2020-09-29 Thread Chas Williams
On 9/28/20 11:01 PM, wangyunjian wrote: >> -Original Message- >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Chas Williams >> Sent: Monday, September 28, 2020 11:32 PM >> To: dev@dpdk.org >> Cc: olivier.m...@6wind.com; Chas Williams <3ch...@gmail.com> >> Subject: [dpdk-dev] [PATCH]

  1   2   3   >