Re: [dpdk-dev] [dpdk-stable] [PATCH 2/4] compress/mlx5: fix constant size in QP creation

2021-06-22 Thread Thomas Monjalon
01/06/2021 09:11, Michael Baum: > The mlx5_compress_qp_setup function makes shifting to the numeric > constant 1, then sends it as a parameter to rte_calloc function. > > The rte_calloc function expects to get size_t (64 bits, unsigned) and No on 32-bit systems, size_t is 32 bits. > instead gets

Re: [dpdk-dev] [PATCH] Add Armv7 support

2021-06-22 Thread Ruifeng Wang
Hi Supriya, > -Original Message- > From: Supriya Shekhar Mane > Sent: Friday, June 18, 2021 2:20 PM > To: tho...@monjalon.net > Cc: Chandrakant Sharpa ; > dev@dpdk.org; Zaheer R M ; Gurusidhesh > G H ; david.march...@redhat.com; > bruce.richard...@intel.com; Jan Viktorin ; > Ruifeng Wang

Re: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library

2021-06-22 Thread Hu, Jiayu
> -Original Message- > From: dev On Behalf Of Bruce Richardson > Sent: Thursday, June 17, 2021 1:31 AM > To: fengchengwen > Cc: tho...@monjalon.net; Yigit, Ferruh ; > dev@dpdk.org; nipun.gu...@nxp.com; hemant.agra...@nxp.com; > maxime.coque...@redhat.com; honnappa.nagaraha...@arm.com;

[dpdk-dev] [PATCH v4 62/62] net/cnxk: support marking and VLAN tagging

2021-06-22 Thread Nithin Dabilpuram
From: Satheesh Paul This patch adds support for mark, flag, VLAN pop and push flow actions. Signed-off-by: Satheesh Paul --- doc/guides/nics/features/cnxk.ini | 5 + doc/guides/nics/features/cnxk_vec.ini | 5 + doc/guides/nics/features/cnxk_vf.ini | 5 + drivers/net/cnxk/cn10k_rte_f

[dpdk-dev] [PATCH v4 61/62] net/cnxk: support multicast filter

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Patch adds multicast filter support for cn9k and cn10k platforms. CGX DMAC filter table(32 entries) is divided among all LMACs connected to it i.e. if CGX has 4 LMACs then each LMAC can have up to 8 filters. If CGX has 1 LMAC then it can have up to 32 filters. Above menti

[dpdk-dev] [PATCH v4 60/62] net/cnxk: added RETA and RSS hash operations

2021-06-22 Thread Nithin Dabilpuram
From: Satha Rao This patch will implement RETA and RSS hash apis. Also added device argument to lock rx context. Signed-off-by: Satha Rao --- doc/guides/nics/features/cnxk.ini | 2 + doc/guides/nics/features/cnxk_vec.ini | 2 + doc/guides/nics/features/cnxk_vf.ini | 2 + drivers/

[dpdk-dev] [PATCH v4 59/62] net/cnxk: add read clock operation

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Patch implements read raw clock operation for cn9k and cn10k. Signed-off-by: Sunil Kumar Kori --- doc/guides/nics/features/cnxk.ini | 2 ++ drivers/net/cnxk/cnxk_ethdev.c| 1 + drivers/net/cnxk/cnxk_ethdev.h| 1 + drivers/net/cnxk/cnxk_ptp.c | 17 +++

[dpdk-dev] [PATCH v4 57/62] net/cnxk: add Rx/Tx timestamp read operations

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Patch implements Rx/Tx timestamp read operations for cn9k and cn10k platforms. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.c | 2 ++ drivers/net/cnxk/cnxk_ethdev.h | 5 + drivers/net/cnxk/cnxk_ptp.c| 38 +

[dpdk-dev] [PATCH v4 56/62] net/cnxk: add timesync enable/disable operations

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Patch implements timesync enable/disable operations for cn9k and cn10k platforms. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev.c | 50 + drivers/net/cnxk/cn9k_ethdev.c | 50

[dpdk-dev] [PATCH v4 58/62] net/cnxk: add time read/write/adjust operations

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Patch implements read/write/adjust time operations for cn9k and cn10k platforms. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.c | 3 ++ drivers/net/cnxk/cnxk_ethdev.h | 5 drivers/net/cnxk/cnxk_ptp.c| 63

[dpdk-dev] [PATCH v4 55/62] net/cnxk: support base PTP timesync

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Base PTP timesync support is added for cn9k and cn10k platforms. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev.c | 31 + drivers/net/cnxk/cn10k_ethdev.h | 1 + drivers/net/cnxk/cn10k_rx.c | 32 ++--- drivers/net/cnxk/cn10k_rx.h |

[dpdk-dev] [PATCH v4 54/62] net/cnxk: register callback to get PTP status

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Once PTP status is changed at H/W i.e. enable/disable then it is propagated to user via registered callback. So corresponding callback is registered to get PTP status. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev.c| 87 ++

[dpdk-dev] [PATCH v4 53/62] net/cnxk: support for RSS in rte flow

2021-06-22 Thread Nithin Dabilpuram
From: Satheesh Paul Added support for RSS action in rte flow code based on ROC. Signed-off-by: Satheesh Paul --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + drivers/net/cnxk/cnxk_rte_flow.c | 74

[dpdk-dev] [PATCH v4 52/62] net/cnxk: add get register operation

