DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Capturing Pause Frames in DPDK Applications
@ 2020-04-22  3:50 Alireza Sanaee
  2020-04-22  4:22 ` Jim Thompson
  0 siblings, 1 reply; 2+ messages in thread
From: Alireza Sanaee @ 2020-04-22  3:50 UTC (permalink / raw)
  To: users

Dear all,

I'm wondering that if there is any chances to pass pause frames through 
a NIC and receive it in the DPDK application? Is there any ideas to 
practically make this modification?

I have read that Pause Frames are being consumed at ASIC level so it 
would not be possible to pass the frame to CPU. In that case, I'm just 
thinking of creating an artificial pause frame on arrival of a real 
Ethernet pause frame and push the artificial one to software, it might 
be crazy though but still capturing arrival event of an Ethernet pause 
frame remains a challenge.

In a DPDK less scenario, I'm thinking if a packet sniffer like Wireshark 
can capture a pause frame, then it means NIC is sending pause frames to 
higher layers I believe. Likewise in the DPDK scenario I should be able 
to see the pause frames maybe in the PMD driver?

Thanks,
Alireza


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

* Re: [dpdk-users] Capturing Pause Frames in DPDK Applications
  2020-04-22  3:50 [dpdk-users] Capturing Pause Frames in DPDK Applications Alireza Sanaee
@ 2020-04-22  4:22 ` Jim Thompson
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Thompson @ 2020-04-22  4:22 UTC (permalink / raw)
  To: Alireza Sanaee; +Cc: users



> On Apr 21, 2020, at 10:50 PM, Alireza Sanaee <sarsanaee@gmail.com> wrote:
> 
> Dear all,
> 
> I'm wondering that if there is any chances to pass pause frames through a NIC and receive it in the DPDK application? Is there any ideas to practically make this modification?
> 
> I have read that Pause Frames are being consumed at ASIC level so it would not be possible to pass the frame to CPU. In that case, I'm just thinking of creating an artificial pause frame on arrival of a real Ethernet pause frame and push the artificial one to software, it might be crazy though but still capturing arrival event of an Ethernet pause frame remains a challenge.
> 
> In a DPDK less scenario, I'm thinking if a packet sniffer like Wireshark can capture a pause frame, then it means NIC is sending pause frames to higher layers I believe. Likewise in the DPDK scenario I should be able to see the pause frames maybe in the PMD driver?
> 
> Thanks,
> Alireza

Alireza,

What you seek is documented.

https://doc.dpdk.org/dts/test_plans/link_flowctrl_test_plan.html <https://doc.dpdk.org/dts/test_plans/link_flowctrl_test_plan.html>

testpmd> set mac_ctrl_frame_fwd on


Not all PMDs support this setting, though igb and i40e do.

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

end of thread, other threads:[~2020-04-22  4:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-22  3:50 [dpdk-users] Capturing Pause Frames in DPDK Applications Alireza Sanaee
2020-04-22  4:22 ` Jim Thompson

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