[PATCH v3 2/2] vhost: support VIRTIO_F_RING_RESET for vhost-user

2022-09-11 Thread Kangjie Xu
Add VIRTIO_F_RING_RESET, which indicates that the driver can reset a queue individually. The feature is added to virtio-spec 1.2. The relevant information is in https://github.com/oasis-tcs/virtio-spec/issues/124 Signed-off-by: Kangjie Xu Signed-off-by: Xuan Zhuo --- lib/vhost/vhost.h | 8

[PATCH v3 1/2] vhost: destroy device when all vqs are inactive

2022-09-11 Thread Kangjie Xu
We change the behavior of vhost_user_get_vring_base(). Previosly, destroying a virtqueue will cause the whole device to be destroyed. The behavior is not specified in the vhost-user protocol. Thus, we refactor this part. The device will be destroyed only when all virtqueues in the device are going

[PATCH v3 0/2] vhost: support VIRTIO_F_RING_RESET for vhost-user

2022-09-11 Thread Kangjie Xu
Add VIRTIO_F_RING_RESET, which indicates that the driver can reset a virtqueue individually. VIRTIO_F_RING_RESET feature is added to virtio-spec 1.2. The relevant information is in https://github.com/oasis-tcs/virtio-spec/issues/124 https://github.com/oasis-tcs/virtio-spec/issues/139 The

[PATCH v2 11/11] baseband/acc200: add PF configure companion function

2022-09-11 Thread Nic Chautru
From: Nicolas Chautru Add configure function notably to configure the device from the PF within DPDK and bbdev-test (without external dependency). Signed-off-by: Nicolas Chautru --- app/test-bbdev/meson.build | 3 + app/test-bbdev/test_bbdev_perf.c | 76 ++ drivers

[PATCH v2 10/11] baseband/acc200: add device status and vf2pf comms

2022-09-11 Thread Nic Chautru
From: Nicolas Chautru Add support to expose the device status seen from the host through v2pf mailbox communication. Signed-off-by: Nicolas Chautru --- drivers/baseband/acc200/rte_acc200_pmd.c | 61 +++- 1 file changed, 44 insertions(+), 17 deletions(-) diff --git

[PATCH v2 09/11] baseband/acc200: support interrupt

2022-09-11 Thread Nic Chautru
From: Nicolas Chautru Adding support for capability and functions for MSI/MSI-X interrupt and underlying information ring. Signed-off-by: Nicolas Chautru --- drivers/baseband/acc200/rte_acc200_pmd.c | 346 ++- 1 file changed, 344 insertions(+), 2 deletions(-) diff

[PATCH v2 08/11] baseband/acc200: add support for FFT operations

2022-09-11 Thread Nic Chautru
From: Nicolas Chautru Add functions and capability for FFT processing Signed-off-by: Nicolas Chautru --- drivers/baseband/acc200/rte_acc200_pmd.c | 251 ++- 1 file changed, 249 insertions(+), 2 deletions(-) diff --git a/drivers/baseband/acc200/rte_acc200_pmd.c b/d

[PATCH v2 06/11] baseband/acc200: add LDPC processing functions

2022-09-11 Thread Nic Chautru
From: Nicolas Chautru Adding LDPC encode and decode processing functions. Signed-off-by: Nicolas Chautru --- drivers/baseband/acc200/rte_acc200_pmd.c | 1526 +- 1 file changed, 1522 insertions(+), 4 deletions(-) diff --git a/drivers/baseband/acc200/rte_acc200_pmd.c

[PATCH v2 07/11] baseband/acc200: add LTE processing functions

2022-09-11 Thread Nic Chautru
From: Nicolas Chautru Add functions and capability for 4G FEC Signed-off-by: Nicolas Chautru --- drivers/baseband/acc200/rte_acc200_pmd.c | 894 ++- 1 file changed, 874 insertions(+), 20 deletions(-) diff --git a/drivers/baseband/acc200/rte_acc200_pmd.c b/drivers/

[PATCH v2 05/11] baseband/acc200: add queue configuration

2022-09-11 Thread Nic Chautru
From: Nicolas Chautru Adding fuinction to create and configure queues for the device. Signed-off-by: Nicolas Chautru --- drivers/baseband/acc200/rte_acc200_pmd.c | 373 ++- 1 file changed, 372 insertions(+), 1 deletion(-) diff --git a/drivers/baseband/acc200/rte_ac

[PATCH v2 04/11] baseband/acc200: add info get function

2022-09-11 Thread Nic Chautru
From: Nicolas Chautru Add support for info_get to allow to query the device. Null capability exposed. Signed-off-by: Nicolas Chautru --- drivers/baseband/acc200/acc200_pmd.h | 1 + drivers/baseband/acc200/rte_acc200_cfg.h | 27 drivers/baseband/acc200/rte_acc200_pmd.c | 239 +++

[PATCH v2 02/11] baseband/acc200: introduce PMD for ACC200

