[PATCH] buildtools: fix avx512 check for Python 3.5

2022-01-03 Thread Lance Richardson
Python 3.5 subprocess.run() does not have a capture_output parameter (it is present only in 3.7 and up). Capture output by using subprocess.PIPE for stdout instead. Fixes: bb9cd91095b3 ("buildtools: make AVX512 check portable") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson ---

Re: Using IOAT PMD

2021-12-16 Thread Lance Richardson
On Thu, Dec 16, 2021 at 12:33 PM Bruce Richardson wrote: > > On Thu, Dec 16, 2021 at 11:34:25AM -0500, Lance Richardson wrote: > > On Thu, Dec 16, 2021 at 11:20 AM Bruce Richardson > > wrote: > > > > > > On Thu, Dec 16, 2021 at 11:04:54AM -0500, Lanc

Re: Using IOAT PMD

2021-12-16 Thread Lance Richardson
On Thu, Dec 16, 2021 at 11:20 AM Bruce Richardson wrote: > > On Thu, Dec 16, 2021 at 11:04:54AM -0500, Lance Richardson wrote: > > Hi Bruce, > > > > I've been looking into using the IOAT PMD, initially with dma_autotest > > and the dpdk-dma example application.

Using IOAT PMD

2021-12-16 Thread Lance Richardson
Hi Bruce, I've been looking into using the IOAT PMD, initially with dma_autotest and the dpdk-dma example application. These seem to work fine on SKX with the current main branch, but when I try the same procedure on ICX (binding all 8 devices to vfio-pci in both cases), I get the following output

[PATCH] net/bnxt: fix xstats get names implementation

2021-11-30 Thread Lance Richardson
() in accordance with this requirement. Fixes: bfb9c2260be2 ("net/bnxt: support xstats get/reset") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson --- drivers/net/bnxt/bnxt_stats.c | 93 +-- 1 file changed, 46 insertions(+), 47 deletions(-) diff --gi

[PATCH 2/2] net/bnxt: remove software prefetches from AVX2 Rx path

2021-11-15 Thread Lance Richardson
.@dpdk.org Signed-off-by: Lance Richardson --- drivers/net/bnxt/bnxt_rxtx_vec_avx2.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/net/bnxt/bnxt_rxtx_vec_avx2.c b/drivers/net/bnxt/bnxt_rxtx_vec_avx2.c index 54e3af22ac..34bd22edf0 100644 --- a/drivers/net/bnxt/bnxt_rxt

[PATCH 1/2] net/bnxt: avoid unnecessary work in AVX2 Rx path

2021-11-15 Thread Lance Richardson
roved by about 3-4% if we ensure that at least one packet can be received before entering the inner loop. Fixes: c4e4c18963b0 ("net/bnxt: add AVX2 RX/Tx") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson --- drivers/net/bnxt/bnxt_rxtx_vec_avx2.c | 4 1 file changed, 4 insertions

[PATCH 0/2] net/bnxt: minor performance fixes for AVX2 Rx

2021-11-15 Thread Lance Richardson
This series contains two minor performance fixes for the bnxt AVX2 vecgtorized burst receive function. Lance Richardson (2): net/bnxt: avoid unnecessary work in AVX2 Rx path net/bnxt: remove software prefetches from AVX2 Rx path drivers/net/bnxt/bnxt_rxtx_vec_avx2.c | 16 +++- 1

Re: [dpdk-dev] Build failures in 21.11-rc2

2021-11-09 Thread Lance Richardson
Based on the CI build logs, the target architecture was Skylake, which supports AVX512 but doesn't support GFNI. On Tue, Nov 9, 2021 at 11:15 AM Thomas Monjalon wrote: > > 09/11/2021 17:12, Lance Richardson: > > Do the machines used for the CentOS 8 CI builds support AVX512? >

Re: [dpdk-dev] Build failures in 21.11-rc2

2021-11-09 Thread Lance Richardson
1 at 4:53 PM Lance Richardson > > wrote: > > > > > > 21.11-rc2 builds are failing on CentOS 8.4, apparently because > > > the intrinsic _mm512_set_epi8() is not defined in the GCC > > > headers (see example below). > > > > Thanks for reporti

[dpdk-dev] [PATCH v2] net: fix checksum API documentation

2021-09-21 Thread Lance Richardson
Minor corrections and improvements to documentation for checksum APIs. Fixes: 6006818cfb26 ("net: new checksum functions") Fixes: 45a08ef55e44 ("net: introduce functions to verify L4 checksums") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson --- v2: - Updates for r

Re: [dpdk-dev] [dpdk-stable] [PATCH] net: fix checksum API documentation

2021-09-21 Thread Lance Richardson
On Tue, Sep 21, 2021 at 6:11 AM Morten Brørup wrote: > Ferruh, the description of the return value is technically correct; it > mentions the IP packet, not the IP header. > So this change is a clarification only. > > However, I agree that the same clarification would also benefit > 'rte_ipv4_ud

[dpdk-dev] [PATCH] net: fix checksum API documentation

2021-09-16 Thread Lance Richardson
Minor corrections and improvements to documentation for checksum APIs. Fixes: 6006818cfb26 ("net: new checksum functions") Fixes: 45a08ef55e44 ("net: introduce functions to verify L4 checksums") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson --- lib/net/rte_ip.h

