ethernet rx interrupt problem(i.mx8mp)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ethernet rx interrupt problem(i.mx8mp)

692 Views
ryan_81
Contributor II

My i.MX8MP board receives UDP data from a server.

The server sends data every 1 microsecond, with each packet being 64 bytes.

However, the i.MX8MP does not trigger an interrupt event every 1 microsecond.

To address this, I configured eth0 using ethtool.

The default values are below.

-----------------------------------

rx-usecs: 1000
rx-frames: 200
rx-usecs-irq: 0
rx-frames-irq: 0

------------------------------------

I set rx-usecs to 1 and rx-frames to 1.

However, it doesn't seem to be working as expected.

Is there an updated Ethernet driver available, or is it already up to date?

My kernel version is 5.10.72.

0 Kudos
Reply
2 Replies

662 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

Probably there is a bandwidth limitation with the parameters set, could you try with this set-up:

$ ethtool -C ethX rx-usecs 100 rx-frames 20

Regards

0 Kudos
Reply

652 Views
ryan_81
Contributor II

I tried you recommend. @JosephAtNXP 

The test condition was receiving 64 bytes every 1 microsecond, and I ran the test 1000 times.

The result improved, but it’s still not perfect.

Is it possible to set rx-usecs to 1 or rx-frames to 1 and have it work?

0 Kudos
Reply