[PATCH] net/mana: implement RX CQE coalescing

2023-05-05 Thread longli
From: Long Li With RX coalescing, one CQE entry can be used to indicate up to 4 packets on the receive queue. This saves processing time and PCI bandwidth over the CQ. Cc: sta...@dpdk.org Signed-off-by: Long Li --- drivers/net/mana/mana.h | 4 +++ drivers/net/mana/rx.c | 71

[PATCH v2] net/mana: suppress TX CQE generation whenever possible

2023-05-05 Thread longli
From: Long Li When sending TX packets, we don't need a completion for every packet sent. If packets are sent in a series, the completion of the last packet can be used to indicate completion of all prior packets. Cc: sta...@dpdk.org Signed-off-by: Long Li --- Change log v2: rebased to dpdk-next

[PATCH v2] net/mana: return probe failure if there is no device found

2023-05-05 Thread longli
From: Long Li When there is no device found on this PCI device, return probe failure and release allocated resources for this PCI device. Fixes: 517ed6e2d590 ("net/mana: add basic driver with build environment") Cc: sta...@dpdk.org Signed-off-by: Long Li --- Change log v2: fixed typo drivers

RE: [PATCH v2] net/ixgbe: add proper memory barriers for some Rx functions

2023-05-05 Thread Zhang, Qi Z
> -Original Message- > From: zhoumin > Sent: Friday, May 5, 2023 10:43 AM > To: Zhang, Qi Z ; Morten Brørup > ; Konstantin Ananyev > > Cc: dev@dpdk.org; maob...@loongson.cn; Yang, Qiming > ; Wu, Wenjun1 ; > ruifeng.w...@arm.com; d...@linux.vnet.ibm.com; Tyler Retzlaff > > Subject: Re:

[PATCH 14/14] baseband/fpga_5gnr: use rte_pktmbu_mtod_offset

2023-05-05 Thread Stephen Hemminger
Autogenerated with cocci/mtod-offset.cocci. Signed-off-by: Stephen Hemminger --- drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c b/drivers/baseband/fpga_5gnr_fec/rte_

[PATCH 13/14] net/mlx4: use rte_pktmbuf_mtod_offset

2023-05-05 Thread Stephen Hemminger
Autogenerated with cocci/mtod-offset.cocci. Signed-off-by: Stephen Hemminger --- drivers/net/mlx4/mlx4_rxtx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx4/mlx4_rxtx.c b/drivers/net/mlx4/mlx4_rxtx.c index 059e432a63fc..d5feeb7f7e6d 100644 --- a/driver

[PATCH 11/14] common/cpt: use rte_pktmbuf_mtod_offset

2023-05-05 Thread Stephen Hemminger
Autogenerated with cocci/mtod-offset.cocci Signed-off-by: Stephen Hemminger --- drivers/common/cpt/cpt_ucode.h | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/common/cpt/cpt_ucode.h b/drivers/common/cpt/cpt_ucode.h index b393be4cf661..87a3ac80b9da 100644 --

[PATCH 12/14] crypto/caam_jr: use rte_pktmbuf_mtod_offset

2023-05-05 Thread Stephen Hemminger
Autogenerated with cocci/mtod-offset.cocci. Signed-off-by: Stephen Hemminger --- drivers/crypto/caam_jr/caam_jr.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/caam_jr/caam_jr.c b/drivers/crypto/caam_jr/caam_jr.c index b55258689b49..9c96fd21a48d 10064

[PATCH 10/14] crypto/cnxk: use rte_ptkmbuf_mtod_offset

2023-05-05 Thread Stephen Hemminger
Autogenerated with cocci/mtod-offset.cocci Signed-off-by: Stephen Hemminger --- drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 2 +- drivers/crypto/cnxk/cnxk_se.h| 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/cnxk/cn9k_cryptodev_ops.c b/drivers/

[PATCH 09/14] crypto/qat: use rte_pktmbuf_mtod_offset

2023-05-05 Thread Stephen Hemminger
Auto generated with cocci/mtod-offset.cocci Signed-off-by: Stephen Hemminger --- drivers/crypto/qat/dev/qat_crypto_pmd_gens.h | 9 + drivers/crypto/qat/qat_sym.h | 9 + 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/crypto/qat/dev/qat_cryp

