[PATCH] eventdev/rx_adapter: add event port get api

2021-12-21 Thread Naga Harish K S V
This patch introduces new api for retrieving event port id of eth rx adapter. Signed-off-by: Naga Harish K S V --- lib/eventdev/rte_event_eth_rx_adapter.c | 20 lib/eventdev/rte_event_eth_rx_adapter.h | 20 lib/eventdev/version.map| 1 +

RE: [PATCH v2 3/7] net/ixgbe: Check that SFF-8472 soft rate select is supported before write

2021-12-21 Thread Wang, Haiyue
> -Original Message- > From: Morten Brørup > Sent: Tuesday, December 21, 2021 16:58 > To: Wang, Haiyue ; steph...@silicom-usa.com; Lu, > Wenzhuo ; > Changchun Ouyang ; Zhang, Helin > > Cc: dev@dpdk.org; Wang, Wen ; sta...@dpdk.org > Subject: RE: [PATCH v2 3/7] net/ixgbe: Check that SFF-

Re: [PATCH v1 16/25] net/spnic: add device configure/version/info

2021-12-21 Thread Yanling Song
On Mon, 20 Dec 2021 08:23:56 +0800 Stephen Hemminger wrote: > On Sat, 18 Dec 2021 10:51:43 +0800 > Yanling Song wrote: > > > +static int spnic_dev_configure(struct rte_eth_dev *dev) > > +{ > > + struct spnic_nic_dev *nic_dev = > > SPNIC_ETH_DEV_TO_PRIVATE_NIC_DEV(dev); + > > + nic_dev->num_

Re: [PATCH v1 01/25] drivers/net: introduce a new PMD driver

2021-12-21 Thread Yanling Song
On Sun, 19 Dec 2021 11:40:31 -0800 Stephen Hemminger wrote: > On Sat, 18 Dec 2021 10:51:28 +0800 > Yanling Song wrote: > > > +#ifdef CLOCK_MONOTONIC_RAW /* Defined in glibc bits/time.h */ > > +#define CLOCK_TYPE CLOCK_MONOTONIC_RAW > > +#else > > +#define CLOCK_TYPE CLOCK_MONOTONIC > > +#endif

[PATCH v2 8/8] net/bonding: add LACP short timeout tests

2021-12-21 Thread Robert Sanford
- Add "set bonding lacp timeout_ctrl on|off" to testpmd. - Add "test_mode4_lacp_timeout_control" to dpdk-test. - Remove call to rte_eth_dev_mac_addr_remove from add_slave, as it always fails and prints an error. Signed-off-by: Robert Sanford --- app/test-pmd/cmdline.c | 77 +++

[PATCH v2 7/8] net/ring: add promisc and all-MC stubs

2021-12-21 Thread Robert Sanford
Add promiscuous_enable, promiscuous_disable, allmulticast_enable, and allmulticast_disable API stubs. This helps clean up errors in dpdk-test link_bonding_mode4_autotest. Signed-off-by: Robert Sanford --- drivers/net/ring/rte_eth_ring.c | 28 1 file changed, 28 inser

[PATCH v2 6/8] remove self from timers maintainers

2021-12-21 Thread Robert Sanford
Remove self from Timers maintainers. Signed-off-by: Robert Sanford --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 18d9eda..32663b0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1613,7 +1613,6 @@ F: examples/vm_power_manager/ F: doc/guides/sam

[PATCH v2 5/8] net/bonding: add bond_8023ad and bond_alb to doc

2021-12-21 Thread Robert Sanford
- Add bond_8023ad and bond_alb to API documentation. Signed-off-by: Robert Sanford --- doc/api/doxy-api-index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/doxy-api-index.md b/doc/api/doxy-api-index.md index 4245b96..830235c 100644 --- a/doc/api/doxy-api-index.md +++ b/doc/api

[PATCH v2 4/8] net/bonding: support enabling LACP short timeout

2021-12-21 Thread Robert Sanford
- Add support for enabling LACP short timeout, i.e., link partner can use fast periodic time interval between transmits. Signed-off-by: Robert Sanford --- drivers/net/bonding/eth_bond_8023ad_private.h | 3 ++- drivers/net/bonding/rte_eth_bond_8023ad.c | 28 +++ dri

[PATCH v2 3/8] net/bonding: change mbuf pool and ring creation

2021-12-21 Thread Robert Sanford
- Turn off mbuf pool caching to avoid mbufs lingering in pool caches. At most, we transmit one LACPDU per second, per port. LACP tx_machine() performs the "get", and runs in the context of the interrupt thread (no default cache). PMD typically "puts" no more than one LACPDU per second, on a

[PATCH v2 2/8] net/bonding: fix bonded dev configuring slave dev

2021-12-21 Thread Robert Sanford
- Replace directly overwriting of slave port's private rte_eth_conf by copying it, and then updating it via rte_eth_dev_configure(). Signed-off-by: Robert Sanford --- drivers/net/bonding/rte_eth_bond_pmd.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-)

[PATCH v2 1/8] net/bonding: fix typos and whitespace

2021-12-21 Thread Robert Sanford
- Clean up minor typos in comments, strings, and private names. - Fix whitespace in log messages and function formatting (new line before open brace). - Move closing C++ wrapper to the end of rte_eth_bond_8023ad.h. Signed-off-by: Robert Sanford --- app/test-pmd/cmdline.c

[PATCH v2 0/8] net/bonding: fixes and LACP short timeout

2021-12-21 Thread Robert Sanford
This patchset makes the following changes to net/bonding: - Clean up minor errors in spelling, whitespace, C++ wrappers, and comments. - Replace directly overwriting of slave port's rte_eth_conf by copying it, but only updating it via rte_eth_dev_configure(). - Make minor changes to allocation

Re: [PATCH 3/7] net/bonding: change mbuf pool and ring allocation

2021-12-21 Thread Sanford, Robert
Hi Connor, On 12/20/21, 9:03 PM, "Min Hu (Connor)" wrote: > Hi, Sanford, > > There is *NO* benefit for the consumer thread (interrupt thread > > executing tx_machine()) to have caches on per-slave LACPDU pools. > > The interrupt thread is a control thread, i.e., a non-EAL thread. > > Its lcore

Re: [PATCH v2 3/7] net/ixgbe: Check that SFF-8472 soft rate select is supported before write

2021-12-21 Thread Stephen Douthit
On 12/20/21 20:15, Wang, Haiyue wrote: -Original Message- From: Stephen Douthit Sent: Tuesday, December 21, 2021 05:33 To: Wang, Haiyue ; Lu, Wenzhuo ; Changchun Ouyang ; Zhang, Helin Cc: dev@dpdk.org; Wang, Wen ; sta...@dpdk.org Subject: Re: [PATCH v2 3/7] net/ixgbe: Check that SFF-84

[PATCH v1] gpu/cuda: fix memory list cleanup

2021-12-21 Thread eagostini
From: Elena Agostini Memory list cleanup (called by cuda_mem_free) was not properly set the new head of the list when deleting an entry. Fixes: 1306a73b1958 ("gpu/cuda: introduce CUDA driver") Signed-off-by: Elena Agostini --- drivers/gpu/cuda/cuda.c | 6 -- 1 file changed, 4 insertions(+

[PATCH v3 2/2] examples/l3fwd: add config file support for EM

2021-12-21 Thread Sean Morrissey
Add support to define ipv4 and ipv6 forwarding tables from reading from a config file for EM with a format similar to l3fwd-acl one. With the removal of the hardcoded route tables for IPv4 and IPv6 from 'l3fwd_em', these routes have been moved to a separate default config file for use with EM. Re

[PATCH v3 1/2] examples/l3fwd: add config file support for LPM/FIB

2021-12-21 Thread Sean Morrissey
Add support to define ipv4 and ipv6 forwarding tables from reading from a config file for LPM and FIB, with format similar to l3fwd-acl one. With the removal of the hardcoded route tables for IPv4 and IPv6, these routes have been moved to a separate default config file for use with LPM and FIB. S

[PATCH v3 0/2] Add config file support for l3fwd

2021-12-21 Thread Sean Morrissey
This patchset introduces config file support for l3fwd and its lookup methods LPM, FIB, and EM, similar to that of l3fwd-acl. This allows for route rules to be defined in configuration files and edited there instead of in each of the lookup methods hardcoded route tables. Sean Morrissey (2): exa

[PATCH v1 1/2] eventdev/crypto_adapter: move crypto ops to circular buffer

2021-12-21 Thread Ganapati Kundapura
Move crypto ops to circular buffer to retain crypto ops when cryptodev/eventdev are temporarily full Signed-off-by: Ganapati Kundapura diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c index d840803..4469a89 100644 --- a/lib/eventdev/rte_event_crypto

[PATCH v1 2/2] eventdev: update crypto caps get to return SW cap

2021-12-21 Thread Ganapati Kundapura
update rte_event_crypto_adapter_caps_get() to return SW_CAP if PMD callback is not registered. Signed-off-by: Ganapati Kundapura diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c index 79b9ea3..6988bf1 100644 --- a/lib/eventdev/rte_eventdev.c +++ b/lib/eventdev/rte_eventdev.

Re: [dpdk-dev] [PATCH ] common/cnxk: fix nibble parsing order when dumping MCAM

2021-12-21 Thread Jerin Jacob
On Wed, Nov 24, 2021 at 1:43 PM wrote: > > From: Satheesh Paul > > Fix the order in which layer flags and layer type fields > are parsed when dumping the MCAM data. > > Fixes: 9869c39918 ("common/cnxk: support flow entry dump") > Cc: sta...@dpdk.org > > Signed-off-by: Satheesh Paul Acked-by: J

[PATCH v1] eventdev/crypto_adapter: move crypto ops to circular buffer

2021-12-21 Thread Ganapati Kundapura
Move crypto ops to circular buffer to retain crypto ops when cryptodev/eventdev are temporarily full Update crypto adapter caps get to return SW_CAP if PMD callback is not registered Signed-off-by: Ganapati Kundapura diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event

Re: [dpdk-dev] [PATCH 22.02 1/2] common/cnxk: support to set channel mask for SDP interfaces

2021-12-21 Thread Jerin Jacob
On Tue, Nov 9, 2021 at 3:12 PM wrote: > > From: Satheesh Paul > > ROC changes to support setting channel mask for SDP interfaces. > > Signed-off-by: Satheesh Paul Series Acked-by: Jerin Jacob Series applied to dpdk-next-net-mrvl/for-next-net. Thanks. > --- > drivers/common/cnxk/roc_npc.c

RE: [PATCH] mempool: fix the description of some function return values

2021-12-21 Thread Morten Brørup
> From: Zhiheng Chen [mailto:chenzhiheng0...@gmail.com] > Sent: Saturday, 18 December 2021 18.14 > > In rte_mempool_ring.c, the committer uses the symbol ENOBUFS to > describe the return value of function common_ring_sc_dequeue, but in > rte_mempool.h, the symbol ENOENT is used to describe the ret

[Bug 914] Deprication warning from call-sphinx-build.py

2021-12-21 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=914 Bug ID: 914 Summary: Deprication warning from call-sphinx-build.py Product: DPDK Version: 21.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal

[PATCH] mempool: fix the description of some function return values

2021-12-21 Thread Zhiheng Chen
In rte_mempool_ring.c, the committer uses the symbol ENOBUFS to describe the return value of function common_ring_sc_dequeue, but in rte_mempool.h, the symbol ENOENT is used to describe the return value of function rte_mempool_get. If the user of dpdk uses the symbol ENOENT as the judgment condi

RE: [dpdk-dev] [PATCH] config/x86: add support for AMD platform

2021-12-21 Thread Song, Keesang
[AMD Official Use Only] I don't see any update since Thomas's. Do we have this patch taken care of submitting to 22.03 and backporting it? -Original Message- From: Thomas Monjalon Sent: Wednesday, November 24, 2021 4:37 AM To: techbo...@dpdk.org Cc: Bruce Richardson ; Aman Kumar ; David

RE: [PATCH v2 3/7] net/ixgbe: Check that SFF-8472 soft rate select is supported before write

2021-12-21 Thread Morten Brørup
> From: Wang, Haiyue [mailto:haiyue.w...@intel.com] > Sent: Tuesday, 21 December 2021 02.15 > > > -Original Message- > > From: Stephen Douthit > > Sent: Tuesday, December 21, 2021 05:33 > > > > On 12/20/21 02:53, Wang, Haiyue wrote: > > >> -Original Message- > > >> From: Stephen D

[PATCH v2] app/eventdev: add crypto producer mode

2021-12-21 Thread Shijith Thotton
In crypto producer mode, producer core enqueues cryptodev with software generated crypto ops and worker core dequeues crypto completion events from the eventdev. Event crypto metadata used for above processing is pre-populated in each crypto session. Parameter --prod_type_cryptodev can be used to

[PATCH v2] net/i40e: reduce redundant store operation

2021-12-21 Thread Feifei Wang
For free buffer operation in i40e vector path, it is unnecessary to store 'NULL' into txep.mbuf. This is because when putting mbuf into Tx queue, tx_tail is the sentinel. And when doing tx_free, tx_next_dd is the sentinel. In all processes, mbuf==NULL is not a condition in check. Thus reset of mbuf

[PATCH] common/cnxk: fix incorrect error checking

2021-12-21 Thread Weiguo Li
Fixes: 804c108b039a ("common/cnxk: set BPHY IRQ handler") Signed-off-by: Weiguo Li --- drivers/common/cnxk/roc_bphy_irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/common/cnxk/roc_bphy_irq.c b/drivers/common/cnxk/roc_bphy_irq.c index f4e9b341af..5ba73c98dc