From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Yury Kaliukhovich <jury.kaliukhovich@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Problem with rtnet e1000e ethernet card
Date: Thu, 17 Mar 2016 14:36:09 +0100 [thread overview]
Message-ID: <20160317133609.GD575@hermes.click-hack.org> (raw)
In-Reply-To: <CABfy4==QwJ36Kw2j==_kmtKnMtBy_obCjwR_2oD0TEo4LF=d7w@mail.gmail.com>
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
prev parent reply other threads:[~2016-03-17 13:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-17 13:25 [Xenomai] Problem with rtnet e1000e ethernet card Yury Kaliukhovich
2016-03-17 13:36 ` Gilles Chanteperdrix [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160317133609.GD575@hermes.click-hack.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=jury.kaliukhovich@gmail.com \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.