All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Problem with rtnet e1000e ethernet card
@ 2016-03-17 13:25 Yury Kaliukhovich
  2016-03-17 13:36 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Yury Kaliukhovich @ 2016-03-17 13:25 UTC (permalink / raw)
  To: xenomai

Hello everyone,

I've faced an issue with rtnet concerning intel e1000e network adapter.
I have an application that uses rtnet to work with ethernet devices. In
case of temporary disconnection frames couldn't be sent/received by
application, and trace "Reset adapter " appears in dmesg.
We are using kernel 3.14.39 and the last xenomai 3.0.1.
After some googling I've found a commit to linux kernel to fix e1000e
module -

https://github.com/torvalds/linux/commit/12d43f7d3cd36494a442dea6f2d2c7ccb76d0d80

applying that commit with some modifications fixed the problem,
so I've made a small patch to xenomai that could be usefull for someone
else as well as could be applied to xenomai git repository
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intel_e1000e.patch
Type: text/x-diff
Size: 4251 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20160317/19055e03/attachment.patch>

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

* Re: [Xenomai] Problem with rtnet e1000e ethernet card
  2016-03-17 13:25 [Xenomai] Problem with rtnet e1000e ethernet card Yury Kaliukhovich
@ 2016-03-17 13:36 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2016-03-17 13:36 UTC (permalink / raw)
  To: Yury Kaliukhovich; +Cc: xenomai

On Thu, Mar 17, 2016 at 03:25:16PM +0200, Yury Kaliukhovich wrote:
> Hello everyone,
> 
> I've faced an issue with rtnet concerning intel e1000e network adapter.
> I have an application that uses rtnet to work with ethernet devices. In
> case of temporary disconnection frames couldn't be sent/received by
> application, and trace "Reset adapter " appears in dmesg.
> We are using kernel 3.14.39 and the last xenomai 3.0.1.
> After some googling I've found a commit to linux kernel to fix e1000e
> module -
> 
> https://github.com/torvalds/linux/commit/12d43f7d3cd36494a442dea6f2d2c7ccb76d0d80

Thanks this is an interesting patch. However, triggering a reset
when packets are sent while the network is down causes a problem:
in the middle of the reset the network is down, so if the
application sends packets again, this will trigger a reset again,
and can lead to situation where the application is never able to
send packets, because the interface is always resetting and thus
never up.

So, the issue has been fixed differently in the git repository: we refuse
to queue packets if the cable is not plugged:
https://git.xenomai.org/xenomai-3.git/commit/?h=stable-3.0.x&id=0eeba1c172efabbc1d2194f7893cd40ad3ee1162

Besides, real-time applications expect short latency from RTnet, so
it seems more correct to inform them that their packet could not be
sent because the network is down, than to queue the packet for an
indefinite time.

-- 
					    Gilles.
https://click-hack.org


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

end of thread, other threads:[~2016-03-17 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-17 13:25 [Xenomai] Problem with rtnet e1000e ethernet card Yury Kaliukhovich
2016-03-17 13:36 ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.