From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jeff Webb <jeff.webb@nta-inc.net>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] rtnet issue with xenomai-3.git next branch
Date: Fri, 19 Dec 2014 11:39:42 +0100 [thread overview]
Message-ID: <20141219103942.GA2012@hermes.click-hack.org> (raw)
In-Reply-To: <54934E5E.2090203@nta-inc.net>
On Thu, Dec 18, 2014 at 03:59:58PM -0600, Jeff Webb wrote:
> On 12/17/2014 04:59 AM, Gilles Chanteperdrix wrote:
> >On Wed, Dec 17, 2014 at 11:29:10AM +0100, Gilles Chanteperdrix wrote:
> >>On Tue, Dec 16, 2014 at 05:29:51PM -0600, Jeff Webb wrote:
> >>>I am testing the rtnet functionality in the 'next' branch of xenomai-3.git. (I now also have Xenomai-2.6.4/rtnet.git running on the same machine for comparison.) I am able to bring up the real-time interface (rt_e1000e) and use rtping as expected. As mentioned before, I have a primary non-rt ethernet interface running simultaneously (using the e1000e driver). When I try to remove all the rtnet modules, I am unable to remove rtnet and rtipv4:
> >>>
> >>>$ rmmod rtipv4 rtnet
> >>>rmmod: ERROR: Module rtipv4 is in use
> >>>rmmod: ERROR: Module rtnet is in use by: rtipv4
> >>>
> >>>The messages are the same if I try to remove them individually. This behavior does not occur with Xenomai-2.6.4/rtnet.git.
> >>
> >>To avoid nasty side effects, every module which registers an
> >>interface (whether rtnet or linux interface) now requires the
> >>interface to be down before the module can be removed. The handling
> >>of rtnet module counts was significantly reworked when importing
> >>into 3.x, it is possible that some bug remains.
> >
> >Also note that you need this commits in the I-pipe kernel for
> >3.14 for module count to work correctly from xenomai domain:
> >
> >https://git.xenomai.org/ipipe-gch.git/commit/?h=for-ipipe-3.14.17&id=f009149cf8ca8f956194e4fd852b0d97b7c76886
> >
>
> For what its worth, I rebuilt everything using your "for-ipipe-3.14.17" branch that has that commit. That branch has the same issue, and I think your assessment of the problem is correct. For instance, this works:
>
> ifconfig eth0 down
> ifconfig eth1 down
> rmmod e1000e
> modprobe rtnet
> modprobe rtipv4
> modprobe rt_e1000e
> rtifconfig rteth1 up 172.18.14.209
> rtifconfig
> rtifconfig rteth1 down
> rmmod rt_e1000e
> rmmod rtipv4
>
> But, if I actually use the interface, I can no longer remove the rtipv4 module:
>
> modprobe rtipv4
> modprobe rt_e1000e
> rtifconfig rteth1 up 172.18.14.209
> rtifconfig
> rtroute solicit 172.18.14.210 dev rteth1
> rtroute
> rtifconfig rteth1 down
> rmmod rt_e1000e
> rmmod rtipv4
Ok, I clearly did not have this with the drivers I tested, so, this
must come from something specific to the rt_e1000e driver, I will
have a look.
--
Gilles.
next prev parent reply other threads:[~2014-12-19 10:39 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-16 23:29 [Xenomai] rtnet issue with xenomai-3.git next branch Jeff Webb
2014-12-17 10:29 ` Gilles Chanteperdrix
2014-12-17 10:59 ` Gilles Chanteperdrix
2014-12-18 21:59 ` Jeff Webb
2014-12-19 10:39 ` Gilles Chanteperdrix [this message]
2014-12-30 22:38 ` Gilles Chanteperdrix
2015-09-29 5:44 ` Gilles Chanteperdrix
[not found] <CAB6vvjn7=j2LpfwVhVAQBPcYiK6a-owoCaFXqY00+JnU2jGm9A@mail.gmail.com>
2015-02-24 9:34 ` Gilles Chanteperdrix
-- strict thread matches above, loose matches on Subject: below --
2015-02-24 10:39 Antoine Hoarau
2015-02-24 12:00 ` Antoine Hoarau
2015-02-24 12:51 ` Gilles Chanteperdrix
2015-02-24 12:50 ` Gilles Chanteperdrix
2015-02-25 10:23 Antoine Hoarau
2015-02-25 10:26 ` Antoine Hoarau
2015-02-25 10:36 ` Gilles Chanteperdrix
2015-02-25 10:47 ` Antoine Hoarau
2015-02-25 12:34 ` Gilles Chanteperdrix
2015-02-25 13:23 Antoine Hoarau
2015-02-25 20:46 ` Gilles Chanteperdrix
2015-02-25 21:11 ` Antoine Hoarau
2015-02-25 21:21 ` Gilles Chanteperdrix
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=20141219103942.GA2012@hermes.click-hack.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=jeff.webb@nta-inc.net \
--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.