DPDK usage discussions
 help / color / mirror / Atom feed
* Determining vendor and model from the port ID
@ 2025-03-25 13:32 Lukáš Šišmiš
  2025-03-25 14:07 ` Stephen Hemminger
  2025-03-25 15:57 ` Slava Ovsiienko
  0 siblings, 2 replies; 6+ messages in thread
From: Lukáš Šišmiš @ 2025-03-25 13:32 UTC (permalink / raw)
  To: users, dsosnowski, viacheslavo

[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]

Hello all,

I am trying to determine what is the vendor and model of the port ID 
that I am interacting with but all references lead me to an obsolete API.

The goal is to execute specific code only when I am dealing with 
Mellanox ConnectX-4-family cards. Longer explanation below.

I would like to access "struct rte_pci_id" but it always seems hidden 
only on the driver level.

Is there any way how to approach this?


Longer explanation of the problem:

In https://github.com/OISF/suricata/pull/12654 I am using dev_info to 
get the maximum number of allowed TX descriptors for the port that is 
advertised by the PMD. But when I set the actual number of TX 
descriptors then the driver complains "minimal data inline requirements 
(18) are not satisfied (12) on port 0, try the smaller Tx queue size 
(32768)". However, this problem occurs only on ConnectX-4 family and not 
on CX5/6/7 (that's why I cannot limit this to just mlx5 PMD).

Alternatively, can this be fixed/addressed directly in the MLX5 PMD? 
MLX5 PMD needs to advertise 16384 TX descriptors as the maximum only for 
ConnectX-4 family.
(Putting Darius, Viacheslav in the loop, please reassign if needed)

Thank you.

Best,

Lukas


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5986 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-03-31 13:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-25 13:32 Determining vendor and model from the port ID Lukáš Šišmiš
2025-03-25 14:07 ` Stephen Hemminger
2025-03-25 15:17   ` Lukáš Šišmiš
2025-03-25 15:57 ` Slava Ovsiienko
2025-03-28 12:52   ` Lukáš Šišmiš
2025-03-31 13:54     ` Slava Ovsiienko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).