[dpdk-dev] [PATCH v2 01/13] net/cnxk: add multi seg Rx vector routine

2021-06-19 Thread pbhagavatula
From: Pavan Nikhilesh Add multi-segment Rx vector routine, form the primary mbufs using vector path switch to scalar path when extracting segments. Signed-off-by: Pavan Nikhilesh --- Depends-on: http://patches.dpdk.org/project/dpdk/list/?series=17394 drivers/net/cnxk/cn10k_rx.c | 31

[dpdk-dev] [PATCH v2 02/13] net/cnxk: enable ptp processing in vector Rx

2021-06-19 Thread pbhagavatula
From: Pavan Nikhilesh Enable PTP offload in vector Rx burst function, use vector path for processing mbufs and finally switch to scalar when extracting timestamp. Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn10k_ethdev.c | 1 - drivers/net/cnxk/cn10k_rx.c | 5 +- drivers/net/c

[dpdk-dev] [PATCH v2 03/13] net/cnxk: enable VLAN processing in vector Tx

2021-06-19 Thread pbhagavatula
From: Pavan Nikhilesh Enable VLAN offload in vector Tx burst function. Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn10k_tx.c | 3 +- drivers/net/cnxk/cn10k_tx.h | 125 +++ drivers/net/cnxk/cn10k_tx_vec.c | 3 +- drivers/net/cnxk/cn9k_tx.c |

[dpdk-dev] [PATCH v2 04/13] net/cnxk: enable ptp processing in vector Tx

2021-06-19 Thread pbhagavatula
From: Pavan Nikhilesh Enable PTP offload in vector Tx burst function. Since, we can no-longer use a single LMT line for burst of 4, split the LMT into two and transmit twice. Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn10k_tx.c | 4 +- drivers/net/cnxk/cn10k_tx.h | 109

[dpdk-dev] [PATCH v2 05/13] net/cnxk: enable TSO processing in vector Tx

2021-06-19 Thread pbhagavatula
From: Pavan Nikhilesh Enable TSO offload in vector Tx burst function. Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn10k_tx.c | 2 +- drivers/net/cnxk/cn10k_tx.h | 97 + drivers/net/cnxk/cn10k_tx_vec.c | 5 +- drivers/net/cnxk/cn9k_tx.c |

[dpdk-dev] [PATCH v2 06/13] net/cnxk: add multi seg Tx vector routine

2021-06-19 Thread pbhagavatula
From: Pavan Nikhilesh Add multi segment Tx vector routine. Signed-off-by: Pavan Nikhilesh --- drivers/net/cnxk/cn10k_tx.c | 20 +- drivers/net/cnxk/cn10k_tx.h | 388 +-- drivers/net/cnxk/cn10k_tx_vec_mseg.c | 24 ++ drivers/net/cnxk/cn9k_tx.c

[dpdk-dev] [PATCH v2 07/13] event/cnxk: add Rx adapter support

2021-06-19 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Rx adapter. Resize cn10k workslot fastpath structure to fit in 64B cacheline size. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst| 28 doc/guides/rel_notes/release_21_08.rst | 5 + drivers/common/cnxk/roc_n

[dpdk-dev] [PATCH v2 08/13] event/cnxk: add Rx adapter fastpath ops

2021-06-19 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Rx adapter fastpath operations. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 136 +++- drivers/event/cnxk/cn10k_worker.c | 54 drivers/event/cnxk/cn10k_worker.h | 97 +-

[dpdk-dev] [PATCH v2 09/13] event/cnxk: add Tx adapter support

2021-06-19 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Tx adapter. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst| 4 +- doc/guides/rel_notes/release_21_08.rst | 6 +- drivers/event/cnxk/cn10k_eventdev.c | 91 ++ drivers/event/cnxk/cn9k_eventd

[dpdk-dev] [PATCH v2 10/13] event/cnxk: add Tx adapter fastpath ops

2021-06-19 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Tx adapter fastpath operations. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 38 drivers/event/cnxk/cn10k_worker.h | 67 ++ drivers/event/cnxk/cn10k_worker_tx_enq.c | 23

[dpdk-dev] [PATCH v2 11/13] event/cnxk: add Rx adapter vector support

2021-06-19 Thread pbhagavatula
From: Pavan Nikhilesh Add event vector support for cnxk event Rx adapter, add control path APIs to get vector limits and ability to configure event vectorization on a given Rx queue. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst| 2 + drivers/event/cnxk/cn10k_e

[dpdk-dev] [PATCH v2 12/13] event/cnxk: add Rx event vector fastpath

2021-06-19 Thread pbhagavatula
From: Pavan Nikhilesh Add Rx event vector fastpath to convert HW defined metadata into rte_mbuf and rte_event_vector. Signed-off-by: Pavan Nikhilesh --- doc/guides/rel_notes/release_21_08.rst | 1 + drivers/event/cnxk/cn10k_worker.h | 56 +++ drivers/net/cnxk/cn10k_rx.h

[dpdk-dev] [PATCH v2 13/13] event/cnxk: add Tx event vector fastpath

2021-06-19 Thread pbhagavatula
From: Pavan Nikhilesh Add Tx event vector fastpath, integrate event vector Tx routine into Tx burst. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst | 1 + doc/guides/rel_notes/release_21_08.rst | 2 +- drivers/common/cnxk/roc_sso.h | 23 ++ drivers/

[dpdk-dev] [PATCH v2] common/mlx5: add provider query port support to glue library

2021-06-19 Thread Viacheslav Ovsiienko
The rdma-core mlx5 provider introduced the port attributes query API since version v35.0 - the mlx5dv_query_port routine. In order to support this change in the rdma-core the conditional compilation flag HAVE_MLX5DV_DR_DEVX_PORT_V35 is introduced by the this patch. In the OFED rdma-core version th

[dpdk-dev] [PATCH] common/mlx5: fix Netlink port name attribute padding

2021-06-19 Thread Viacheslav Ovsiienko
On some kernels the string attributes within Netlink reply messages might be not padded with zeroes (in cases when string length is aligned with 4-byte boundary). This caused wrong physical port names recognition and mlx5 PMD load failures. Fixes: 30a86157f6d5 ("net/mlx5: support PF representor")

[dpdk-dev] [PATCH] app/testpmd: fix offloads for the newly attached port

2021-06-19 Thread Viacheslav Ovsiienko
For the newly attached ports (with "port attach" command) the default offloads settings, configured from application command line, were not applied, causing port start failure following the attach. For example, if scattering offload was configured in command line and rxpkts was configured for multi

Re: [dpdk-dev] [PATCH] common/mlx5: fix Netlink port name attribute padding

2021-06-19 Thread Matan Azrad
From: Slava Ovsiienko > On some kernels the string attributes within Netlink reply messages might be > not padded with zeroes (in cases when string length is aligned with 4-byte > boundary). > This caused wrong physical port names recognition and > mlx5 PMD load failures. > > Fixes: 30a86157f6d

[dpdk-dev] [PATCH] net/mlx5: fix TSO multi-segment inline length

2021-06-19 Thread Viacheslav Ovsiienko
The inline data length for TSO ethernet segment should be calculated from the TSO header instead of the inline size configured by txq_inline_min devarg or reported by the NIC. It is imposed by the nature of TSO offload - inline header is being duplicated to every output TCP packet. Fixes: cacb44a0