RE: [PATCH] net/cpfl: get running host ID

2024-05-20 Thread Wani, Shaiq
New version uploaded, please discard.

RE: [PATCH v6 1/9] eal: generic 64 bit counter

2024-05-20 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Monday, 20 May 2024 00.49 > > On Sun, 19 May 2024 19:10:30 +0200 > Morten Brørup wrote: > > > Absolutely; whenever possible, local counters should be maintained > inside the loop, and added to the public counters at the end of

[DPDK/other Bug 1445] [dpdk-24.07] dpdk-test-dma-perf hang on Ubuntu24.04

2024-05-20 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1445 Bug ID: 1445 Summary: [dpdk-24.07] dpdk-test-dma-perf hang on Ubuntu24.04 Product: DPDK Version: 24.07 Hardware: All OS: Linux Status: UNCONFIRMED Severity: norma

Re: [RFC PATCH] eal/riscv: add support for zawrs extension

2024-05-20 Thread Daniel Gregory
On Sun, May 12, 2024 at 09:10:49AM +0200, Stanisław Kardach wrote: > On Thu, May 2, 2024 at 4:44 PM Daniel Gregory > wrote: > > diff --git a/config/riscv/meson.build b/config/riscv/meson.build > > index 07d7d9da23..4cfdc42ecb 100644 > > --- a/config/riscv/meson.build > > +++ b/config/riscv/meson.b

Re: [PATCH] doc: ensure sphinx output is reproducible

2024-05-20 Thread Luca Boccassi
On Sun, 19 May 2024 at 22:11, Thomas Monjalon wrote: > > 19/05/2024 19:23, Luca Boccassi: > > On Sun, 19 May 2024 at 18:13, Thomas Monjalon wrote: > > > > > > 19/05/2024 18:36, Luca Boccassi: > > > > On Sun, 19 May 2024 at 15:01, Thomas Monjalon > > > > wrote: > > > > > 17/05/2024 13:29, Luca B

AMD 24.07 roadmap

2024-05-20 Thread Ferruh Yigit
AMD 24.07 roadmap # library - AMD uncore power support # driver - axgbe TSO support and base code update - ionic crypto driver Thanks, ferruh

RE: [PATCH v2 01/25] net/axgbe: fix mdio access for non-zero ports and CL45 PHYs

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar ; sta...@dpdk.org Subject: [PATCH v2 01/25] net/axgbe: fix mdio

RE: [PATCH v2 02/25] net/axgbe: reset link when the link never comes back

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar ; sta...@dpdk.org Subject: [PATCH v2 02/25] net/axgbe: reset lin

RE: [PATCH v2 03/25] net/axgbe: fix fluctuations for 1G BELFUSE SFP

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar ; sta...@dpdk.org Subject: [PATCH v2 03/25] net/axgbe: fix fluct

RE: [PATCH v2 04/25] net/axgbe: update DMA coherency values

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar ; sta...@dpdk.org Subject: [PATCH v2 04/25] net/axgbe: update DM

RE: [PATCH v2 05/25] net/axgbe: disable interrupts during device removal

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar ; sta...@dpdk.org Subject: [PATCH v2 05/25] net/axgbe: disable i

RE: [PATCH v2 06/25] net/axgbe: yellow carp devices do not need rrc

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar ; sta...@dpdk.org Subject: [PATCH v2 06/25] net/axgbe: yellow ca

RE: [PATCH v2 07/25] net/axgbe: enable PLL control for fixed PHY modes only

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar ; sta...@dpdk.org Subject: [PATCH v2 07/25] net/axgbe: enable PL

RE: [PATCH v2 08/25] net/axgbe: fix the SFP codes check for DAC cables

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar ; sta...@dpdk.org Subject: [PATCH v2 08/25] net/axgbe: fix the S

RE: [PATCH v2 09/25] net/axgbe: fix logic around active and passive cables

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar ; sta...@dpdk.org Subject: [PATCH v2 09/25] net/axgbe: fix logic

