Skip to contentSkip to conversation

rt_e1000e driver issues

Xenomai Stéphane ANCELOT 2 participants 5 messages Aug 31, 2015 – Sep 2, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

I am checking timing issues of realtime rtnet frames in my application. Timing to send a frame is convenient.
but I have some issues with the time to receive the frames.

Although the RxDelays are cleared, the frame is received almost 175us later than it should in comparison with a rt8169 driver (v2.6 version) and the same application.

Any idea where to look at first ?
Regards,
Steph

#1 lore raw
Quoted 11 lines · Stéphane ANCELOT

Hi,

I am checking timing issues of realtime rtnet frames in my application. Timing to send a frame is convenient.
but I have some issues with the time to receive the frames.

Although the RxDelays are cleared, the frame is received almost 175us later than it should in comparison with a rt8169 driver (v2.6 version) and the same application.

Any idea where to look at first ?

modinfo rt_e1000e

Signature · 2 lines
					    Gilles.
https://click-hack.org
#2 lore raw
Quoted 7 lines · Gilles Chanteperdrix
Quoted 6 lines · Stéphane ANCELOT

Hi,

I am checking timing issues of realtime rtnet frames in my application. Timing to send a frame is convenient.
but I have some issues with the time to receive the frames.

Quoted 7 lines
Quoted 5 lines

Although the RxDelays are cleared, the frame is received almost 175us later than it should in comparison with a rt8169 driver (v2.6 version) and the same application.

Any idea where to look at first ?

modinfo rt_e1000e

Actually, the module parameters are the same as the Linux driver, so, they are documented in Documentation/networking/e1000e.txt in the Linux kernel sources, here for instance:
https://git.xenomai.org/ipipe.git/tree/Documentation/networking/e1000e.txt?id=v4.2-rc1
(beware that the driver versions are not the same, so, there may be some differences, like default values, or even some options, but modinfo will tell you that).

Your problem is probably that you should disable interrupt throttling passing InterruptThrottleRate=0.

Signature · 2 lines
					    Gilles.
https://click-hack.org
#3 lore raw
Quoted 22 lines · Gilles Chanteperdrix
Quoted 7 lines · Gilles Chanteperdrix
Quoted 6 lines · Stéphane ANCELOT

Hi,

I am checking timing issues of realtime rtnet frames in my application. Timing to send a frame is convenient.
but I have some issues with the time to receive the frames.

Quoted 6 lines
Quoted 5 lines

Although the RxDelays are cleared, the frame is received almost 175us later than it should in comparison with a rt8169 driver (v2.6 version) and the same application.

Any idea where to look at first ?

modinfo rt_e1000e

Actually, the module parameters are the same as the Linux driver, so, they are documented in Documentation/networking/e1000e.txt in the Linux kernel sources, here for instance:
https://git.xenomai.org/ipipe.git/tree/Documentation/networking/e1000e.txt?id=v4.2-rc1
(beware that the driver versions are not the same, so, there may be some differences, like default values, or even some options, but modinfo will tell you that).

Quoted 3 lines

Your problem is probably that you should disable interrupt throttling passing InterruptThrottleRate=0.

Hi,
I checked the timerdelays settings everything seems rigth by default.
However, I think the main differences I mesure are related to the usage of EarlyReceive in r8169 driver. Thus spending less time in recv func .

I will soon check the same application using the igb driver

Regards
S.Ancelot

#4 lore raw
Quoted 24 lines · Stéphane ANCELOT
Quoted 23 lines · Gilles Chanteperdrix
Quoted 7 lines · Gilles Chanteperdrix
Quoted 6 lines · Stéphane ANCELOT

Hi,

I am checking timing issues of realtime rtnet frames in my application. Timing to send a frame is convenient.
but I have some issues with the time to receive the frames.

Quoted 6 lines
Quoted 5 lines

Although the RxDelays are cleared, the frame is received almost 175us later than it should in comparison with a rt8169 driver (v2.6 version) and the same application.

Any idea where to look at first ?

modinfo rt_e1000e

Actually, the module parameters are the same as the Linux driver, so, they are documented in Documentation/networking/e1000e.txt in the Linux kernel sources, here for instance:
https://git.xenomai.org/ipipe.git/tree/Documentation/networking/e1000e.txt?id=v4.2-rc1

(beware that the driver versions are not the same, so, there may be some differences, like default values, or even some options, but modinfo will tell you that).

Quoted 8 lines
Quoted 3 lines

Your problem is probably that you should disable interrupt throttling passing InterruptThrottleRate=0.

Hi,
I checked the timerdelays settings everything seems rigth by default.
However, I think the main differences I mesure are related to the usage of EarlyReceive in r8169 driver. Thus spending less time in recv func .

I will soon check the same application using the igb driver

I have made some round trip time measurement with two e1000e boards, and I am pretty sure with InterruptThrottleRate=0 *RxDelay=0 the delays are in the 10s of microseconds order (on a gigabit link).

--
Gilles Chanteperdrix