2021-06-22 Thread Nithin Dabilpuram
From: Satha Rao With this patch implemented api to dump platform registers for debug purposes. Signed-off-by: Satha Rao --- doc/guides/nics/cnxk.rst | 1 + doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf

[dpdk-dev] [PATCH v4 51/62] net/cnxk: add ethdev firmware version get

2021-06-22 Thread Nithin Dabilpuram
From: Satha Rao Add callback to get ethdev firmware version. Signed-off-by: Satha Rao --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + drivers/net/cnxk/cnxk_ethdev.c| 1 + drivers/net/cnxk/cnx

[dpdk-dev] [PATCH v4 50/62] net/cnxk: add flow ops get operation

2021-06-22 Thread Nithin Dabilpuram
From: Satheesh Paul This patch adds flow ops get operation to enable rte_flow_ops.A This patch also add support for flow dev dump API. Every flow rule added will be dumped in the below format. MCAM Index:1881 Interface :NIX-RX (0) Priority :1 NPC RX Action:0X404001 ActionOp:NIX

[dpdk-dev] [PATCH v4 49/62] net/cnxk: support initial version of rte flow

2021-06-22 Thread Nithin Dabilpuram
From: Kiran Kumar K Adding initial version of rte_flow support for cnxk family device. Supported rte_flow ops are flow_validate, flow_create, flow_crstroy, flow_flush, flow_query, flow_isolate. Signed-off-by: Kiran Kumar K --- doc/guides/nics/cnxk.rst | 7 + doc/guides/nics/feat

[dpdk-dev] [PATCH v4 48/62] net/cnxk: add support to configure npc

2021-06-22 Thread Nithin Dabilpuram
From: Kiran Kumar K Adding support to configure NPC on device initialization. This involves reading the MKEX and initializing the necessary data. Signed-off-by: Kiran Kumar K --- drivers/net/cnxk/cnxk_ethdev.c | 25 ++--- drivers/net/cnxk/cnxk_ethdev.h | 3

[dpdk-dev] [PATCH v4 47/62] net/cnxk: add pending Tx mbuf cleanup operation

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Once mbufs are transmitted, mbufs are freed by H/W. No mbufs are accumalated as a pending mbuf. Hence operation is NOP for cnxk platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.c | 1 + drivers/net/cnxk/cnxk_ethdev.h | 1 + drivers/net

[dpdk-dev] [PATCH v4 46/62] net/cnxk: add device close and reset operations

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Patch implements device close and reset operations for cn9k and cn10k platforms. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.c | 35 --- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/drivers/net/cnxk/c

[dpdk-dev] [PATCH v4 45/62] net/cnxk: add rxq/txq info get operations

2021-06-22 Thread Nithin Dabilpuram
From: Satha Rao Initial apis to get default queue information. Signed-off-by: Satha Rao --- drivers/net/cnxk/cnxk_ethdev.c | 2 ++ drivers/net/cnxk/cnxk_ethdev.h | 4 drivers/net/cnxk/cnxk_ethdev_ops.c | 30 ++ 3 files changed, 36 insertions(+) diff

[dpdk-dev] [PATCH v4 44/62] net/cnxk: add xstats apis

2021-06-22 Thread Nithin Dabilpuram
From: Satha Rao Initial implementation of xstats operations. Signed-off-by: Satha Rao --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + drivers/net/cnxk/cnxk_ethdev.c| 5 + drivers/net/cnxk

[dpdk-dev] [PATCH v4 43/62] net/cnxk: add port/queue stats

2021-06-22 Thread Nithin Dabilpuram
From: Satha Rao This patch implements regular port statistics and queue mapping set api to get queue statistics Signed-off-by: Satha Rao --- doc/guides/nics/cnxk.rst | 1 + doc/guides/nics/features/cnxk.ini | 2 + doc/guides/nics/features/cnxk_vec.ini | 2 + doc/guides/nics

[dpdk-dev] [PATCH v4 42/62] net/cnxk: add validation API for mempool ops

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori cn9k and cn10k supports platform specific mempool ops. This patch implements API to validate whether given mempool ops is supported or not. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.c | 1 + drivers/net/cnxk/cnxk_ethdev.h | 1 + drivers/n

[dpdk-dev] [PATCH v4 41/62] net/cnxk: add Rx queue interrupt enable/disable ops

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Application may choose to enable/disable interrupts on Rx queues so that application can select its processing if no packets are available on queues for a longer period. Signed-off-by: Sunil Kumar Kori --- doc/guides/nics/cnxk.rst | 1 + doc/guides/nics/fea

[dpdk-dev] [PATCH v4 40/62] net/cnxk: add EEPROM module info get operations

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Patch implements eeprom module info get ethops for cn9k and cn10k platforms. Signed-off-by: Sunil Kumar Kori --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + drivers/net/cnxk/cnx

[dpdk-dev] [PATCH v4 39/62] net/cnxk: add link up/down operations

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Patch implements link up/down ethdev operations for cn9k and cn10k platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.c | 4 +++- drivers/net/cnxk/cnxk_ethdev.h | 4 drivers/net/cnxk/cnxk_ethdev_ops.c | 47 ++

[dpdk-dev] [PATCH v4 38/62] net/cnxk: add flow ctrl set/get ops

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Patch implements set and get operations for flow control. Signed-off-by: Sunil Kumar Kori --- doc/guides/nics/cnxk.rst | 1 + doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + drivers/net/cnxk/cnxk_ethdev.c