RE: [PATCH v2 11/25] net/axgbe: flow Tx Ctrl Registers are h/w version dependent

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar ; sta...@dpdk.org Subject: [PATCH v2 11/25] net/axgbe: flow Tx C

RE: [PATCH v2 12/25] net/axgbe: delay AN timeout during KR training

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar ; sta...@dpdk.org Subject: [PATCH v2 12/25] net/axgbe: delay AN

RE: [PATCH v2 10/25] net/axgbe: check only the minimum speed for cables

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar ; sta...@dpdk.org Subject: [PATCH v2 10/25] net/axgbe: check onl

RE: [PATCH v2 13/25] net/axgbe: remove use of comm owned field

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar Subject: [PATCH v2 13/25] net/axgbe: remove use of comm owned f

RE: [PATCH v2 14/25] net/axgbe: remove field of SFP diagnostic support

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar Subject: [PATCH v2 14/25] net/axgbe: remove field of SFP diagno

RE: [PATCH v2 15/25] net/axgbe: improve SFP 100Mbps auto-negotiation

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar Subject: [PATCH v2 15/25] net/axgbe: improve SFP 100Mbps auto-n

RE: [PATCH v2 16/25] net/axgbe: remove unnecessary conversion to bool

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar Subject: [PATCH v2 16/25] net/axgbe: remove unnecessary convers

RE: [PATCH v2 17/25] net/axgbe: use definitions for mailbox commands

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar Subject: [PATCH v2 17/25] net/axgbe: use definitions for mailbo

RE: [PATCH v2 18/25] net/axgbe: add support for 10 Mbps speed

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar Subject: [PATCH v2 18/25] net/axgbe: add support for 10 Mbps sp

RE: [PATCH v2 19/25] net/axgbe: separate C22 and C45 transactions

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar Subject: [PATCH v2 19/25] net/axgbe: separate C22 and C45 trans

RE: [PATCH v2 20/25] net/axgbe: replace mii generic macro for c45 with AXGBE

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar Subject: [PATCH v2 20/25] net/axgbe: replace mii generic macro

RE: [PATCH v2 21/25] net/axgbe: add 2.5GbE support to 10G BaseT mode

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar Subject: [PATCH v2 21/25] net/axgbe: add 2.5GbE support to 10G

RE: [PATCH v2 22/25] net/axgbe: add support for Rx adaptation

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar Subject: [PATCH v2 22/25] net/axgbe: add support for Rx adaptat

RE: [PATCH v2 23/25] net/axgbe: fix the false linkup in axgbe PHY status

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar ; sta...@dpdk.org Subject: [PATCH v2 23/25] net/axgbe: fix the f

RE: [PATCH v2 24/25] net/axgbe: extend 10Mbps support to MAC version 21H

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar Subject: [PATCH v2 24/25] net/axgbe: extend 10Mbps support to M

RE: [PATCH v2 25/25] net/axgbe: modify debug messages

2024-05-20 Thread Sebastian, Selwin
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Selwin Sebastian -Original Message- From: Ande, Venkat Kumar Sent: Tuesday, May 7, 2024 6:13 PM To: dev@dpdk.org Cc: Sebastian, Selwin ; Ande, Venkat Kumar Subject: [PATCH v2 25/25] net/axgbe: modify debug messages Mod

Re: [v2 01/16] net/mlx5/hws: move warn into debug level when needed

2024-05-20 Thread Raslan Darawsheh
Hi, From: Itamar Gozlan Sent: Monday, May 6, 2024 2:44 PM To: Itamar Gozlan; Erez Shitrit; Hamdan Agbariya; Yevgeny Kliteynik; Slava Ovsiienko; NBU-Contact-Thomas Monjalon (EXTERNAL); Suanming Mou; Dariusz Sosnowski; Ori Kam; Matan Azrad; Mark Bloch; Alex

Re: [PATCH] net/mlx5: fix HWS support for item NSH

