Re: [PATCH] rust: support DPDK API

2025-03-15 Thread Igor Gutorov
On Mon, Mar 10, 2025 at 7:34 PM Stephen Hemminger wrote: > > The real benefit would the ability to support PMD's built in Rust. Having DPDK libraries as Rust crates would be beneficial as well. The mempool library in particular is something I've wanted to use in some Rust projects. I've previousl

Re: [PATCH] rust: support DPDK API

2025-03-13 Thread Igor Gutorov
On Wed, Mar 12, 2025 at 5:49 PM Etelson, Gregory wrote: > > It's not sure when and even if vendors decide to work on RUST PMD. A PMD could be software based (e.g. net_pcap). For such PMDs, Rust can be a good option.

Re: RFC - Tap io_uring PMD

2024-11-05 Thread Igor Gutorov
On Wed, Nov 6, 2024 at 2:54 AM Morten Brørup wrote: > > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Wednesday, 6 November 2024 00.26 > > > > On Wed, 6 Nov 2024 00:22:19 +0100 > > Morten Brørup wrote: > > > > > From what I understand, the TAP io_uring PMD only supports

eal: -n or -r options are ignored when --in-memory is used

2024-10-22 Thread Igor Gutorov
Hi, I've noticed an issue of `rte_memory_get_nchannel()` or `rte_memory_get_nrank()` always returning zero regardless of the -n or -r options set. I think this is due to `--in-memory` forcing `conf->no_shconf = 1` [1], which leads to `rte_eal_memdevice_init()` never being executed [2]. I do not

Re: [PATCH 1/1] net/mlx5: show rx/tx descriptor ring limitations in rte_eth_dev_info

2024-10-10 Thread Igor Gutorov
Hi Stephen, On Thu, Oct 10, 2024 at 3:18 AM Stephen Hemminger wrote: > > On Mon, 17 Jun 2024 07:18:58 + > Slava Ovsiienko wrote: > > > Hi, Igor > > > > Thank you for the patch. > > > > 1. The absolute max descriptor number supported by ConnectX hardware is > > 32768. > > 2. The actual max d

Re: [PATCH v3 0/2] net/mlx5: fix reported Rx/Tx desc limits

2024-09-19 Thread Igor Gutorov
Hi, On Wed, Aug 7, 2024 at 11:58 PM Igor Gutorov wrote: > > Hi, > > Sorry, I used the wrong --to and --cc switches. > Adding Slava just in case. > > Sincerely, > Igor. > > On Wed, Aug 7, 2024 at 11:44 PM Igor Gutorov wrote: > > > > Hi, Sla

Re: [PATCH v3 0/2] net/mlx5: fix reported Rx/Tx desc limits

2024-08-07 Thread Igor Gutorov
Hi, Sorry, I used the wrong --to and --cc switches. Adding Slava just in case. Sincerely, Igor. On Wed, Aug 7, 2024 at 11:44 PM Igor Gutorov wrote: > > Hi, Slava > > > > Is an `int` appropriate for `log_max_wq_sz`? Seems like a `uint8_t` > > > is sufficient, bu

[PATCH v3 2/2] common/mlx5: reduce HCA attribute type sizes

2024-08-07 Thread Igor Gutorov
A number of `log_max_*` fields' types are unnecessarily large, and can be reduced to `uint8_t`. Signed-off-by: Igor Gutorov --- drivers/common/mlx5/mlx5_devx_cmds.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.h b/drivers/c

[PATCH v3 1/2] net/mlx5: fix reported Rx/Tx desc limits

2024-08-07 Thread Igor Gutorov
: e60fbd5b24fc ("mlx5: add device configure/start/stop") Cc: sta...@dpdk.org Signed-off-by: Igor Gutorov --- drivers/common/mlx5/mlx5_devx_cmds.c | 1 + drivers/common/mlx5/mlx5_devx_cmds.h | 1 + drivers/net/mlx5/mlx5_ethdev.c | 4 drivers/net/mlx5/mlx5_rxq.c | 8 +++

[PATCH v3 0/2] net/mlx5: fix reported Rx/Tx desc limits

2024-08-07 Thread Igor Gutorov
hat first introduced configuring the device. Is that appropriate? > > Also, please run checking script: /devtools/check-git-log.sh' -1 to > verify commit message compliance. Thanks! No warnings now, except for "Wrong headline prefix" for the first patch because it modifies both

[PATCH v2] net/mlx5: fix incorrect rx/tx descriptor limitations in rte_eth_dev_info

2024-06-18 Thread Igor Gutorov
issues. Signed-off-by: Igor Gutorov --- drivers/common/mlx5/mlx5_devx_cmds.c | 1 + drivers/common/mlx5/mlx5_devx_cmds.h | 1 + drivers/net/mlx5/mlx5_ethdev.c | 4 drivers/net/mlx5/mlx5_rxq.c | 8 drivers/net/mlx5/mlx5_txq.c | 8 5 files changed, 22

[PATCH v2 0/1] net/mlx5: fix incorrect rx/tx descriptor limitations in rte_eth_dev_info

2024-06-18 Thread Igor Gutorov
bled upon them independently. If you'd like the bug reports to be created, let me know. Sincerely, Igor Igor Gutorov (1): net/mlx5: fix incorrect rx/tx descriptor limitations in rte_eth_dev_info drivers/common/mlx5/mlx5_devx_cmds.c | 1 + drivers/common/mlx5/mlx5_devx_cmds

[PATCH 1/1] net/mlx5: show rx/tx descriptor ring limitations in rte_eth_dev_info

2024-06-16 Thread Igor Gutorov
, NULL, mb_pool); ``` Which overflows ring size and generates the following log: ``` mlx5_net: port 0 increased number of descriptors in Rx queue 0 to the next power of two (0) ``` This patch fixes these issues. Signed-off-by: Igor Gutorov --- drivers/net/mlx5/mlx5_defs.h | 3 +++ drivers/net

[PATCH 0/1] net/mlx5: show rx/tx descriptor ring limitations in rte_eth_dev_info

2024-06-16 Thread Igor Gutorov
as I do not have the NIC programmer's manual. Using anything larger than 8192 resulted in an error. Similarly, anything in the [8193, 32768) range with the DPDK PMD results in an rx queue allocation failure. Igor Gutorov (1): net/mlx5: show rx/tx descriptor ring limitations in rte_et

Re: [PATCH] net/i40e: increase descriptor queue length to 8160

2024-06-05 Thread Igor Gutorov
On Mon, Jun 3, 2024 at 1:41 PM Igor Gutorov wrote: > > On Mon, May 27, 2024 at 7:20 PM Igor Gutorov wrote: > > > > According to the Intel X710/XXV710/XL710 Datasheet, the maximum receive > > queue descriptor length is 0x1FE0 (8160 in base 10). This is specified > &g

Re: [PATCH] net/i40e: increase descriptor queue length to 8160

2024-06-03 Thread Igor Gutorov
On Mon, May 27, 2024 at 7:20 PM Igor Gutorov wrote: > > According to the Intel X710/XXV710/XL710 Datasheet, the maximum receive > queue descriptor length is 0x1FE0 (8160 in base 10). This is specified > as QLEN in table 8-12, page 1083. > > I've tested this change with a

[PATCH] net/i40e: increase descriptor queue length to 8160

2024-05-27 Thread Igor Gutorov
Where previously I'd get ~2000 packets/sec miss rate, now I get only ~40 packets/sec miss rate. Signed-off-by: Igor Gutorov --- drivers/net/i40e/i40e_rxtx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_rxtx.h b/drivers/net/i40e/i40e_rxtx.h index