[dpdk-dev] [PATCH v4 37/62] net/cnxk: add Rx/Tx burst mode get ops

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Patch implements ethdev operations to get Rx and Tx burst mode. Signed-off-by: Sunil Kumar Kori --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + drivers/net/cnxk/cnxk_ethdev.c

[dpdk-dev] [PATCH v4 36/62] net/cnxk: add all multicast enable/disable ethops

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori L2 multicast packets can be allowed or blocked. Patch implements corresponding ethops. Signed-off-by: Sunil Kumar Kori --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + drivers/net/cnxk/cnxk_ethdev.c| 2 ++ drivers/n

[dpdk-dev] [PATCH v4 35/62] net/cnxk: support DMAC filter

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori DMAC filter support is added for cn9k and cn10k platforms. Signed-off-by: Sunil Kumar Kori --- doc/guides/nics/cnxk.rst | 1 + doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + drivers/net/cnxk/cnxk_ethdev.c

[dpdk-dev] [PATCH v4 34/62] net/cnxk: add promiscuous mode enable and disable

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Add device operations to enable and disable promisc mode for cn9k and cn10k. Signed-off-by: Sunil Kumar Kori --- doc/guides/nics/cnxk.rst | 1 + doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + drivers/net/cnxk/cnx

[dpdk-dev] [PATCH v4 33/62] net/cnxk: add MTU set device operation

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori This Patch implements mtu set dev op for cn9k and cn10k platforms. Signed-off-by: Sunil Kumar Kori --- doc/guides/nics/cnxk.rst | 1 + doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_

[dpdk-dev] [PATCH v4 32/62] net/cnxk: add MAC address set ops

2021-06-22 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Default mac address set operation is implemented for cn9k and cn10k platforms. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.c | 1 + drivers/net/cnxk/cnxk_ethdev.h | 2 ++ drivers/net/cnxk/cnxk_ethdev_ops.c | 29 +

[dpdk-dev] [PATCH v4 31/62] net/cnxk: add device start and stop operations

2021-06-22 Thread Nithin Dabilpuram
Add device start and stop operation callbacks for CN9K and CN10K. Device stop is common for both platforms while device start as some platform dependent portion where the platform specific offload flags are recomputed and the right Rx/Tx burst function is chosen. Signed-off-by: Nithin Dabilpuram

[dpdk-dev] [PATCH v4 30/62] net/cnxk: add Tx vector version for cn10k

2021-06-22 Thread Nithin Dabilpuram
Add Tx burst vector version for CN10K. Signed-off-by: Nithin Dabilpuram Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn10k_tx.c | 10 + drivers/net/cnxk/cn10k_tx.h | 815 drivers/net/cnxk/cn10k_tx_vec.c | 25 ++ drivers/net/cnxk/meson.bu

[dpdk-dev] [PATCH v4 29/62] net/cnxk: add Tx multi-segment version for cn10k

2021-06-22 Thread Nithin Dabilpuram
Add Tx burst multi-segment version for CN10K. Signed-off-by: Nithin Dabilpuram Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn10k_tx.c | 18 - drivers/net/cnxk/cn10k_tx.h | 171 +++ drivers/net/cnxk/cn10k_tx_mseg.c | 25 ++ drivers/

[dpdk-dev] [PATCH v4 28/62] net/cnxk: add Tx burst for cn10k

2021-06-22 Thread Nithin Dabilpuram
From: Jerin Jacob Add Tx burst scalar version for CN10K. Signed-off-by: Jerin Jacob Signed-off-by: Nithin Dabilpuram Signed-off-by: Pavan Nikhilesh Signed-off-by: Harman Kalra --- doc/guides/nics/cnxk.rst | 1 + doc/guides/nics/features/cnxk.ini | 7 + doc/guides/nics/f

[dpdk-dev] [PATCH v4 27/62] net/cnxk: add Rx vector version for cn10k

2021-06-22 Thread Nithin Dabilpuram
From: Jerin Jacob Add Rx burst vector version for CN10K. Signed-off-by: Jerin Jacob Signed-off-by: Nithin Dabilpuram --- doc/guides/nics/cnxk.rst| 1 + drivers/net/cnxk/cn10k_rx.c | 13 ++- drivers/net/cnxk/cn10k_rx.h | 222 drivers/

[dpdk-dev] [PATCH v4 26/62] net/cnxk: add Rx multi-segment version for cn10k

2021-06-22 Thread Nithin Dabilpuram
Add Rx burst multi-segment version for CN10K. Signed-off-by: Nithin Dabilpuram Signed-off-by: Pavan Nikhilesh --- doc/guides/nics/cnxk.rst | 2 ++ doc/guides/nics/features/cnxk.ini | 2 ++ doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf.ini |

[dpdk-dev] [PATCH v4 25/62] net/cnxk: add Rx burst for cn10k

2021-06-22 Thread Nithin Dabilpuram
From: Jerin Jacob Add Rx burst support for CN10K SoC. Signed-off-by: Jerin Jacob Signed-off-by: Nithin Dabilpuram Signed-off-by: Pavan Nikhilesh Signed-off-by: Harman Kalra --- drivers/net/cnxk/cn10k_ethdev.h | 3 + drivers/net/cnxk/cn10k_rx.c | 45 drivers/net/cnxk/cn10k_rx

