ethernet rx interrupt problem(i.mx8mp)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ethernet rx interrupt problem(i.mx8mp)

233 次查看
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 项奖励
回复
2 回复数

203 次查看
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 项奖励
回复

193 次查看
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 项奖励
回复