[dpdk-dev] [PATCH] net/bnxt: fix Rx queue startup state

2021-09-14 Thread Lance Richardson
Since the addition of support for runtime queue setup, receive queues that are started by default no longer have the correct state. Fix this by setting the state when a port is started. Fixes: 0105ea1296c9 ("net/bnxt: support runtime queue setup") Signed-off-by: Lance Richardson R

Re: [dpdk-dev] DPDK Max Mbuf Allocation

2021-09-13 Thread Lance Richardson
On Mon, Sep 13, 2021 at 11:51 AM Stephen Hemminger wrote: > > On Mon, 13 Sep 2021 16:43:18 +0100 > Ferruh Yigit wrote: > > > On 9/13/2021 5:56 AM, Kamaraj P wrote: > > > Hello All, > > > > > > Would like to understand or if there are any guidelines to allocate the > > > max > > > no of mbuf per

Re: [dpdk-dev] RHEL 7 support

2021-07-13 Thread Lance Richardson
On Tue, Jul 13, 2021 at 5:48 AM Kevin Traynor wrote: > > On 12/07/2021 18:34, Honnappa Nagarahalli wrote: > > > > > >> > >> Hi, > >> > >> I would like to open a discussion about RHEL 7 support in DPDK. > >> How long do we want to support it in new DPDK versions? > >> Can we drop RHEL 7 support st

[dpdk-dev] [PATCH v2] net/bnxt: fix missing barriers in completion handling

2021-07-09 Thread Lance Richardson
s: 6eb3cc2294fd ("net/bnxt: add initial Tx code") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Ajit Khaparde --- v2: * Corrected name of the first parameter to bnxt_cpr_cmp_valid() in comments ('cmp' to 'cmpl'). drivers/net/bnxt/bnxt_cpr.h

Re: [dpdk-dev] [PATCH] net/bnxt: fix build failure

2021-07-09 Thread Lance Richardson
On Fri, Jul 9, 2021 at 4:48 AM Thomas Monjalon wrote: > > 09/07/2021 00:49, Ajit Khaparde: > > Fix build failures because of uninitialized variable usage. > > You should add the error log here. > You don't mention the condition of failure. > Nobody reproduced a failure so far. Hi Thomas, This ad

Re: [dpdk-dev] [PATCH] net/bnxt: fix missing barriers in completion handling