[dpdk-dev] [PATCH v4 24/62] net/cnxk: add Tx vector version for cn9k

2021-06-22 Thread Nithin Dabilpuram
Add Tx burst vector version for CN9K. Signed-off-by: Nithin Dabilpuram Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn9k_tx.c | 16 +- drivers/net/cnxk/cn9k_tx.h | 743 + drivers/net/cnxk/cn9k_tx_vec.c | 25 ++ drivers/net/cnxk/meson.buil

[dpdk-dev] [PATCH v4 23/62] net/cnxk: add Tx multi-segment version for cn9k

2021-06-22 Thread Nithin Dabilpuram
Add Tx burst multi-segment version for CN9K. Signed-off-by: Nithin Dabilpuram Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn9k_tx.c | 14 drivers/net/cnxk/cn9k_tx.h | 150 drivers/net/cnxk/cn9k_tx_mseg.c | 25 +++ drivers/net

[dpdk-dev] [PATCH v4 22/62] net/cnxk: add Tx burst for cn9k

2021-06-22 Thread Nithin Dabilpuram
From: Jerin Jacob Add Tx burst scalar version for CN9K. Signed-off-by: Jerin Jacob Signed-off-by: Nithin Dabilpuram Signed-off-by: Pavan Nikhilesh Signed-off-by: Harman Kalra --- drivers/net/cnxk/cn9k_ethdev.h | 1 + drivers/net/cnxk/cn9k_tx.c | 53 ++ drivers/net/cnxk/cn9k_tx.h

[dpdk-dev] [PATCH v4 21/62] net/cnxk: add Rx vector version for cn9k

2021-06-22 Thread Nithin Dabilpuram
From: Jerin Jacob Add Rx burst vector version for CN9K. Signed-off-by: Jerin Jacob Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn9k_rx.c | 13 ++- drivers/net/cnxk/cn9k_rx.h | 221 + drivers/net/cnxk/cn9k_rx_vec.c | 17 drivers/

[dpdk-dev] [PATCH v4 20/62] net/cnxk: add Rx multi-segmented version for cn9k

2021-06-22 Thread Nithin Dabilpuram
Add Rx burst multi-segmented version for CN9K. Signed-off-by: Nithin Dabilpuram Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn9k_rx.c | 17 drivers/net/cnxk/cn9k_rx.h | 60 ++--- drivers/net/cnxk/cn9k_rx_mseg.c | 17

[dpdk-dev] [PATCH v4 19/62] net/cnxk: add Rx burst for cn9k

2021-06-22 Thread Nithin Dabilpuram
From: Jerin Jacob Add Rx burst scalar version for CN9K. Signed-off-by: Jerin Jacob --- drivers/net/cnxk/cn9k_ethdev.h | 3 + drivers/net/cnxk/cn9k_rx.c | 46 drivers/net/cnxk/cn9k_rx.h | 237 + drivers/net/cnxk/cnxk_ethdev.h | 3 +

[dpdk-dev] [PATCH v4 18/62] net/cnxk: support queue start and stop

2021-06-22 Thread Nithin Dabilpuram
Add Rx/Tx queue start and stop callbacks for CN9K and CN10K. Signed-off-by: Nithin Dabilpuram --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + drivers/net/cnxk/cn10k_ethdev.c | 16 ++ drivers/n

[dpdk-dev] [PATCH v4 17/62] net/cnxk: support packet type

2021-06-22 Thread Nithin Dabilpuram
Add support for packet type lookup on Rx to translate HW specific types to RTE_PTYPE_* defines Signed-off-by: Nithin Dabilpuram --- doc/guides/nics/cnxk.rst | 1 + doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/featur

[dpdk-dev] [PATCH v4 16/62] net/cnxk: add Tx queue setup and release

2021-06-22 Thread Nithin Dabilpuram
aDD tx queue setup and release for CN9K and CN10K. Release is common while setup is platform dependent due to differences in fast path Tx queue structures. Signed-off-by: Nithin Dabilpuram --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/

[dpdk-dev] [PATCH v4 15/62] net/cnxk: add Rx queue setup and release

2021-06-22 Thread Nithin Dabilpuram
Add Rx queue setup and release op for CN9K and CN10K SoC. Release is completely common while setup is platform dependent due to fast path Rx queue structure variation. Fastpath is platform dependent partly due to core cacheline size difference. Signed-off-by: Nithin Dabilpuram --- doc/guides/nic

[dpdk-dev] [PATCH v4 14/62] net/cnxk: support link status update

2021-06-22 Thread Nithin Dabilpuram
Add link status update callback to get current link status. Signed-off-by: Nithin Dabilpuram --- doc/guides/nics/cnxk.rst | 1 + doc/guides/nics/features/cnxk.ini | 2 + doc/guides/nics/features/cnxk_vec.ini | 2 + doc/guides/nics/features/cnxk_vf.ini | 2 + drivers/net

[dpdk-dev] [PATCH v4 13/62] net/cnxk: add device configuration operation

2021-06-22 Thread Nithin Dabilpuram
Add device configuration op for CN9K and CN10K. Most of the device configuration is common between two platforms except for some supported offloads. Signed-off-by: Nithin Dabilpuram --- doc/guides/nics/cnxk.rst | 2 + doc/guides/nics/features/cnxk.ini | 2 + doc/guides/nics/