[PATCH 08/14] crypto/ipsec_mb: use rte_pktmbuf_mtod_offset

2023-05-05 Thread Stephen Hemminger
Initial patch generated with cocci/mtod-offset. Additional manual cleanups to indentation and remove unnecessary parenthesis. Signed-off-by: Stephen Hemminger --- drivers/crypto/ipsec_mb/pmd_kasumi.c | 16 ++--- drivers/crypto/ipsec_mb/pmd_snow3g.c | 35 +++- driv

[PATCH 07/14] net/nfp: use rte_pktmbuf_mtod_offset

2023-05-05 Thread Stephen Hemminger
Automatically generated by cocci/mtod-offset.cocci. Signed-off-by: Stephen Hemminger --- drivers/net/nfp/flower/nfp_flower_cmsg.h | 3 ++- drivers/net/nfp/flower/nfp_flower_ctrl.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/nfp/flower/nfp_flower_cmsg.h b

[PATCH 06/14] net/tap: use rte_pktmbuf_mtod_offset

2023-05-05 Thread Stephen Hemminger
Automatically generated by cocci/mbuf-offset.cocci Signed-off-by: Stephen Hemminger --- drivers/net/tap/rte_eth_tap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 089ac202fad2..ca2c8da5c289 100644 --- a/

[PATCH 05/14] examples: use rte_pktmbuf_mtod_offset

2023-05-05 Thread Stephen Hemminger
Automatically generated from cocci/mtod-offset.cocci Signed-off-by: Stephen Hemminger --- examples/l2fwd-crypto/main.c | 16 +--- examples/ptpclient/ptpclient.c | 18 +- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/examples/l2fwd-crypto/main.c b/

[PATCH 04/14] test: cryptodev use rte_pktmbuf_mtod_offset

2023-05-05 Thread Stephen Hemminger
Automatically genertged by cocci/mtod-offset.cocci. Signed-off-by: Stephen Hemminger --- app/test/test_cryptodev.c | 66 +-- 1 file changed, 36 insertions(+), 30 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 9c670e9a355

[PATCH 03/14] testpmd: use rte_pktmbuf_mtod_offset

2023-05-05 Thread Stephen Hemminger
Use helper macro. Signed-off-by: Stephen Hemminger --- app/test-pmd/ieee1588fwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/ieee1588fwd.c b/app/test-pmd/ieee1588fwd.c index 386d9f10e642..3371771751dd 100644 --- a/app/test-pmd/ieee1588fwd.c +++ b/app/tes

[PATCH 02/14] gso: use rte_pktmbuf_mtod_offset

2023-05-05 Thread Stephen Hemminger
Use the rte_pktmbuf_mtod_offset macro. Change was automatically generated by cocci/mtod-offset.cocci. Signed-off-by: Stephen Hemminger --- lib/gso/gso_common.h | 12 ++-- lib/gso/gso_tcp4.c| 8 lib/gso/gso_tunnel_tcp4.c | 12 ++-- lib/gso/gso_tunnel_udp4.c

[PATCH 01/14] gro: use rte_pktmbuf_mtod_offset

2023-05-05 Thread Stephen Hemminger
Use rte_pktmbuf_mtod_offset. Change was automatically generated by cocci/mtod-offset.cocci. Signed-off-by: Stephen Hemminger --- lib/gro/gro_tcp4.c | 4 ++-- lib/gro/gro_tcp4.h | 4 ++-- lib/gro/gro_udp4.c | 4 ++-- lib/gro/gro_vxlan_tcp4.c | 4 ++-- lib/gro/gro_vxlan_udp4.c |

[PATCH 00/14] rte_pktmbuf_mtod_offset usage

2023-05-05 Thread Stephen Hemminger
Run the coccinelle script for rte_pktmbuf_mtod_offset against current main branch. Stephen Hemminger (14): gro: use rte_pktmbuf_mtod_offset gso: use rte_pktmbuf_mtod_offset testpmd: use rte_pktmbuf_mtod_offset test: cryptodev use rte_pktmbuf_mtod_offset examples: use rte_pktmbuf_mtod_off

[PATCH] test/crypto: fix return value from session