2021-07-09 Thread Lance Richardson
On Fri, Jul 9, 2021 at 2:00 AM Ruifeng Wang wrote: > > > +/** > > + * Check validity of a completion ring entry. If the entry is valid, > > include a > > + * C11 __ATOMIC_ACQUIRE fence to ensure that subsequent loads of fields > > in the > > + * completion are not hoisted by the compiler or by t

[dpdk-dev] [PATCH] net/bnxt: fix missing barriers in completion handling

2021-07-08 Thread Lance Richardson
s: 6eb3cc2294fd ("net/bnxt: add initial Tx code") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_cpr.h | 36 --- drivers/net/bnxt/bnxt_ethdev.c| 16 ++-- drivers/net/bnxt/

Re: [dpdk-dev] [PATCH v3 2/2] net/i40e: replace SMP barrier with thread fence

2021-07-08 Thread Lance Richardson
On Thu, Jul 8, 2021 at 8:09 AM Zhang, Qi Z wrote: > > > > > -Original Message- > > From: Joyce Kong > > Sent: Tuesday, July 6, 2021 2:54 PM > > To: Xing, Beilei ; Zhang, Qi Z > > ; > > ruifeng.w...@arm.com; honnappa.nagaraha...@arm.com; Richardson, Bruce > > ; Zhang, Helin > > Cc: dev@d

Re: [dpdk-dev] [dpdk-stable] [PATCH] app/test: fix IPv6 header initialization

2021-06-21 Thread Lance Richardson
On Tue, May 11, 2021 at 10:42 AM Lance Richardson wrote: > > On Tue, May 11, 2021 at 10:31 AM David Marchand > wrote: > > > > On Fri, Mar 26, 2021 at 5:37 PM Lance Richardson > > wrote: > > > > > > Fix two issues found when writing PMD unit tes

[dpdk-dev] [PATCH 4/4] net/bnxt: remove dead code

2021-06-16 Thread Lance Richardson
Code related to maintaining completion ring "valid" state is no longer needed, remove it. Signed-off-by: Lance Richardson Reviewed-by: Ajit Khaparde Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_cpr.h | 17 - drivers/net/bnxt/bnxt_hwrm.c

[dpdk-dev] [PATCH 0/4] net/bnxt: various fixes

2021-06-16 Thread Lance Richardson
Several fixes for the bnxt PMD: - Fix NUMA-aware memory allocations. - Fix transmit descriptor status implementation. - Fix handling of transmit completions in non-vector path. - Remove dead code. Lance Richardson (4): net/bnxt: fix ring and context memory allocation net/bnxt: fix

[dpdk-dev] [PATCH 3/4] net/bnxt: fix scalar Tx completion handling

2021-06-16 Thread Lance Richardson
Preserve the raw (unmasked) transmit completion ring consumer index. Remove cache prefetches that have no measurable performance benefit. Fixes: c7de4195cc4c ("net/bnxt: modify ring index logic") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Ajit Khaparde --- d

[dpdk-dev] [PATCH 2/4] net/bnxt: fix tx desc status implementation

2021-06-16 Thread Lance Richardson
("net/bnxt: support Tx batching") Fixes: 478ed3bb7b9d "(net/bnxt: support Tx descriptor status") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 54 +++--- 1 file changed, 31 inserti

[dpdk-dev] [PATCH 1/4] net/bnxt: fix ring and context memory allocation

2021-06-16 Thread Lance Richardson
ot;) Fixes: 9738793f28ec ("net/bnxt: add VNIC functions and structs") Fixes: f8168ca0e690 ("net/bnxt: support thor controller") Fixes: bd0a14c99f65 ("net/bnxt: use dedicated CPR for async events") Fixes: 683e5cf79249 ("net/bnxt: use common NQ ring") Cc: sta...@dpd

Re: [dpdk-dev] [PATCH 3/3] net/bnxt: add AVX2 vector PMD

2021-05-26 Thread Lance Richardson
On Mon, May 24, 2021 at 3:00 PM Lance Richardson wrote: > > Implement AVX2 vector PMD. > There are CI test failures for this patch series that appear be unrelated, are these known/expected failures? >From http://mails.dpdk.org/archives/test-report/2021-May/196470.html Ubun

[dpdk-dev] [PATCH 1/3] net/bnxt: refactor HW ptype mapping table

2021-05-24 Thread Lance Richardson
-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt_rxr.c | 34 +++-- drivers/net/bnxt/bnxt_rxr.h | 43 ++- drivers/net/bnxt/bnxt_rxtx_vec_neon.c | 19 drivers/net/bnxt/bnxt_rxtx_vec_sse.c

[dpdk-dev] [PATCH 3/3] net/bnxt: add AVX2 vector PMD

2021-05-24 Thread Lance Richardson
Implement AVX2 vector PMD. Signed-off-by: Lance Richardson Reviewed-by: Ajit Khaparde --- doc/guides/nics/bnxt.rst | 57 ++- drivers/net/bnxt/bnxt_ethdev.c| 119 +++-- drivers/net/bnxt/bnxt_rxr.c | 4 +- drivers/net/bnxt/bnxt_rxr.h | 11 +- drivers

[dpdk-dev] [PATCH 2/3] net/bnxt: fix Rx burst size constraint

2021-05-24 Thread Lance Richardson
mode") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt_rxtx_vec_neon.c | 29 +-- drivers/net/bnxt/bnxt_rxtx_vec_sse.c | 29 +-- 2 files changed, 46 insertions(+), 12 deletions(-) diff --gi

[dpdk-dev] [PATCH 0/3] net/bnxt: vector mode patches

2021-05-24 Thread Lance Richardson
Vector mode updates for the bnxt PMD. Lance Richardson (3): net/bnxt: refactor HW ptype mapping table net/bnxt: fix Rx burst size constraint net/bnxt: add AVX2 vector PMD doc/guides/nics/bnxt.rst | 57 ++- drivers/net/bnxt/bnxt_ethdev.c| 119 +++-- drivers/net/bnxt

Re: [dpdk-dev] [PATCH v4] eal: fix memory mapping for 32-bit targets

2021-05-11 Thread Lance Richardson
> v4: Identical to v1, with now included in rte_eal_paging.h > to (hopefully) make off_t available for Windows builds. With this version, using off_t is no longer a problem, however based on the new compilation error it appears that for Windows, off_t is a 32-bit type while size_t is a 64-b

[dpdk-dev] [PATCH v4] eal: fix memory mapping for 32-bit targets

2021-05-11 Thread Lance Richardson
attempting to run 32-bit Linux dpdk-testpmd using VFIO driver: EAL: pci_map_resource(): cannot map resource(63, 0xc001, \ 0x20, 0x200): Invalid argument ((nil)) Fixes: c4b89ecb64ea ("eal: introduce memory management wrappers") Cc: sta...@dpdk.org Signed-off-by: Lance

Re: [dpdk-dev] [dpdk-stable] [PATCH] app/test: fix IPv6 header initialization

2021-05-11 Thread Lance Richardson
On Tue, May 11, 2021 at 10:31 AM David Marchand wrote: > > On Fri, Mar 26, 2021 at 5:37 PM Lance Richardson > wrote: > > > > Fix two issues found when writing PMD unit tests for HW ptype and > > L4 checksum offload: > > Would those unit tests be interesting to ot

Re: [dpdk-dev] [PATCH v3] eal: fix memory mapping for 32-bit targets

2021-05-11 Thread Lance Richardson
On Tue, May 11, 2021 at 4:18 AM Thomas Monjalon wrote: > > 08/05/2021 16:27, Lance Richardson: > > For 32-bit targets, size_t is normally a 32-bit type and > > does not have sufficient range to represent 64-bit offsets > > that can are needed when mapping PCI addresses.

Re: [dpdk-dev] [PATCH v3] eal: fix memory mapping for 32-bit targets

2021-05-10 Thread Lance Richardson
On Mon, May 10, 2021 at 11:55 AM Thomas Monjalon wrote: > 10/05/2021 17:31, Burakov, Anatoly: > > On 10-May-21 1:42 PM, Thomas Monjalon wrote: > > > +Cc Anatoly > > > > > > 08/05/2021 16:27, Lance Richardson: > > >> For 32-bit targets, size_t is

[dpdk-dev] [PATCH v3] eal: fix memory mapping for 32-bit targets

2021-05-08 Thread Lance Richardson
map resource(63, 0xc001, \ 0x20, 0x200): Invalid argument ((nil)) Fixes: c4b89ecb64ea ("eal: introduce memory management wrappers") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson --- v3: Use PRIx64 instead of llx to format offset in log message. v2: Use uint64_t

[dpdk-dev] [PATCH] eal: fix memory mapping for 32-bit targets

2021-05-08 Thread Lance Richardson
map resource(63, 0xc001, \ 0x20, 0x200): Invalid argument ((nil)) Fixes: c4b89ecb64ea ("eal: introduce memory management wrappers") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson --- v3: Use PRIx64 instead of llx to format offset in log message. v2: Use uint64_t

Re: [dpdk-dev] [PATCH v2] eal: fix memory mapping for 32-bit targets

2021-05-07 Thread Lance Richardson
On Fri, May 7, 2021 at 4:51 PM Dmitry Kozlyuk wrote: > > 2021-05-07 15:06 (UTC-0400), Lance Richardson: > [...] > > diff --git a/lib/eal/unix/eal_unix_memory.c b/lib/eal/unix/eal_unix_memory.c > > index ec7156df96..41a94a7511 100644 > > --- a/lib/eal/unix/eal_unix_memo

[dpdk-dev] [PATCH v2] eal: fix memory mapping for 32-bit targets

2021-05-07 Thread Lance Richardson
map resource(63, 0xc001, \ 0x20, 0x200): Invalid argument ((nil)) Fixes: c4b89ecb64ea ("eal: introduce memory management wrappers") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson --- v2: Use uint64_t instead of off_t (off_t is unknown to Windows). lib/e

Re: [dpdk-dev] [PATCH] eal: fix memory mapping for 32-bit targets

2021-05-07 Thread Lance Richardson
> Windows compilation is failing in CI, apparently Windows doesn't > understand "off_t". > > Should we add an "rte_off_t" definition for non-POSIX portability? On second thought, it's probably better to simply use uint64_t.

Re: [dpdk-dev] [PATCH] eal: fix memory mapping for 32-bit targets

2021-05-07 Thread Lance Richardson
On Fri, May 7, 2021 at 2:10 PM Lance Richardson wrote: > > For 32-bit targets, size_t is normally a 32-bit type and > does not have sufficient range to represent 64-bit offsets > that can are needed when mapping PCI addresses. Use off_t > instead, which is usually a 64-bit type whe

[dpdk-dev] [PATCH] eal: fix memory mapping for 32-bit targets

2021-05-07 Thread Lance Richardson
attempting to run 32-bit Linux dpdk-testpmd using VFIO driver: EAL: pci_map_resource(): cannot map resource(63, 0xc001, \ 0x20, 0x200): Invalid argument ((nil)) Fixes: c4b89ecb64ea ("eal: introduce memory management wrappers") Cc: sta...@dpdk.org Signed-off-by: Lance

Re: [dpdk-dev] [PATCH] net/bnxt: fix initialization of filter struct

2021-04-29 Thread Lance Richardson
On Thu, Apr 29, 2021 at 9:43 AM Lance Richardson wrote: > > On Wed, Apr 28, 2021 at 6:04 PM Lance Richardson > wrote: > > > > Initialize filter structure to all zeroes on allocation. > > > > Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter ops"

Re: [dpdk-dev] [PATCH] net/bnxt: fix initialization of filter struct

2021-04-29 Thread Lance Richardson
On Wed, Apr 28, 2021 at 6:04 PM Lance Richardson wrote: > > Initialize filter structure to all zeroes on allocation. > > Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter ops") > Cc: sta...@dpdk.org > Signed-off-by: Lance Richardson > Reviewed-by: Ajit Kumar Khap

Re: [dpdk-dev] [PATCH v2 1/4] mbuf: mark old offload flag as deprecated

2021-04-29 Thread Lance Richardson
ted. > * This flag has been renamed, use PKT_RX_OUTER_IP_CKSUM_BAD instead. > */ > -#define PKT_RX_EIP_CKSUM_BAD PKT_RX_OUTER_IP_CKSUM_BAD > +#define PKT_RX_EIP_CKSUM_BAD \ > + RTE_DEPRECATED(PKT_RX_EIP_CKSUM_BAD) PKT_RX_OUTER_IP_CKSUM_BAD > > /** > * A vlan has been stripped by the hardware and its tci is saved in > -- > 2.23.0 > Acked-by: Lance Richardson

