DPDK usage discussions
 help / color / mirror / Atom feed
* DPDK port concept in rte_eth_dev
@ 2022-08-17 11:28 Mikael R Carlsson
  2022-08-17 15:30 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael R Carlsson @ 2022-08-17 11:28 UTC (permalink / raw)
  To: users

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

Hi!

Sorry for asking such a basic question but I have a hard time understanding the "port" concept in rte_eth_dev.

I am using 2 VFs on the same physical port on a NIC, VF7 and VF6. These to VFs have there own unique PCI address. When I call rte_eth_dev_get_port_by_name, I suspect that I get the same port id from both PCI addresses (not sure here, still looking into this)

Could someone please give me a short explanation of the "port" concept in rte_eth_dev, and how that correlates to PCI address and also eth_dev_rx_burst assuming you want to poll only from VF7 for example.

Thanks in advance!

  / Mikael


[-- Attachment #2: Type: text/html, Size: 2734 bytes --]

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

* Re: DPDK port concept in rte_eth_dev
  2022-08-17 11:28 DPDK port concept in rte_eth_dev Mikael R Carlsson
@ 2022-08-17 15:30 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2022-08-17 15:30 UTC (permalink / raw)
  To: Mikael R Carlsson; +Cc: users

On Wed, 17 Aug 2022 11:28:20 +0000
Mikael R Carlsson <Mikael.R.Carlsson@tietoevry.com> wrote:

> Hi!
> 
> Sorry for asking such a basic question but I have a hard time understanding the "port" concept in rte_eth_dev.
> 
> I am using 2 VFs on the same physical port on a NIC, VF7 and VF6. These to VFs have there own unique PCI address. When I call rte_eth_dev_get_port_by_name, I suspect that I get the same port id from both PCI addresses (not sure here, still looking into this)
> 
> Could someone please give me a short explanation of the "port" concept in rte_eth_dev, and how that correlates to PCI address and also eth_dev_rx_burst assuming you want to poll only from VF7 for example.
> 
> Thanks in advance!
> 
>   / Mikael
> 

DPDK ethdev port is more of an object index (like Linux file handle).
It can refer to many different types of devices.

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

end of thread, other threads:[~2022-08-17 15:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-17 11:28 DPDK port concept in rte_eth_dev Mikael R Carlsson
2022-08-17 15:30 ` Stephen Hemminger

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).