[dpdk-dev] [PATCH v4 12/62] net/cnxk: support common dev infos get

2021-06-22 Thread Nithin Dabilpuram
Add support to retrieve dev infos get for CN9K and CN10K. Signed-off-by: Nithin Dabilpuram --- doc/guides/nics/cnxk.rst | 3 ++ doc/guides/nics/features/cnxk.ini | 4 ++ doc/guides/nics/features/cnxk_vec.ini | 4 ++ doc/guides/nics/features/cnxk_vf.ini | 3 ++ drivers/net/c

[dpdk-dev] [PATCH v4 11/62] net/cnxk: add common devargs parsing function

2021-06-22 Thread Nithin Dabilpuram
Add various devargs parsing command line arguments parsing functions supported by CN9K and CN10K. Signed-off-by: Nithin Dabilpuram --- doc/guides/nics/cnxk.rst | 94 +++ drivers/net/cnxk/cnxk_ethdev.c | 7 ++ drivers/net/cnxk/cnxk_ethdev.h | 9 +

[dpdk-dev] [PATCH v4 10/62] net/cnxk: add platform specific probe and remove

2021-06-22 Thread Nithin Dabilpuram
Add platform specific probe and remove callbacks for CN9K and CN10K which use common probe and remove functions. Register ethdev driver for CN9K and CN10K. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_ethdev.c | 64 drivers/net/cnxk/cn10k_ethdev.h

[dpdk-dev] [PATCH v4 09/62] net/cnxk: add build infra and common probe

2021-06-22 Thread Nithin Dabilpuram
Add build infrastructure and common probe and remove for cnxk driver which is used by both CN10K and CN9K SoC. Signed-off-by: Nithin Dabilpuram --- MAINTAINERS| 5 +- doc/guides/nics/cnxk.rst | 29 + doc/guides/nics/features/cnxk.ini | 9 ++

[dpdk-dev] [PATCH v4 08/62] common/cnxk: support for VLAN push and pop flow actions

2021-06-22 Thread Nithin Dabilpuram
From: Satheesh Paul Add roc API to configure VLAN tag addition and removal. This patch also adds 98xx support for increased MCAM entries for rte flow. Signed-off-by: Satheesh Paul --- drivers/common/cnxk/roc_model.h| 6 + drivers/common/cnxk/roc_npc.c | 257

[dpdk-dev] [PATCH v4 07/62] common/cnxk: change model API to not use camel case

2021-06-22 Thread Nithin Dabilpuram
Change model check API's to not use Camel case in function names. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_model.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/common/cnxk/roc_model.h b/drivers/common/cnxk/roc_model.h index fb774ac..5aaad5

[dpdk-dev] [PATCH v4 06/62] common/cnxk: add provision to enable RED on RQ

2021-06-22 Thread Nithin Dabilpuram
From: Satha Rao Send RED pass/drop levels based on rq configurations to kernel. Fixed the aura and pool shift value calculation. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix.h | 8 ++ drivers/common/cnxk/roc_nix_queue.c | 50 + drivers

[dpdk-dev] [PATCH v4 05/62] common/cnxk: allocate lmt region in userspace