2023-05-05 Thread Tejasree Kondoj
Fixing return value if session failure occurs due to unsupported feature. Fixes: eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto operations") Cc: sta...@dpdk.org Signed-off-by: Tejasree Kondoj --- app/test/test_cryptodev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Minutes of Technical Board Meeting, 2023-01-11

2023-05-05 Thread Stephen Hemminger
NOTE: The technical board meetings are on every second Wednesday at https://meet.jit.si/DPDK at 3 pm UTC. Meetings are public, and DPDK community members are welcome to attend. NOTE: Next meeting will be on Wednesday 2023-01-25 @ 3pm UTC, and will be chaired by Bruce. Agenda Items

Re: [RFC PATCH v2 0/4] dts: add dts api docs

2023-05-05 Thread Bruce Richardson
On Thu, May 04, 2023 at 02:37:45PM +0200, Juraj Linkeš wrote: > Augment the meson build system with dts api generation. The api docs are > generated from Python docstrings in DTS using Sphinx. The format of > choice is the Google format [0]. > > The guide html sphinx configuration is used to prese

Re: [RFC PATCH v2 3/4] dts: add doc generation

2023-05-05 Thread Bruce Richardson
On Fri, May 05, 2023 at 01:13:34PM +0200, Juraj Linkeš wrote: > On Fri, May 5, 2023 at 12:57 PM Bruce Richardson > wrote: > > > > On Thu, May 04, 2023 at 02:37:48PM +0200, Juraj Linkeš wrote: > > > The tool used to generate developer docs is sphinx, which is already > > > used in DPDK. The configu

Re: [RFC PATCH v2 3/4] dts: add doc generation

2023-05-05 Thread Juraj Linkeš
On Fri, May 5, 2023 at 12:57 PM Bruce Richardson wrote: > > On Thu, May 04, 2023 at 02:37:48PM +0200, Juraj Linkeš wrote: > > The tool used to generate developer docs is sphinx, which is already > > used in DPDK. The configuration is kept the same to preserve the style. > > > > Sphinx generates th

Re: [RFC PATCH v2 3/4] dts: add doc generation

2023-05-05 Thread Bruce Richardson
On Thu, May 04, 2023 at 02:37:48PM +0200, Juraj Linkeš wrote: > The tool used to generate developer docs is sphinx, which is already > used in DPDK. The configuration is kept the same to preserve the style. > > Sphinx generates the documentation from Python docstrings. The docstring > format most

Re: [RFC PATCH v2 3/4] dts: add doc generation

2023-05-05 Thread Juraj Linkeš
On Fri, May 5, 2023 at 12:24 PM Bruce Richardson wrote: > > On Fri, May 05, 2023 at 09:53:50AM +0200, Juraj Linkeš wrote: > > On Thu, May 4, 2023 at 2:45 PM Bruce Richardson > > wrote: > > > > > > On Thu, May 04, 2023 at 02:37:48PM +0200, Juraj Linkeš wrote: > > > > The tool used to generate deve

[RFC PATCH] ethdev: advertise flow restore in mbuf

2023-05-05 Thread David Marchand
As reported by Ilya [1], unconditionally calling rte_flow_get_restore_info() impacts an application performance for drivers that do not provide this ops. It could also impact processing of packets that require no call to rte_flow_get_restore_info() at all. Advertise in mbuf (via a dynamic flag) wh

Re: [RFC PATCH v2 3/4] dts: add doc generation

2023-05-05 Thread Bruce Richardson
On Fri, May 05, 2023 at 09:53:50AM +0200, Juraj Linkeš wrote: > On Thu, May 4, 2023 at 2:45 PM Bruce Richardson > wrote: > > > > On Thu, May 04, 2023 at 02:37:48PM +0200, Juraj Linkeš wrote: > > > The tool used to generate developer docs is sphinx, which is already > > > used in DPDK. The configur

Re: [RFC PATCH v2 3/4] dts: add doc generation

2023-05-05 Thread Juraj Linkeš
On Thu, May 4, 2023 at 2:45 PM Bruce Richardson wrote: > > On Thu, May 04, 2023 at 02:37:48PM +0200, Juraj Linkeš wrote: > > The tool used to generate developer docs is sphinx, which is already > > used in DPDK. The configuration is kept the same to preserve the style. > > > > Sphinx generates the