2024-05-20 Thread Raslan Darawsheh
Hi, From: Minggang(Gavin) Li Sent: Thursday, May 9, 2024 3:44 PM To: Matan Azrad; Slava Ovsiienko; Ori Kam; NBU-Contact-Thomas Monjalon (EXTERNAL); Dariusz Sosnowski; Suanming Mou; Itamar Gozlan Cc: dev@dpdk.org; Raslan Darawsheh; Bing Zhao Subject: [PATCH] net/mlx5: fix HWS support for item NSH

Re: [PATCH v1] net/mlx5/hws: match VXLAN all fields

2024-05-20 Thread Raslan Darawsheh
Hi, From: Rongwei Liu Sent: Tuesday, May 14, 2024 6:21 AM To: dev@dpdk.org; Matan Azrad; Slava Ovsiienko; Ori Kam; Suanming Mou; NBU-Contact-Thomas Monjalon (EXTERNAL) Cc: Alex Vesker; Dariusz Sosnowski Subject: [PATCH v1] net/mlx5/hws: match VXLAN all fields Support VxLAN all fields support. T

Re: [PATCH] net/mlx5: fix bug trunk is null

2024-05-20 Thread Raslan Darawsheh
Hi, From: Haifei Luo Sent: Wednesday, May 15, 2024 12:36 PM To: Matan Azrad; Ori Kam; Slava Ovsiienko; ferruh.yi...@intel.com; Dariusz Sosnowski; Suanming Mou Cc: dev@dpdk.org; NBU-Contact-Thomas Monjalon (EXTERNAL); Raslan Darawsheh; sta...@dpdk.org Subject: [PATCH] net/mlx5: fix bug trunk is

Re: [PATCH v2 07/25] net/axgbe: enable PLL control for fixed PHY modes only

2024-05-20 Thread Ferruh Yigit
On 5/7/2024 1:42 PM, Venkat Kumar Ande wrote: > PLL control setting(RRC) is needed only in fixed PHY configuration to > fix the peer-peer issues. Without the PLL control setting, the link up > takes longer time in a fixed phy configuration. > > Without the fix the user will not get the link come U

Re: [PATCH v2 23/25] net/axgbe: fix the false linkup in axgbe PHY status

2024-05-20 Thread Ferruh Yigit
On 5/7/2024 1:43 PM, Venkat Kumar Ande wrote: > In the event of a change in AXGBE mode, the current auto-negotiation > needs to be reset and the AN cycle needs to be re-triggered. However, > the current code ignores the return value of axgbe_set_mode(), leading to > false information as the link is

Re: [PATCH v2 20/25] net/axgbe: replace mii generic macro for c45 with AXGBE

2024-05-20 Thread Ferruh Yigit
On 5/7/2024 1:43 PM, Venkat Kumar Ande wrote: > The axgbe driver reuses MII_ADDR_C45 for its own purpose. The values > derived with it are never passed to phylib or a linux MDIO bus driver. > In order that MII_ADDR_C45 can be removed, add an AXGBE specific > Last sentences feels like it is not fin

Re: [PATCH v2 01/25] net/axgbe: fix mdio access for non-zero ports and CL45 PHYs

2024-05-20 Thread Ferruh Yigit
On 5/7/2024 1:42 PM, Venkat Kumar Ande wrote: > The XGBE supports performing MDIO operations using an MDIO command > request. The driver mistakenly uses the mdio port address as the > MDIO command request device address instead of the MDIO command > request port address. Additionally, the driver do

Re: [PATCH v4] net/netvsc: fix number Tx queues > Rx queues

2024-05-20 Thread Ferruh Yigit
On 5/1/2024 8:43 AM, Morten Brørup wrote: >> From: Alan Elder [mailto:alan.el...@microsoft.com] >> Sent: Monday, 15 April 2024 16.41 >> >> The previous code allowed the number of Tx queues to be set higher than the >> number of Rx queues. If a packet was sent on a Tx queue with index >>> = number

Re: [PATCH v2 5/5] dts: add `show port stats` command to TestPmdShell

2024-05-20 Thread Nicholas Pratte
I've been running some local tests using a mock test suite. Each method you created generates output as expected, but show_port_stats_all() is printing out an empty list; I'm not sure this is intentional or not. I don't have much experience with regular expressions to be able to discern what is goi

