All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Smolorz <Sebastian.Smolorz@gmx.de>
To: xenomai@xenomai.org, steven.seeger@nasa.gov
Cc: "Hillman, Robert" <hillman@ddc-web.com>
Subject: Re: [Xenomai] Does RTNET supports TCP?
Date: Sat, 06 Oct 2018 10:07:49 +0200	[thread overview]
Message-ID: <3016131.PUnFZZDcdA@lenni> (raw)
In-Reply-To: <1806354.2vQZyoBssO@wirbelwind>

Hi all,

Steven Seeger wrote:
> On Thursday, October 4, 2018 9:02:46 PM EDT Pham, Phong wrote:
> > Hi,
> > 
> > I noticed starting Xenomai 3.0.1 until now (3.0.7), there is net/ in
> > .../kernel/drivers/ and in ../kernel/drivers/net/stack/ipv4/Kconfig
> > 
> > # source "drivers/xenomai/net/stack/ipv4/tcp/Kconfig"
> 
> I don't know why this is commented out. It looks like Gilles's initial
> import of this file in commit
> 106ffba7b55d506143966ff16158ee79b0007336 had it commented out.
> 
> I know that UDP is typically used with RTNET. TCP is complicated and
> has a lot of timers and dynamic state that makes it less than
> desirable for hard- realtime systems. Probably Jan should chime in on
> this. I think he has the most experience using RTnet at this point.
> 
> > 5)      When I created a socket with rt_dev_socket(AF_INET,
> > SOCK_STREAM, 0); and attempting to rt_dev_connect(fd,
> > server_ip_addr,
> > sizeof(server_ip_addr)), I get errno = 25 (Inappropriate ioctl for
> > device).> 
> >  Does it mean b/c TCP is not supported in RTnet and I attempt to
> >  connect> 
> > via TCP (w/ socket SOCK_STREAM)?
> 
> Sorry I can't answer the other questions, as I am not working on rtnet
> myself. However, I would suspect that since TCP doesn't compile that
> is why SOCK_STREAM is not working.

In the old days of Xenomai 2.6 rttcp worked so I am confident that we can 
make it work again.

Currently, I am working on fixing two additional bugs in rttcp and I can 
include this compile bug in rt_tcp_accept() Phong found. I will soon 
come up with a patch series, I think.

> Try SOCK_DGRAM and see if it
> works. If not, then are you sure you have rtnet drivers for your
> network device compiled and ready to use? Remember, the driver for
> your network device must be realtime-safe. I recall seeing a guide
> for some simple changes to make to a Linux ethernet driver to use as
> a starting point for porting it to RTNET, but I can't seem to find
> it. Anyone?

Do you mean kernel/drivers/net/doc/README.drvporting?

-- 
Sebastian






  reply	other threads:[~2018-10-06  8:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-05  1:02 [Xenomai] Does RTNET supports TCP? Pham, Phong
2018-10-06  6:35 ` Steven Seeger
2018-10-06  8:07   ` Sebastian Smolorz [this message]
2018-10-08 13:08     ` Steven Seeger
2018-10-08 17:55     ` Pham, Phong
2018-10-08 18:49       ` Sebastian Smolorz
2018-10-08 19:46         ` Steven Seeger

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=3016131.PUnFZZDcdA@lenni \
    --to=sebastian.smolorz@gmx.de \
    --cc=hillman@ddc-web.com \
    --cc=steven.seeger@nasa.gov \
    --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.