DPDK usage discussions
 help / color / mirror / Atom feed
* track the physical  port in the pipeline
@ 2022-07-19  5:09 Balakrishnan K
  2022-07-19 13:08 ` Purnima, Kompella V
  0 siblings, 1 reply; 2+ messages in thread
From: Balakrishnan K @ 2022-07-19  5:09 UTC (permalink / raw)
  To: users

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

Hi All,
    Is there any configuration or struct store the physical port where the packet is comes in.
Trying below scenario:
I have two pipeline in pipeline1 reading the packets from two links.
Link 0 bound to port 0 and link 1 bound to port 1.
After reading the packets in the pipeline 1 doing the packets match and action using tables.
Finally, it will be sent to pipeline2.
Pipeline2 forward the packets to another physical port.
If packets received in physical port 0 need to forward the traffic to port 2.
If the packets received in physical port 1 need to forward the traffic to port3.

I am unable to decide the out port because packets doesn't info about the port in.
Is there any option available to track the physical port_in?
Any help would be appreciated.


Regards,
Bala



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

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

* RE: track the physical  port in the pipeline
  2022-07-19  5:09 track the physical port in the pipeline Balakrishnan K
@ 2022-07-19 13:08 ` Purnima, Kompella V
  0 siblings, 0 replies; 2+ messages in thread
From: Purnima, Kompella V @ 2022-07-19 13:08 UTC (permalink / raw)
  To: Balakrishnan K, users

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

struct rte_mbuf in DPDK 19.11 has a field called port
When packets are received using rte_eth_rx_burst API, struct rte_mbuf::port will be filled with index value of the ethernet port on which the packet was received.

This works with MLX ConnectX4. Hope this helps.

Regards
Purnima

From: Balakrishnan K <Balakrishnan.K1@tatacommunications.com>
Sent: July 19, 2022 10:40 AM
To: users@dpdk.org
Subject: track the physical port in the pipeline

Hi All, Is there any configuration or struct store the physical port where the packet is comes in. Trying below scenario: I have two pipeline in pipeline1 reading the packets from two links. Link 0 bo
External (balakrishnan.k1@tatacommunications.com<mailto:balakrishnan.k1@tatacommunications.com>)
  Report This Email<https://protection.inkyphishfence.com/report?id=Y29tbXNjb3BlL2tvbXBlbGxhLnB1cm5pbWFAY29tbXNjb3BlLmNvbS82ZDNjMGVkN2M0ODZhYWMxMjIwYmU0ZWEzMmZjOGY3Yi8xNjU4MjA3NDE1Ljcx#key=8b4a8f5e9f14d75233fae3f9d1a64991>  FAQ<https://www.inky.com/banner-faq>  Protection by INKY<https://www.inky.com/protection-by-inky>

Hi All,
    Is there any configuration or struct store the physical port where the packet is comes in.
Trying below scenario:
I have two pipeline in pipeline1 reading the packets from two links.
Link 0 bound to port 0 and link 1 bound to port 1.
After reading the packets in the pipeline 1 doing the packets match and action using tables.
Finally, it will be sent to pipeline2.
Pipeline2 forward the packets to another physical port.
If packets received in physical port 0 need to forward the traffic to port 2.
If the packets received in physical port 1 need to forward the traffic to port3.

I am unable to decide the out port because packets doesn't info about the port in.
Is there any option available to track the physical port_in?
Any help would be appreciated.


Regards,
Bala




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

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

end of thread, other threads:[~2022-07-19 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19  5:09 track the physical port in the pipeline Balakrishnan K
2022-07-19 13:08 ` Purnima, Kompella V

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