[PATCH] net/mlx5: fix Rx Hash queue resource release in sample flow

2024-05-20 Thread Jiawei Wang
While the queue/rss action was added to sample action lists, the rx hash queue resource was allocated in the sample action translation to create the sample DR action later. While there's a failure in the flow creation, the Rx hash queue resource of the sample action list was destroyed in the wrong

Re: [PATCH v2 0/3] Improve interactive shell output gathering and logging

2024-05-20 Thread Nicholas Pratte
Acked-by: Nicholas Pratte On Thu, May 9, 2024 at 5:59 AM Luca Vizzarro wrote: > > On 01/05/2024 17:16, jspew...@iol.unh.edu wrote: > > This version addresses comments from the last and adds an additional > > improvement to the logging output that comes from interactive shells. > > The new way of

Re: [PATCH v2 0/2] dts: update mypy and clean up

2024-05-20 Thread Nicholas Pratte
Ran into no issues with this when testing your port stats and info patch, so I'll provide a tested tag as well. Other than a couple of issues listed in dts-check-format, everything looks good. Tested-by: Nicholas Pratte Reviewed-by: Nicholas Pratte On Tue, May 14, 2024 at 7:34 AM Luca Vizzarro

Re: [PATCH v1 1/4] dts: improve starting and stopping interactive shells

2024-05-20 Thread Luca Vizzarro
Looks good to me! Thank you for your work. Reviewed-by: Luca Vizzarro

Re: [PATCH v1 2/4] dts: add context manager for interactive shells