2021-06-22 Thread Nithin Dabilpuram
From: Harman Kalra As per the new LMTST design, userspace shall allocate lmt region, setup the DMA translation and share the IOVA with kernel via MBOX. Kernel will convert this IOVA to physical memory and update the LMT table entry with the same. With this new design also shared mode (i.e. all pc

[dpdk-dev] [PATCH v4 04/62] common/cnxk: support for mark and flag flow actions

2021-06-22 Thread Nithin Dabilpuram
From: Satheesh Paul Add roc API to get mark action. Signed-off-by: Satheesh Paul --- drivers/common/cnxk/roc_npc.c | 17 + drivers/common/cnxk/roc_npc.h | 3 +++ drivers/common/cnxk/version.map | 2 ++ 3 files changed, 22 insertions(+) diff --git a/drivers/common/cnxk/ro

[dpdk-dev] [PATCH v4 03/62] common/cnxk: add support to dump flow entries

2021-06-22 Thread Nithin Dabilpuram
From: Satheesh Paul Add NPC support API to dump created flow entries. Signed-off-by: Satheesh Paul --- drivers/common/cnxk/hw/npc.h| 2 + drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_npc.c | 20 ++ drivers/common/cnxk/roc_npc.h |

[dpdk-dev] [PATCH v4 02/62] common/cnxk: fix batch alloc completion poll logic

2021-06-22 Thread Nithin Dabilpuram
From: Jerin Jacob The instruction generation was not correct due to fact that volatile suppose to use with ccode variable as well. Change the logic to use gcc atomic builtin to simplify and avoid explicit volatile from the code. Fixes: 81af26789316 ("common/cnxk: support NPA batch alloc/free")

[dpdk-dev] [PATCH v4 01/62] common/cnxk: add support to lock NIX RQ contexts

2021-06-22 Thread Nithin Dabilpuram
From: Satha Rao This patch will consider device argument to lock rss table in NIX. This patch also adds few misc fixes such as disabling NIX Tx vlan insertion conf in SMQ, enabling SSO in NIX Tx SQ for Tx completions and TM related stats API. Signed-off-by: Satha Rao --- drivers/common/cnxk/r

[dpdk-dev] [PATCH v4 00/62] Marvell CNXK Ethdev Driver

2021-06-22 Thread Nithin Dabilpuram
This patchset adds support for Marvell CN106XX SoC based on 'common/cnxk' driver. In future, CN9K a.k.a octeontx2 will also be supported by same driver when code is ready and 'net/octeontx2' will be deprecated. Harman Kalra (1): common/cnxk: allocate lmt region in userspace Jerin Jacob (7): c

[dpdk-dev] [PATCH v4 2/2] test/power: round cpuinfo cur freq only when using CPPC cpufreq

2021-06-22 Thread Richael Zhuang
On arm platform, the value in "/sys/.../cpuinfo_cur_freq" may not be exactly the same as what was set when using CPPC cpufreq driver. For other cpufreq driver, no need to round it currently, or else this check will fail with turbo enabled. For example, with acpi_cpufreq, cpuinfo_cur_freq can be 240

[dpdk-dev] [PATCH v4 1/2] power: add support for cppc cpufreq

2021-06-22 Thread Richael Zhuang
Currently in DPDK only acpi_cpufreq and pstate_cpufreq drivers are supported, which are both not available on arm64 platforms. Add support for cppc_cpufreq driver which works on most arm64 platforms. Signed-off-by: Richael Zhuang --- app/test/test_power.c | 3 +- app/test/test_power_c

[dpdk-dev] [PATCH v4 0/2] power: add support for cppc cpufreq driver

2021-06-22 Thread Richael Zhuang
v4: rebase on Anatoly's patch: http://dpdk.org/patch/94676 Richael Zhuang (2): power: add support for cppc cpufreq test/power: round cpuinfo cur freq only when using CPPC cpufreq app/test/test_power.c | 3 +- app/test/test_power_cpufreq.c | 26 +- lib/power/meson.build

Re: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library

2021-06-22 Thread fengchengwen
On 2021/6/23 1:51, Jerin Jacob wrote: > On Fri, Jun 18, 2021 at 2:22 PM fengchengwen wrote: >> >> On 2021/6/17 22:18, Bruce Richardson wrote: >>> On Thu, Jun 17, 2021 at 12:02:00PM +0100, Bruce Richardson wrote: On Thu, Jun 17, 2021 at 05:48:05PM +0800, fengchengwen wrote: > On 2021/6/17

Re: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library

2021-06-22 Thread fengchengwen
On 2021/6/23 1:25, Jerin Jacob wrote: > On Fri, Jun 18, 2021 at 3:11 PM fengchengwen wrote: >> >> On 2021/6/18 13:52, Jerin Jacob wrote: >>> On Thu, Jun 17, 2021 at 2:46 PM Bruce Richardson >>> wrote: On Wed, Jun 16, 2021 at 08:07:26PM +0530, Jerin Jacob wrote: > On Wed, Jun 16, 202

[dpdk-dev] [PATCH v3 4/4] examples/vhost: support vhost async dequeue data path

2021-06-22 Thread Wenwu Ma
This patch is to add vhost async dequeue data-path in vhost sample. vswitch can leverage IOAT to accelerate vhost async dequeue data-path. Signed-off-by: Wenwu Ma --- doc/guides/sample_app_ug/vhost.rst | 9 +- examples/vhost/ioat.c | 61 ++--- examples/vhost/ioat.h

[dpdk-dev] [PATCH v3 3/4] vhost: support async dequeue for split ring

2021-06-22 Thread Wenwu Ma
From: Yuan Wang This patch implements asynchronous dequeue data path for split ring. A new asynchronous dequeue function is introduced. With this function, the application can try to receive packets from the guest with offloading large copies to the DMA engine, thus saving precious CPU cycles. S

[dpdk-dev] [PATCH v3 2/4] examples/vhost: use a new API to query remaining ring space

2021-06-22 Thread Wenwu Ma
A new API for querying the remaining descriptor ring capacity is available, so we use the new one instead of the old one. Signed-off-by: Wenwu Ma --- examples/vhost/ioat.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/vhost/ioat.c b/examples/vhost/ioat.c index

[dpdk-dev] [PATCH v3 1/4] examples/vhost: refactor vhost enqueue and dequeue datapaths.

2021-06-22 Thread Wenwu Ma
Previously, by judging the flag, we call different enqueue/dequeue functions in data path. Now, we use an ops that was initialized when Vhost was created, so that we can call ops directly in Vhost data path without any more flag judgment. Signed-off-by: Wenwu Ma --- examples/vhost/main.c

[dpdk-dev] [PATCH v3 0/4] vhost: support async dequeue for split ring

2021-06-22 Thread Wenwu Ma
This patch implements asynchronous dequeue data path for split ring. A new asynchronous dequeue function is introduced. With this function, the application can try to receive packets from the guest with offloading large copies to the DMA engine, thus saving precious CPU cycles. v3: - Fix compilati

[dpdk-dev] [PATCH v5 2/2] bus/auxiliary: introduce auxiliary bus

2021-06-22 Thread Xueming Li
Auxiliary bus [1] provides a way to split function into child-devices representing sub-domains of functionality. Each auxiliary device represents a part of its parent functionality. Auxiliary device is identified by unique device name, sysfs path: /sys/bus/auxiliary/devices/ Devargs legacy synt

[dpdk-dev] [PATCH v5 1/2] devargs: add common key definition

2021-06-22 Thread Xueming Li
Adds common devargs key definition for "bus", "class" and "driver". Cc: Thomas Monjalon Signed-off-by: Xueming Li --- drivers/common/mlx5/mlx5_common.h | 2 -- drivers/common/mlx5/mlx5_common_pci.c | 2 +- drivers/common/sfc_efx/sfc_efx.c| 7 +++ drivers/common/sfc_efx/sf

Re: [dpdk-dev] [PATCH v4 2/2] bus/auxiliary: introduce auxiliary bus

2021-06-22 Thread Xueming(Steven) Li
> -Original Message- > From: Thomas Monjalon > Sent: Tuesday, June 22, 2021 12:11 AM > To: Parav Pandit ; Xueming(Steven) Li > Cc: dev@dpdk.org; Wang Haiyue ; Kinsella Ray > ; david.march...@redhat.com; > ferruh.yi...@intel.com > Subject: Re: [dpdk-dev] [PATCH v4 2/2] bus/auxiliary: i

Re: [dpdk-dev] rte_memcpy - fence and stream

2021-06-22 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Morten Brørup > Sent: Thursday, 27 May 2021 20.15 > > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Bruce Richardson > > Sent: Thursday, 27 May 2021 19.22 > > > > On Thu, May 27, 2021 at 10:39:59PM +0530, Manish Sharma wrote: > > >

Re: [dpdk-dev] [dpdk-stable] [PATCH] raw/ioat: fix missing ring pointer reset

2021-06-22 Thread Thomas Monjalon
17/06/2021 16:21, Bruce Richardson: > On Thu, Jun 17, 2021 at 02:18:15PM +, Kevin Laatz wrote: > > In the event of a device reconfigure, "hdls_avail" is not being reset. This > > can lead to miscalculations in rte_ioat_completed_ops(), causing the > > function to report an incorrect amount of c

Re: [dpdk-dev] [PATCH] raw/ioat: fix memory leak in device configure

2021-06-22 Thread Thomas Monjalon
17/06/2021 16:20, Bruce Richardson: > On Thu, Jun 17, 2021 at 02:17:52PM +, Kevin Laatz wrote: > > During device configure, memory is allocated for "hdl_ring_flags". In the > > event of another call to the device configure function (reconfigure), a > > memory leak would occur. This patch fixes

Re: [dpdk-dev] [dpdk-stable] [PATCH v3] kni: fix mbuf allocation for alloc FIFO

2021-06-22 Thread Thomas Monjalon
22/06/2021 14:44, wangyunjian: > From: Yunjian Wang > > In kni_allocate_mbufs(), we alloc mbuf for alloc_q as this code. > allocq_free = (kni->alloc_q->read - kni->alloc_q->write - 1) \ > & (MAX_MBUF_BURST_NUM - 1); > The value of allocq_free maybe zero, for example : > The ring siz

[dpdk-dev] [PATCH 2/2] net/octeontx2: callback for getting link status

2021-06-22 Thread Harman Kalra
Adding a new callback for reading the link status. PF can read it's link status and can forward the same to VF once it comes up. Signed-off-by: Harman Kalra --- drivers/net/octeontx2/otx2_ethdev.c | 8 +++- drivers/net/octeontx2/otx2_ethdev.h | 2 ++ drivers/net/octeontx2/otx2_link.c | 2

[dpdk-dev] [PATCH 1/2] common/octeontx2: send link event to VF

2021-06-22 Thread Harman Kalra
Currently link event is only sent to the PF by AF as soon as it comes up, or in case of any physical change in link. PF will broadcast these link events to all its VFs as soon as it receives it. But no event is sent when a new VF comes up, hence it will not have the link status. Adding support for

Re: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library

2021-06-22 Thread Bruce Richardson
On Tue, Jun 22, 2021 at 11:01:47PM +0530, Jerin Jacob wrote: > On Fri, Jun 18, 2021 at 3:25 PM Bruce Richardson > wrote: > > > > > > > Taking the case of a simple copy op, the parameters we need are: > > > > * src > > * dst > > * length > > OK. Is it the case where no other attribute that support

Re: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library

2021-06-22 Thread Jerin Jacob
On Fri, Jun 18, 2021 at 2:22 PM fengchengwen wrote: > > On 2021/6/17 22:18, Bruce Richardson wrote: > > On Thu, Jun 17, 2021 at 12:02:00PM +0100, Bruce Richardson wrote: > >> On Thu, Jun 17, 2021 at 05:48:05PM +0800, fengchengwen wrote: > >>> On 2021/6/17 1:31, Bruce Richardson wrote: > On We

Re: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library

2021-06-22 Thread Jerin Jacob
On Fri, Jun 18, 2021 at 3:34 PM Bruce Richardson wrote: > > On Fri, Jun 18, 2021 at 10:46:08AM +0530, Jerin Jacob wrote: > > On Thu, Jun 17, 2021 at 1:30 PM Bruce Richardson > > wrote: > > > > > > On Thu, Jun 17, 2021 at 01:12:22PM +0530, Jerin Jacob wrote: > > > > On Thu, Jun 17, 2021 at 12:43 A

Re: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library

2021-06-22 Thread Jerin Jacob
On Fri, Jun 18, 2021 at 3:25 PM Bruce Richardson wrote: > > On Fri, Jun 18, 2021 at 11:22:28AM +0530, Jerin Jacob wrote: > > On Thu, Jun 17, 2021 at 2:46 PM Bruce Richardson > > wrote: > > > > > > On Wed, Jun 16, 2021 at 08:07:26PM +0530, Jerin Jacob wrote: > > > > On Wed, Jun 16, 2021 at 3:47 PM

Re: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library

2021-06-22 Thread Jerin Jacob
On Fri, Jun 18, 2021 at 3:11 PM fengchengwen wrote: > > On 2021/6/18 13:52, Jerin Jacob wrote: > > On Thu, Jun 17, 2021 at 2:46 PM Bruce Richardson > > wrote: > >> > >> On Wed, Jun 16, 2021 at 08:07:26PM +0530, Jerin Jacob wrote: > >>> On Wed, Jun 16, 2021 at 3:47 PM fengchengwen > >>> wrote: >

[dpdk-dev] [PATCH 2/2] drivers: add octeontx crypto adapter data path

2021-06-22 Thread Shijith Thotton
Added support for crypto adapter OP_FORWARD mode. As OcteonTx CPT crypto completions could be out of order, each crypto op is enqueued to CPT, dequeued from CPT and enqueued to SSO one-by-one. Signed-off-by: Shijith Thotton --- doc/guides/rel_notes/release_21_08.rst| 4 + drivers/comm

[dpdk-dev] [PATCH 1/2] drivers: add octeontx crypto adapter framework

2021-06-22 Thread Shijith Thotton
Set crypto adapter event device slow-path call backs. Signed-off-by: Shijith Thotton --- drivers/crypto/octeontx/meson.build | 1 + drivers/crypto/octeontx/otx_cryptodev.c | 4 ++ drivers/crypto/octeontx/otx_cryptodev.h | 4 -- .../crypto/octeontx/otx_cryptodev_hw_access

[dpdk-dev] [PATCH 0/2] OCTEONTX crypto adapter support

2021-06-22 Thread Shijith Thotton
Below patches add crypto adapter OP_FORWARD support for OCTEON TX PMD. Shijith Thotton (2): drivers: add octeontx crypto adapter framework drivers: add octeontx crypto adapter data path doc/guides/rel_notes/release_21_08.rst| 4 + drivers/common/cpt/cpt_common.h | 2

[dpdk-dev] [PATCH] net/mlx5: fix multi-segment inline for the first segment

2021-06-22 Thread Viacheslav Ovsiienko
If the first segment in the multi-segment packet is short and below the inline threshold it should be inline into the WQE to improve the performance. For example, the T-Rex traffic generator might use small leading segments to handle packet headers and performance was affected. Fixes: cacb44a09962

[dpdk-dev] [PATCH v1] doc: update ABI in MAINTAINERS file

2021-06-22 Thread Ray Kinsella
Update to ABI MAINTAINERS. Signed-off-by: Ray Kinsella --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5877a16971..dab8883a4f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -117,7 +117,6 @@ F: .ci/ ABI Policy & Versioning M: Ray Kinsella -M:

[dpdk-dev] [PATCH v3] net/mlx5: add TCP and IPv6 to supported flow items list in Windows

2021-06-22 Thread Tal Shnaiderman
WINOF2 2.70 Windows kernel driver allows DevX rule creation of types TCP and IPv6. Added the types to the supported items in mlx5_flow_os_item_supported to allow them to be created in the PMD. Added description of new rules support in Windows kernel driver WINOF2 2.70 to the mlx5 driver guide. S

[dpdk-dev] [PATCH v2] examples/power: add baseline mode to PMD power

2021-06-22 Thread David Hunt
The PMD Power Management scheme currently has 3 modes, scale, monitor and pause. However, it would be nice to have a baseline mode for easy comparison of power savings with and without these modes. This patch adds a 'baseline' mode were the pmd power management is not enabled. Use --pmg-mgmt=basel

Re: [dpdk-dev] [PATCH] net/e1000: fix nic ops function was no initialized in secondary process

2021-06-22 Thread Tengfei Zhang
On 2021/6/22 上午10:16, Wang, Haiyue wrote: From: 张 杨 Sent: Monday, June 21, 2021 16:35 To: Wang, Haiyue Cc: dev@dpdk.org; Zhang, Qi Z ; Lin, Xueqin Subject: Re: [PATCH] net/e1000: fix nic ops function was no initialized in secondary process 发件人: Wang, Haiyue 发送

[dpdk-dev] [PATCH 1/1] net/i40e: fix compilation failure on core-avx-i

2021-06-22 Thread Shahed Shaikh
i40e_rxtx_vec_sse.c fails to compile with below configuration: - #define RTE_LIBRTE_I40E_16BYTE_RX_DESC 1 in config/rte_config.h - cpu=core-axv-i - gcc which supports -mavx2 (e.g. gcc 4.8.5) This is because commit 0604b1f2208f ("net/i40e: fix crash in AVX512") added i40e_rxq_rearm_common() to i40e

Re: [dpdk-dev] [PATCH v5 2/2] power: refactor pstate and acpi code

2021-06-22 Thread David Hunt
Adding people to the CC list that were on v4 of this patch set, and Richael who raised some issues in v4. On 22/6/2021 1:58 PM, David Hunt wrote: From: Anatoly Burakov Currently, ACPI and PSTATE modes have lots of code duplication, confusing logic, and a bunch of other issues that can, and ha

  1   2   >