[dpdk-dev] [PATCH] net/bnxt: fix dynamic VNIC count

2021-04-28 Thread Lance Richardson
net/bnxt: allow flow creation when RSS is enabled") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt.h | 2 +- drivers/net/bnxt/bnxt_flow.c | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnxt/

[dpdk-dev] [PATCH] net/bnxt: fix initialization of filter struct

2021-04-28 Thread Lance Richardson
Initialize filter structure to all zeroes on allocation. Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter ops") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt_filter.c | 1 + 1 file changed, 1 insertion(+) diff --git

[dpdk-dev] [PATCH 1/1] app/test: fix TCP header initialization

2021-03-30 Thread Lance Richardson
Initialize TCP data offset field with TCP header length, this field is used to derive L4 header length and by hardware to validate a TCP header. Fixes: 41f72ec94074 ("test: add packet burst generator functions") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson ---

[dpdk-dev] [PATCH] app/test: fix IPv6 header initialization

2021-03-26 Thread Lance Richardson
initialized using host byte order, which (among other things) resulted in incorrect L4 checksum computation. The payload_len field is now set using network (big-endian) byte order. Fixes: 92073ef961ee ("bond: unit tests") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson

Re: [dpdk-dev] Questions about keeping CRC

2021-03-19 Thread Lance Richardson
On Fri, Mar 19, 2021 at 12:07 PM Stephen Hemminger wrote: > > On Fri, 19 Mar 2021 20:13:20 +0800 > "Min Hu (Connor)" wrote: > > > Hi, all, > > DPDK has introduced one offload: DEV_RX_OFFLOAD_KEEP_CRC. It means > > that > > the device has the ablility of keeping CRC(four bytes at the end of

[dpdk-dev] [PATCH 1/1] net/bnxt: fix Rx buffer posting

2021-03-18 Thread Lance Richardson
ue size without aggregation ring") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt_rxr.c | 3 --- drivers/net/bnxt/bnxt_rxr.h | 2 -- 2 files changed, 5 deletions(-) diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rx

[dpdk-dev] [PATCH 1/1] net/bnxt: fix handling of null flow mask

2021-03-18 Thread Lance Richardson
When the mask field of an rte_flow pattern item is NULL, the default mask for that item type should be used. Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter ops") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson --- drivers/net/bnxt/bnxt_f

[dpdk-dev] [PATCH 1/1] net/bnxt: fix transmit length hint threshold

2021-03-18 Thread Lance Richardson
Use correct threshold when selecting "greater than or equal to 2K" length hint. Fixes: 6eb3cc2294fd ("net/bnxt: add initial Tx code") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_

Re: [dpdk-dev] [PATCH v4 2/4] eal: add asprintf() internal wrapper

2021-03-06 Thread Lance Richardson
On Fri, Mar 5, 2021 at 7:05 PM Dmitry Kozlyuk wrote: > > POSIX asprintf() is unavailable on Windows. AFAIK asprintf() is not a POSIX API, it is a GNU extension that has also been implemented in some BSDs. > Add eal_asprintf() wrapper for EAL internal use. > On Windows it's a function, on Unix it

[dpdk-dev] [PATCH] net/bnxt: optimizations for Tx completion handling

2021-03-06 Thread Lance Richardson
Avoid copying mbuf pointers to separate array for bulk mbuf free when handling transmit completions for vector mode transmit. Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 4 +- drivers/net/bnxt/bnxt_ring.c| 2

Re: [dpdk-dev] [PATCH] net/bnxt: fix Rx descriptor status

2021-03-02 Thread Lance Richardson
On Tue, Mar 2, 2021 at 9:29 AM Lance Richardson wrote: > > Fix a number of issues in the bnxt receive descriptor status > function, including: >- Provide status of receive descriptor instead of completion > descriptor. >- Remove invalid comparison of raw ring inde

[dpdk-dev] [PATCH] net/bnxt: don't set mbuf pointers to null in vector PMD

2021-03-02 Thread Lance Richardson
Remove code for setting consumed mbuf pointers to NULL from the vector receive functions as a minor performance optimization. Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_rxq.c | 10 ++ drivers/net/bnxt

[dpdk-dev] [PATCH] net/bnxt: fix Rx descriptor status

2021-03-02 Thread Lance Richardson
ring index. - Correct misuse of completion ring index for mbuf ring (the two rings have different sizes). Fixes: 0fe613bb87b2 ("net/bnxt: support Rx descriptor status") Signed-off-by: Lance Richardson Cc: sta...@dpdk.org Reviewed-by: Andy Gospodarek Reviewed-by: Ajit Kuma

[dpdk-dev] [PATCH v2] mbuf: rename outer ip checksum macro

2021-02-25 Thread Lance Richardson
Rename PKT_RX_EIP_CKSUM_BAD to PKT_RX_OUTER_IP_CKSUM_BAD and deprecate the original name. The new name is better aligned with existing PKT_RX_OUTER_* flags, which should help reduce confusion about its use. Suggested-by: Ferruh Yigit Signed-off-by: Lance Richardson --- v2: - Added deprecation

[dpdk-dev] [PATCH] mbuf: rename outer ip checksum macro

2021-02-24 Thread Lance Richardson
Rename PKT_RX_EIP_CKSUM_BAD to PKT_RX_OUTER_IP_CKSUM_BAD and deprecate the original name. The new name is better aligned with existing PKT_RX_OUTER_* flags, which should help reduce confusion about its purpose. Suggested-by: Ferruh Yigit Signed-off-by: Lance Richardson --- app/test-pmd

Re: [dpdk-dev] [PATCH 21.05] app/testpmd: count outer IP checksum errors

2021-02-24 Thread Lance Richardson
> Lance, can you spare some time to make the above mentioned patch? Sure. Are you looking for something like the changes below, or also including a search and replace of the deprecated macro name with the new one? - /** External IP header checksum error. */ +/** + * Deprecated. + * This flag has

[dpdk-dev] [PATCH] net/bnxt: fix Rx queue count implementation

2021-02-18 Thread Lance Richardson
completion types. Fixes: 34c0ba839bae ("net/bnxt: fix Rx queue count") Signed-off-by: Lance Richardson Reviewed-by: Somnath Kotur Cc: sta...@dpdk.org --- drivers/net/bnxt/bnxt_cpr.h| 4 drivers/net/bnxt/bnxt_ethdev.c | 38 +- drivers/net/bnxt/bnxt_rxr

[dpdk-dev] [PATCH 21.05 v3] app/testpmd: display rxq desc used count

2021-02-12 Thread Lance Richardson
Add support for displaying the count of used (filled by hardware but not yet processed by the driver) descriptors on a receive queue in order to allow the rte_eth_dev rx_queue_count() API to be exercised and tested. Signed-off-by: Lance Richardson --- v3: - Made terminology more consistent

Re: [dpdk-dev] [PATCH 21.05] app/testpmd: support show Rx queue count

2021-02-12 Thread Lance Richardson
On Fri, Feb 12, 2021 at 6:51 AM Ferruh Yigit wrote: > > On 2/11/2021 7:44 PM, Lance Richardson wrote: > > Add support for querying receive queue count in order to allow > > the rte_eth_dev rx_queue_count() API to be exercised and tested. > > > > +1 to adding thi

[dpdk-dev] [PATCH 21.05 v2] app/testpmd: support show Rx queue desc count

2021-02-12 Thread Lance Richardson
Add support for querying the count of ready descriptors on a receive queue in order to allow the rte_eth_dev rx_queue_count() API to be exercised and tested. Signed-off-by: Lance Richardson --- app/test-pmd/cmdline.c | 83 + doc/guides/testpmd_app_ug

[dpdk-dev] [PATCH 21.05] app/testpmd: support show Rx queue count

2021-02-11 Thread Lance Richardson
Add support for querying receive queue count in order to allow the rte_eth_dev rx_queue_count() API to be exercised and tested. Signed-off-by: Lance Richardson --- app/test-pmd/cmdline.c | 65 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 6 ++ 2

Re: [dpdk-dev] [PATCH] app/testpmd: remove duplicated offload display

2021-02-05 Thread Lance Richardson
ps by > time as new offloads added. > > Signed-off-by: Ferruh Yigit > --- Acked-by: Lance Richardson

[dpdk-dev] [PATCH 21.05] app/testpmd: count outer IP checksum errors

2021-01-29 Thread Lance Richardson
TX-dropped: 0 TX-total: 0 Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde Reviewed-by: Kalesh Anakkur Purayil --- app/test-pmd/csumonly.c | 5 + app/test-pmd/testpmd.c | 11 ++- app/test-pmd/testpmd.h | 2 ++ 3 files changed, 17 insertions(+), 1

[dpdk-dev] [PATCH v2] net/bnxt: fix cp ring size calculation

2021-01-29 Thread Lance Richardson
("net/bnxt: reduce CQ queue size without aggregation ring") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde --- v2: Fixed conflict resolution mistake (two missing hunks). drivers/net/bnxt/bnxt_ethdev.c | 6 +- drivers/net/bnxt/bnxt_rin

Re: [dpdk-dev] [PATCH] net/bnxt: fix cp ring size calculation

2021-01-29 Thread Lance Richardson
On Fri, Jan 29, 2021 at 12:57 PM Lance Richardson wrote: > > The size of the receive completion ring should be recalculated > when MTU is increased to a size that requires scattered receive > or when LRO is enabled. Move logic for this calculation from > the ring configuration pat

[dpdk-dev] [PATCH] net/bnxt: fix cp ring size calculation

2021-01-29 Thread Lance Richardson
("net/bnxt: reduce CQ queue size without aggregation ring") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 6 +- drivers/net/bnxt/bnxt_rxr.c| 15 +-- 2 files changed, 6 insertions(+), 15

Re: [dpdk-dev] [PATCH v5] app/testpmd: fix setting maximum packet length

2021-01-28 Thread Lance Richardson
On Tue, Jan 26, 2021 at 6:01 AM Ferruh Yigit wrote: > > On 1/26/2021 3:45 AM, Lance Richardson wrote: > > On Mon, Jan 25, 2021 at 7:44 PM Ferruh Yigit wrote: > >> > >>>> + if (rx_offloads != port->dev_conf.rxmode.offloads

Re: [dpdk-dev] [PATCH v5] app/testpmd: fix setting maximum packet length

2021-01-25 Thread Lance Richardson
On Mon, Jan 25, 2021 at 7:44 PM Ferruh Yigit wrote: > > >> + if (rx_offloads != port->dev_conf.rxmode.offloads) { > >> + uint16_t qid; > >> + > >> + port->dev_conf.rxmode.offloads = rx_offloads; > >> + > >> + /* Apply JUMBO_FRAME offload configuratio

Re: [dpdk-dev] [PATCH v5] app/testpmd: fix setting maximum packet length

2021-01-25 Thread Lance Richardson
Acked-by: Lance Richardson Thanks, Lance On Mon, Jan 25, 2021 at 7:44 PM Ferruh Yigit wrote: > > On 1/25/2021 7:41 PM, Lance Richardson wrote: > > On Mon, Jan 25, 2021 at 1:15 PM Ferruh Yigit wrote: > >> > >> From: Steve Yang > >> > >> &qu

Re: [dpdk-dev] [PATCH v5] app/testpmd: fix setting maximum packet length

2021-01-25 Thread Lance Richardson
On Mon, Jan 25, 2021 at 1:15 PM Ferruh Yigit wrote: > > From: Steve Yang > > "port config all max-pkt-len" command fails because it doesn't set the > 'DEV_RX_OFFLOAD_JUMBO_FRAME' offload flag properly. > > Commit in the fixes line moved the 'DEV_RX_OFFLOAD_JUMBO_FRAME' offload > flag update from

Re: [dpdk-dev] [PATCH v4 2/2] app/testpmd: fix max-pkt-len option invalid

2021-01-25 Thread Lance Richardson
On Mon, Jan 25, 2021 at 3:35 AM Steve Yang wrote: > > Moved the setting of 'DEV_RX_OFFLOAD_JUMBO_FRAME' from > 'cmd_config_max_pkt_len_parsed()' to 'init_config()' caused fail the case > where 'max_rx_pkt_len' is changed from the command line via > "port config all max-pkt-len". > > The 'init_conf

[dpdk-dev] [PATCH] net/bnxt: fix null termination of receive mbuf chain

2021-01-22 Thread Lance Richardson
The last mbuf in a multi-segment packet needs to be NULL-terminated. Fixes: 0958d8b6435d ("net/bnxt: support LRO") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Somnath Kotur Reviewed-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt_rxr.c | 1 + 1 file changed, 1

Re: [dpdk-dev] [PATCH v4 02/22] app/testpmd: fix max rx packet length for VLAN packets

2021-01-22 Thread Lance Richardson
On Thu, Jan 21, 2021 at 10:27 AM Lance Richardson wrote: > > On Mon, Jan 18, 2021 at 2:08 AM Steve Yang wrote: > > > > When the max rx packet length is smaller than the sum of mtu size and > > ether overhead size, it should be enlarged, otherwise the VLAN pac

Re: [dpdk-dev] [PATCH v4 02/22] app/testpmd: fix max rx packet length for VLAN packets

2021-01-21 Thread Lance Richardson
On Mon, Jan 18, 2021 at 2:08 AM Steve Yang wrote: > > When the max rx packet length is smaller than the sum of mtu size and > ether overhead size, it should be enlarged, otherwise the VLAN packets > will be dropped. > > Removed the rx_offloads assignment for jumbo frame during command line > parsi

[dpdk-dev] [PATCH] net/bnxt: fix ptype index calculation

2021-01-18 Thread Lance Richardson
Fix mask to include all four bits of hardware packet type field. Fixes: 97b1db288dd0 ("net/bnxt: use table based packet type translation") Cc: sta...@dpdk.org Signed-off-by: Lance Richardson --- drivers/net/bnxt/bnxt_rxr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

Re: [dpdk-dev] [PATCH v12 06/11] ethdev: add simple power management API

2021-01-12 Thread Lance Richardson
On Thu, Dec 17, 2020 at 9:08 AM Anatoly Burakov wrote: > > From: Liang Ma > > Add a simple API to allow getting the monitor conditions for > power-optimized monitoring of the RX queues from the PMD, as well as > release notes information. > > Signed-off-by: Liang Ma > Signed-off-by: Anatoly Bura

Re: [dpdk-dev] [PATCH] net/bnxt: limit per-poll Rx representor pkts

2021-01-06 Thread Lance Richardson
On Wed, Jan 6, 2021 at 4:27 AM Ferruh Yigit wrote: > > On 12/14/2020 6:53 PM, Lance Richardson wrote: > > Limit number of representor packets transferred per poll > > to requested burst size. > > > > Hi Lance, > > Can you please describe the impact of the chan

[dpdk-dev] [PATCH 2/2] net/bnxt: fix ol_flags checksum status

2020-12-18 Thread Lance Richardson
From: Lance Richardson The setting of the mbuf ol_flags field for tunneled packets should be different depending upon whether DEV_RX_OFFLOAD_OUTER_* offloads are enabled. Initialize ol_flags mappings based on the receive offload configuration when the receive ring is initialized. Signed-off-by

[dpdk-dev] [PATCH 1/2] net/bnxt: make offload flags mapping per-ring

2020-12-18 Thread Lance Richardson
From: Lance Richardson Refactor offload flags mapping table to be dynamic and per-ring instead of static and global. Signed-off-by: Lance Richardson Cc: sta...@dpdk.org --- drivers/net/bnxt/bnxt_rxr.c | 34 +-- drivers/net/bnxt/bnxt_rxr.h | 12

[dpdk-dev] [PATCH 0/2] net/bnxt: fix outer checksum status

2020-12-18 Thread Lance Richardson
From: Lance Richardson Receive checksum offload status flags in the mbuf ol_flags field should include inner/outer status only when outer checksum offload is enabled, which currently isn't the case for the bnxt PMD. Fix by using a hw-to-ol_flags mapping table that is constructed bas

[dpdk-dev] [PATCH] net/bnxt: fix outer UDP cksum Rx offload capability

2020-12-17 Thread Lance Richardson
From: Lance Richardson Rx outer UDP checksum offload has been supported for some time, but this has not been advertised in offload capability flags. Fix this, and allow vector mode receive to be enabled when DEV_RX_OFFLOAD_OUTER_UDP_CKSUM is requested. Fixes: 04a681426d49 ("net/bnxt: f

[dpdk-dev] [PATCH] net/bnxt: fix fallback mbuf allocation logic

2020-12-16 Thread Lance Richardson
From: Lance Richardson Fixes for fallback mbuf allocation logic. - Preserve raw (unmasked) producer index. - Iterate over all processed descriptors (representor and non-representor) when checking allocation status. - Invoke fallback allocation logic when an allocation failure

Re: [dpdk-dev] question regarding rx checksum offload flags

2020-12-15 Thread Lance Richardson
On Mon, Dec 14, 2020 at 12:41 PM Lance Richardson wrote: > > On Thu, Sep 17, 2020 at 10:05 AM Olivier Matz wrote: > > > > Hi Lance, > > > > On Mon, Aug 24, 2020 at 04:11:45PM -0400, Lance Richardson wrote: > > > I was looking for some clarification regardin

[dpdk-dev] [PATCH v2] net/bnxt: fix doorbell write ordering

2020-12-14 Thread Lance Richardson
("net/bnxt: optimize Rx processing") Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde Reviewed-by: Somnath Kotur Cc: sta...@dpdk.org --- v2 - Fixed typo in commit log. drivers/net/bnxt/bnxt_rxr.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/d

[dpdk-dev] [PATCH] net/bnxt: limit per-poll Rx representor pkts

2020-12-14 Thread Lance Richardson
Limit number of representor packets transferred per poll to requested burst size. Fixes: 6dc83230b43b ("net/bnxt: support port representor data path") Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde Reviewed-by: Somnath Kotur Cc: sta...@dpdk.org --- driver

[dpdk-dev] [PATCH] net/bnxt: fix doorbell write ordering

2020-12-14 Thread Lance Richardson
t;net/bnxt: optimize Rx processing") Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde Reviewed-by: Somnath Kotur Cc: sta...@dpdk.org --- drivers/net/bnxt/bnxt_rxr.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/bnxt/bnxt_rxr.c b/d

Re: [dpdk-dev] question regarding rx checksum offload flags

2020-12-14 Thread Lance Richardson
On Thu, Sep 17, 2020 at 10:05 AM Olivier Matz wrote: > > Hi Lance, > > On Mon, Aug 24, 2020 at 04:11:45PM -0400, Lance Richardson wrote: > > I was looking for some clarification regarding how rx checksum > > flags should be set for tunnel packets having both inner and

Re: [dpdk-dev] [PATCH v3 16/17] net/bnxt: add missing comments

2020-12-10 Thread Lance Richardson
_03f0] = 2, > @@ -227,6 +232,7 @@ uint16_t ulp_class_sig_tbl[BNXT_ULP_CLASS_SIG_TBL_MAX_SZ] > = { > [BNXT_ULP_CLASS_HID_01b4] = 216 > }; > > +/* Array for the proto matcher list */ > struct bnxt_ulp_class_match_info ulp_class_match_list[] = { > [1] = { > .class_hid = BNXT_ULP_CLASS_HID_0138, > -- > 2.21.1 (Apple Git-122.3) > Acked-by: Lance Richardson

Re: [dpdk-dev] [PATCH v3 15/17] net/bnxt: changes to indentation and coding style

2020-12-10 Thread Lance Richardson
G(ERR, > - "bnxt_init_one_rx_ring failed!\n"); > + PMD_DRV_LOG(ERR, "bnxt_init_one_rx_ring failed!\n"); > bnxt_rx_queue_release_op(rxq); > rc = -ENOMEM; > goto err_out; > -- > 2.21.1 (Apple Git-122.3) > Acked-by: Lance Richardson

Re: [dpdk-dev] [PATCH v3 12/17] net/bnxt: remove function declaration

2020-12-10 Thread Lance Richardson
t bnxt_hwrm_get_dflt_vnic_svif(struct bnxt *bp, uint16_t fid, > uint16_t *vnic_id, uint16_t *svif); > int bnxt_hwrm_parent_pf_qcfg(struct bnxt *bp); > -- > 2.21.1 (Apple Git-122.3) > Acked-by: Lance Richardson

Re: [dpdk-dev] [PATCH v3 11/17] net/bnxt: use the right function to free mbuf

2020-12-10 Thread Lance Richardson
; + rte_mbuf_raw_free(mbuf); > } > > return 0; > -- > 2.21.1 (Apple Git-122.3) > Acked-by: Lance Richardson

Re: [dpdk-dev] [PATCH v3 08/17] net/bnxt: fix format specifier for unsigned int

2020-12-10 Thread Lance Richardson
%d, device:%u\n", > parms->session_id.internal.domain, > parms->session_id.internal.bus, > parms->session_id.internal.device); > -- > 2.21.1 (Apple Git-122.3) > Acked-by: Lance Richardson

Re: [dpdk-dev] [PATCH v3 07/17] net/bnxt: fix cleanup on mutex init failure

2020-12-10 Thread Lance Richardson
le to initialize def_cp_lock\n"); > + return err; > + } > > err = pthread_mutex_init(&bp->health_check_lock, NULL); > if (err) > -- > 2.21.1 (Apple Git-122.3) > Acked-by: Lance Richardson

  1   2   3   >