2024-05-20 Thread Luca Vizzarro
On 14/05/2024 21:14, jspew...@iol.unh.edu wrote: +class CriticalInteractiveShell(InteractiveShell): +_get_priviledged_command: Callable[[str], str] | None typo: privileged + +def __init__( +self, +interactive_session: SSHClient, +logger: DTSLogger, +ge

Re: [PATCH v1 3/4] dts: add methods for modifying MTU to testpmd shell

2024-05-20 Thread Luca Vizzarro
On 14/05/2024 21:14, jspew...@iol.unh.edu wrote: diff --git a/dts/framework/remote_session/testpmd_shell.py b/dts/framework/remote_session/testpmd_shell.py index 33b3e7c5a3..4e608998f9 100644 --- a/dts/framework/remote_session/testpmd_shell.py +++ b/dts/framework/remote_session/testpmd_shell.py

Re: [PATCH v12 01/12] net/tap: fix fd check in flow_isolate

2024-05-20 Thread Ferruh Yigit
On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > The check for receive queue fd in flow_isolate is incorrect. > If queue has not been setup then fd will be -1 not 0. > > Signed-off-by: Stephen Hemminger > Acked-by: Ferruh Yigit

Re: [PATCH v12 02/12] net/tap: do not duplicate fd's

2024-05-20 Thread Ferruh Yigit
On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > The TAP device can use same file descriptor for both rx and tx queues. > This allows up to 8 queues (versus 4) to be used with secondary process. > It would be nice to briefly update where this limit comes from, as removing this limitation can be l

Re: [PATCH v12 03/12] net/tap: remove unused fields

2024-05-20 Thread Ferruh Yigit
On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > The driver doesn't support these other hash types, and there > is no reason to implement these in future. The rss_flows list > was set but never used. > > Signed-off-by: Stephen Hemminger > Acked-by: Ferruh Yigit

Re: [PATCH v12 04/12] net/tap: validate and setup parameters for BPF RSS

2024-05-20 Thread Ferruh Yigit
On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > The flow RSS support via BPF was not using the key, or > hash type parameters. Which is good because they were never > properly setup. > > Fix the setup and validate the flow parameters, the BPF > side gets fixed later. > > Signed-off-by: Stephen H

Re: [PATCH v12 05/12] net/tap: do not build flow support if header is out of date

2024-05-20 Thread Ferruh Yigit
On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > The proper place for finding bpf structures and functions is > in linux/bpf.h. The original version was trying to workaround the > case where the build environment was running on old pre BPF > version of Glibc, but the target environment had BPF. >

Re: [PATCH v12 07/12] net/tap: use libbpf to load new BPF program

2024-05-20 Thread Ferruh Yigit
On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > There were multiple issues in the RSS queue support in the TAP > driver. This required extensive rework of the BPF support. > > Change the BPF loading to use bpftool to > create a skeleton header file, and load with libbpf. > The BPF is always compi

Re: [PATCH v12 08/12] net/tap: remove no longer used files

2024-05-20 Thread Ferruh Yigit
On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > The BPF api was replaced by use of libbpf. > And the BPF instruction header was replaced by the skeleton. > Mentioned 'skeleton' here is auto generated skeleton header file 'tap_rss.skel.h', right? Should we elaborate this? > Signed-off-by: Steph

Re: [PATCH v12 09/12] net/tap: simplify internals

2024-05-20 Thread Ferruh Yigit
On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > The names of Linux network devices are IFNAMSIZ(16) not the > same as DPDK which has up to 64 characters. Don't need to > hold onto the whole ifreq to save the remote interface flags. > > Make sure packet and byte counters are read once, so that glo

Re: [PATCH v12 10/12] net/tap: remove extraneous newlines

2024-05-20 Thread Ferruh Yigit
On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > Some log messages contained extra newlines. > > Signed-off-by: Stephen Hemminger > Acked-by: Ferruh Yigit

Re: [PATCH v12 11/12] net/tap: do not mark queue full as error

2024-05-20 Thread Ferruh Yigit
On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > If tap device in kernel returns EAGAIN that means it is full. > That is not an error. > > Signed-off-by: Stephen Hemminger > --- > drivers/net/tap/rte_eth_tap.c | 13 - > 1 file changed, 8 insertions(+), 5 deletions(-) > > diff --git

Re: [PATCH v12 12/12] net/tap: update documentation

2024-05-20 Thread Ferruh Yigit
On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > The driver support of flows has changed and the wording in > the guide was awkward. > > Drop references to DPDK pktgen in this documentation since > it is not required and confusing. > > Signed-off-by: Stephen Hemminger > --- > doc/guides/nics/ta

Re: [PATCH v1 4/4] dts: add test case that utilizes offload to pmd_buffer_scatter

2024-05-20 Thread Luca Vizzarro
On 14/05/2024 21:14, jspew...@iol.unh.edu wrote: +# adjust the MTU of the SUT ports +testpmd.set_port_mtu(0, 9000) +testpmd.set_port_mtu(1, 9000) should you perhaps do this for every port in the testpmd shell instead? for port_id in range(testpmd.number_of

Re: [PATCH v12 02/12] net/tap: do not duplicate fd's

2024-05-20 Thread Stephen Hemminger
On Mon, 20 May 2024 18:46:30 +0100 Ferruh Yigit wrote: > On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > > The TAP device can use same file descriptor for both rx and tx queues. > > This allows up to 8 queues (versus 4) to be used with secondary process. > > > > It would be nice to briefly u

Re: [PATCH v12 07/12] net/tap: use libbpf to load new BPF program

2024-05-20 Thread Stephen Hemminger
On Mon, 20 May 2024 18:49:19 +0100 Ferruh Yigit wrote: > On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > > There were multiple issues in the RSS queue support in the TAP > > driver. This required extensive rework of the BPF support. > > > > Change the BPF loading to use bpftool to > > create a

Re: [PATCH v1] net/cpfl: get running host ID for CPFL PMD

2024-05-20 Thread Stephen Hemminger
On Mon, 20 May 2024 04:44:15 + Shaiq Wani wrote: > +static uint8_t > +get_running_host_id(void) > +{ > + char buf[BUFSIZ]; > + FILE *fd; > + uint8_t host_id = CPFL_INVALID_HOST_ID; > + > + fd = fopen("/etc/issue.net", "r"); > + if (fd == NULL) { > + PMD_INIT_LO

Re: [PATCH v6] lib/hash: add defer queue reclaim API

2024-05-20 Thread Honnappa Nagarahalli
> On May 15, 2024, at 5:54 AM, Abdullah Ömer Yamaç wrote: > > This patch adds a new feature to the hash library to allow the user to > reclaim the defer queue. This is useful when the user wants to force > reclaim resources that are not being used. This API is only available > if the RCU is ena

Re: [PATCH] doc: ensure sphinx output is reproducible

2024-05-20 Thread Thomas Monjalon
20/05/2024 17:39, Stephen Hemminger: > On Mon, 20 May 2024 10:53:07 +0100 > Luca Boccassi wrote: > > > On Sun, 19 May 2024 at 22:11, Thomas Monjalon wrote: > > > > > > 19/05/2024 19:23, Luca Boccassi: > > > > On Sun, 19 May 2024 at 18:13, Thomas Monjalon > > > > wrote: > > > > > > > > > >

Re: [PATCH v12 07/12] net/tap: use libbpf to load new BPF program

2024-05-20 Thread Luca Boccassi
On Mon, 20 May 2024 at 19:43, Stephen Hemminger wrote: > > On Mon, 20 May 2024 18:49:19 +0100 > Ferruh Yigit wrote: > > > On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > > > There were multiple issues in the RSS queue support in the TAP > > > driver. This required extensive rework of the BPF sup

Re: [PATCH v12 07/12] net/tap: use libbpf to load new BPF program

2024-05-20 Thread Ferruh Yigit
On 5/20/2024 7:18 PM, Stephen Hemminger wrote: > On Mon, 20 May 2024 18:49:19 +0100 > Ferruh Yigit wrote: > >> On 5/2/2024 10:31 PM, Stephen Hemminger wrote: >>> There were multiple issues in the RSS queue support in the TAP >>> driver. This required extensive rework of the BPF support. >>> >>> C

Re: [PATCH v12 07/12] net/tap: use libbpf to load new BPF program

2024-05-20 Thread Ferruh Yigit
On 5/20/2024 10:42 PM, Luca Boccassi wrote: > On Mon, 20 May 2024 at 19:43, Stephen Hemminger > wrote: >> >> On Mon, 20 May 2024 18:49:19 +0100 >> Ferruh Yigit wrote: >> >>> On 5/2/2024 10:31 PM, Stephen Hemminger wrote: There were multiple issues in the RSS queue support in the TAP dri

Re: [PATCH 0/8] refactor logic to support secondary process

2024-05-20 Thread Ferruh Yigit
On 4/19/2024 6:23 AM, Chaoyong He wrote: > Refactor data structure and related logic to make the secondary process > can work as expect. > Hi Chaoyong, Patchset looks good, but I have a question related to the motivation of moving so many structs to process private data? Normally ethdev is proc

Re: [v1 1/1] MAINTAINERS: add another AF_XDP maintainer

2024-05-20 Thread Ferruh Yigit
On 4/25/2024 4:03 PM, Loftus, Ciara wrote: >> Subject: [v1 1/1] MAINTAINERS: add another AF_XDP maintainer >> >> Add Maryam Tahhan as an additional maintainer for AF_XDP >> PMD and it's documentation. >> >> Signed-off-by: Maryam Tahhan > > Thanks Maryam. > > Acked-by: Ciara Loftus > Acked-by:

Re: [PATCH v2 0/4] AF_XDP PMD Bugfixes

2024-05-20 Thread Ferruh Yigit
On 5/14/2024 9:41 AM, Ciara Loftus wrote: > Series of fixes for the AF_XDP PMD. > > Ciara Loftus (4): > net/af_xdp: fix port ID not set in Rx mbuf > net/af_xdp: fix mbuf alloc failed statistic > net/af_xdp: fix stats reset > net/af_xdp: remove unused local statistic > > drivers/net/af_xd

Re: [PATCH v12 07/12] net/tap: use libbpf to load new BPF program

2024-05-20 Thread Luca Boccassi
On Mon, 20 May 2024 at 23:08, Ferruh Yigit wrote: > > On 5/20/2024 10:42 PM, Luca Boccassi wrote: > > On Mon, 20 May 2024 at 19:43, Stephen Hemminger > > wrote: > >> > >> On Mon, 20 May 2024 18:49:19 +0100 > >> Ferruh Yigit wrote: > >> > >>> On 5/2/2024 10:31 PM, Stephen Hemminger wrote: >

[DPDK/ethdev Bug 1446] Fortify warnings in rte_pcapng

2024-05-20 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1446 Bug ID: 1446 Summary: Fortify warnings in rte_pcapng Product: DPDK Version: 24.03 Hardware: All OS: All Status: UNCONFIRMED Severity: minor Priority: No

Re: [PATCH v12 07/12] net/tap: use libbpf to load new BPF program

2024-05-20 Thread Stephen Hemminger
On Mon, 20 May 2024 23:08:04 +0100 Ferruh Yigit wrote: > > > > It can be done, but it is a _lot_ of work and requires a lot of shims, > > so for something optional it's not really worth it. Given libbpf 1.0 > > also broke ABI, Ubuntu 22.04 and older cannot really get a new version > > as it's in

Re: [PATCH v2 3/4] net/af_xdp: fix stats reset

2024-05-20 Thread Ferruh Yigit
On 5/14/2024 9:41 AM, Ciara Loftus wrote: > The imissed statistic was not properly reset because it was > read directly from the kernel statistics. To fix this, take note > of the kernel statistic when the stats are reset and deduct this > value from the kernel statistic read during statistics get.

[PATCH 1/2] pcapng: fix fortified memcpy warning

2024-05-20 Thread Stephen Hemminger
When adding option with no data, the rte_pcapng_add_option would call memcpy with src of NULL and size of zero. This generates a warning if fortify is enabled. Bugzilla ID: 1446 Fixes: 8d23ce8f5ee9 ("pcapng: add new library for writing pcapng files") Signed-off-by: Stephen Hemminger --- lib/pca

[PATCH 2/2] net/virtio: fix fortify memcpy warning

2024-05-20 Thread Stephen Hemminger
If fortify is enabled, it will generate a warning if memcpy src is NULL even if size is zero. This happens if the MP message sync is called with no file descriptors. Bugzilla ID 1446 Fixes: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter layer") Signed-off-by: Stephen Hemminger --- drive

RE: [PATCH 0/8] refactor logic to support secondary process

2024-05-20 Thread Chaoyong He
> On 4/19/2024 6:23 AM, Chaoyong He wrote: > > Refactor data structure and related logic to make the secondary > > process can work as expect. > > > > Hi Chaoyong, > > Patchset looks good, but I have a question related to the motivation of moving > so many structs to process private data? > > No

Reminder to Register for Our DPDK APAC Summit - and Submit Your CFPs! Jul 9-10, 2024 Bangkok Thailand

2024-05-20 Thread Nathan Southern
Spread the word, registration is now open for the DPDK Summit APAC in Bangkok! 🔗 Register here: https://lnkd.in/gu4zvXf Join us in-person for a gathering of DPDK developers and enthusiasts at the DPDK Summit APAC. Connect with the community, get the latest technological advancements, and contri

Re: [PATCH v12 12/12] net/tap: update documentation

2024-05-20 Thread Stephen Hemminger
On Mon, 20 May 2024 18:53:19 +0100 Ferruh Yigit wrote: > On 5/2/2024 10:31 PM, Stephen Hemminger wrote: > > The driver support of flows has changed and the wording in > > the guide was awkward. > > > > Drop references to DPDK pktgen in this documentation since > > it is not required and confusin

[PATCH v13 01/11] net/tap: fix fd check in flow_isolate

2024-05-20 Thread Stephen Hemminger
The check for receive queue fd in flow_isolate is incorrect. If queue has not been setup then fd will be -1 not 0. Signed-off-by: Stephen Hemminger Acked-by: Ferruh Yigit --- drivers/net/tap/tap_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/tap/tap_flow.

[PATCH v13 00/11] net/tap: make RSS work again

2024-05-20 Thread Stephen Hemminger
The support of doing RSS for rte_flow_action was a cool idea but it has been broken for several releases of DPDK as the underlying kernel and BPF infrastructure changed. This series cleans up the BPF program, implements several features that were never completed in the original code and changes to

[PATCH v13 02/11] net/tap: do not duplicate fd's

2024-05-20 Thread Stephen Hemminger
The TAP device can use same file descriptor for both rx and tx queues which reduces the number of fd's required. MP process support passes file descriptors from primary to secondary process; but because of the restriction on max fd's passed RTE_MP_MAX_FD_NUM (8) the TAP device was restricted to on

[PATCH v13 03/11] net/tap: remove unused fields

2024-05-20 Thread Stephen Hemminger
The driver doesn't support these other hash types, and there is no reason to implement these in future. The rss_flows list was set but never used. Signed-off-by: Stephen Hemminger Acked-by: Ferruh Yigit --- drivers/net/tap/rte_eth_tap.h | 4 +--- drivers/net/tap/tap_flow.c| 1 - drivers/net

[PATCH v13 04/11] net/tap: validate and setup parameters for BPF RSS

2024-05-20 Thread Stephen Hemminger
The flow RSS support via BPF was not using the key, or hash type parameters. Which is good because they were never properly setup. Fix the setup and validate the flow parameters, the BPF side gets fixed later. Signed-off-by: Stephen Hemminger --- drivers/net/tap/tap_flow.c | 75

[PATCH v13 05/11] net/tap: do not build flow support if header is out of date

2024-05-20 Thread Stephen Hemminger
The proper place for finding bpf structures and functions is in linux/bpf.h. The original version was trying to workaround the case where the build environment was running on old pre BPF version of Glibc, but the target environment had BPF. Having own private (and divergent) version headers leads

[PATCH v13 06/11] net/tap: rewrite the RSS BPF program

2024-05-20 Thread Stephen Hemminger
Rewrite of the BPF program used to do queue based RSS. Important changes: - uses newer BPF map format BTF - accepts key as parameter rather than constant default - can do L3 or L4 hashing - supports IPv4 options - supports IPv6 extension headers - re

[PATCH v13 07/11] net/tap: use libbpf to load new BPF program

2024-05-20 Thread Stephen Hemminger
There were multiple issues in the RSS queue support in the TAP driver. This required extensive rework of the BPF support. Change the BPF loading to use bpftool to create a skeleton header file, and load with libbpf. The BPF is always compiled from source so less chance that source and instructions

[PATCH v13 09/11] net/tap: simplify internals

2024-05-20 Thread Stephen Hemminger
The names of Linux network devices are IFNAMSIZ(16) not the same as DPDK which has up to 64 characters. Don't need to hold onto the whole ifreq to save the remote interface flags. Make sure packet and byte counters are read once, so that global and per-queue values add up. No need for separate rx_

[PATCH v13 08/11] net/tap: remove no longer used files

2024-05-20 Thread Stephen Hemminger
The BPF api was replaced by use of libbpf. And the BPF instruction header is replaced by the new tap_rss.skel.h which is generated via bpftool. Signed-off-by: Stephen Hemminger --- drivers/net/tap/tap_bpf_api.c | 196 drivers/net/tap/tap_bpf_insns.h | 1741 ---

[PATCH v13 10/11] net/tap: remove extraneous newlines

2024-05-20 Thread Stephen Hemminger
Some log messages contained extra newlines. Signed-off-by: Stephen Hemminger Acked-by: Ferruh Yigit --- drivers/net/tap/rte_eth_tap.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 3614aaf

[PATCH v13 11/11] net/tap: update documentation

2024-05-20 Thread Stephen Hemminger
The driver support of flows has changed and the wording in the guide was awkward. Drop references to DPDK pktgen in this documentation since it is not required, confusing and abandoned. Signed-off-by: Stephen Hemminger --- doc/guides/nics/tap.rst | 274 +++-

Re: [PATCH v12 07/12] net/tap: use libbpf to load new BPF program

2024-05-20 Thread Patrick Robb
On Mon, May 20, 2024 at 1:49 PM Ferruh Yigit wrote: > > @Patric, I assume test environment also doesn't have 'libbpf', version: > '>= 1.0' which we need to test this feature. > Is it possible to update test environment to justify this dependency? > Hi, the libbpf version on our Ubuntu 22.04 conta