2022-09-11 Thread Nic Chautru
From: Nicolas Chautru This patch introduce stubs for device driver for the ACC200 integrated VRAN accelerator on SPR-EEC Signed-off-by: Nicolas Chautru --- MAINTAINERS | 3 + doc/guides/bbdevs/acc200.rst | 244 +++ doc/guid

[PATCH v2 03/11] baseband/acc200: add HW register definitions

2022-09-11 Thread Nic Chautru
From: Nicolas Chautru Add registers list and structure to access the device. Signed-off-by: Nicolas Chautru --- drivers/baseband/acc200/acc200_pf_enum.h | 108 drivers/baseband/acc200/acc200_pmd.h | 163 +++ drivers/baseband/acc200/acc200_vf

[PATCH v2 00/11] baseband/acc200

2022-09-11 Thread Nic Chautru
v2: Includes now code refactory to have common structures and code reused with the parallel ACC1XX serie PMD which can be shared moving forward. v1: This is targeting 22.11 and includes the PMD for the new serie integrated accelerator on Intel Xeon SPR-EEC. There is a dependency on that parallel p

[PATCH v3 5/5] examples/l3fwd: use em vector path for event vector

2022-09-11 Thread pbhagavatula
From: Pavan Nikhilesh Use em vector path to process event vector. Signed-off-by: Pavan Nikhilesh --- examples/l3fwd/l3fwd_em.c| 12 +++-- examples/l3fwd/l3fwd_em.h| 29 +-- examples/l3fwd/l3fwd_em_hlm.h| 72 +--- examples/l3fwd/l3

[PATCH v3 3/5] examples/l3fwd: use lpm vector path for event vector

2022-09-11 Thread pbhagavatula
From: Pavan Nikhilesh Use lpm vector path to process event vector. Signed-off-by: Pavan Nikhilesh --- examples/l3fwd/l3fwd_altivec.h | 29 ++ examples/l3fwd/l3fwd_event.h | 71 ++ examples/l3fwd/l3fwd_lpm.c | 38 ++ examples/l3f

[PATCH v3 4/5] examples/l3fwd: fix event vector processing in fib

2022-09-11 Thread pbhagavatula
From: Pavan Nikhilesh Fix stack overflow when event vector size is greater than MAX_BURST_SIZE. Add missing mac swap and rfc1812 stage. Fixes: e8adca1951d4 ("examples/l3fwd: support event vector") Signed-off-by: Pavan Nikhilesh --- examples/l3fwd/l3fwd_fib.c | 123 ++--

[PATCH v3 2/5] examples/l3fwd: split processing and send stages

2022-09-11 Thread pbhagavatula
From: Pavan Nikhilesh Split packet processing from packet send stage, as send stage is not common for poll and event mode. Signed-off-by: Pavan Nikhilesh --- examples/l3fwd/l3fwd_em_hlm.h | 39 +++--- examples/l3fwd/l3fwd_lpm_altivec.h | 25 --- exa

[PATCH v3 1/5] examples/l3fwd: fix port group mask generation

2022-09-11 Thread pbhagavatula
From: Pavan Nikhilesh Fix port group mask generation in altivec, vec_any_eq returns 0 or 1 while port_groupx4 expects comparison mask result. Fixes: 2193b7467f7a ("examples/l3fwd: optimize packet processing on powerpc") Cc: sta...@dpdk.org Signed-off-by: Pavan Nikhilesh --- v3 Changes: - PPC

[PATCH] net/bonding: make bonded device configure method re-entrant

2022-09-11 Thread Ivan Malov
According to the documentation, rte_eth_dev_configure() can be invoked repeatedly while in stopped state. The current implementation in the bonding driver allows for that (technically), but the user sees warnings which say that back-end devices have already been harnessed. Re-factor the code to hav

[PATCH] net/bonding: fix flow flush order on bonded device close

2022-09-11 Thread Ivan Malov
The current code first removes all back-end devices of the bonded device and then invokes flush operation to remove flows in such back-end devices, which makes no sense. Fix that by re-ordering the steps accordingly. Fixes: 49dad9028e2a ("net/bonding: support flow API") Cc: sta...@dpdk.org Signed

[PATCH] net/bonding: fix descriptor limit reporting

2022-09-11 Thread Ivan Malov
Commit 5be3b40fea60 ("net/bonding: fix values of descriptor limits") breaks reporting of "nb_min" and "nb_align" values obtained from back-end devices' descriptor limits. This means that work done by eth_bond_slave_inherit_desc_lim_first() as well as eth_bond_slave_inherit_desc_lim_next() gets dism

RE: [PATCH v1] ethdev: add direction info when creating the transfer table

2022-09-11 Thread Ori Kam
Hi Rongwei, > -Original Message- > From: Rongwei Liu > Sent: Wednesday, 7 September 2022 5:40 > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: [PATCH v1] ethdev: add direction info when creating the transfer > table > > The transfer domain rule is able to match traffic wire/vf > origin a