All of lore.kernel.org
 help / color / mirror / Atom feed
* Porting RT net driver to dovetail
@ 2024-06-12  7:07 François Legal
  2024-06-12  8:07 ` Chen, Hongzhan
  0 siblings, 1 reply; 8+ messages in thread
From: François Legal @ 2024-06-12  7:07 UTC (permalink / raw)
  To: xenomai

Hello list,

could anybody point me to some example NIC driver for dovetail. I'm starting to transition from ipipe/rtdm to dovetail.

Thanks in advance

François


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

* RE: Porting RT net driver to dovetail
  2024-06-12  7:07 Porting RT net driver to dovetail François Legal
@ 2024-06-12  8:07 ` Chen, Hongzhan
  2024-06-12 12:08   ` François Legal
  0 siblings, 1 reply; 8+ messages in thread
From: Chen, Hongzhan @ 2024-06-12  8:07 UTC (permalink / raw)
  To: François Legal, xenomai@lists.linux.dev



>-----Original Message-----
>From: François Legal <devel@thom.fr.eu.org>
>Sent: Wednesday, June 12, 2024 3:08 PM
>To: xenomai@lists.linux.dev
>Subject: Porting RT net driver to dovetail
>
>Hello list,
>
>could anybody point me to some example NIC driver for dovetail. I'm starting

Theoretically, the existing NIC drivers in Xenomai 3.2 is compatible with Dovetail. 
The drivers works with I-PIPE still works with Dovetail. I just had tested rt_igb and rt_igc
on limited NICs and platforms two years ago and cannot suggest more.

Regards

Hongzhan Chen

>to transition from ipipe/rtdm to dovetail.
>
>Thanks in advance
>
>François
>


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

* RE: Porting RT net driver to dovetail
  2024-06-12  8:07 ` Chen, Hongzhan
@ 2024-06-12 12:08   ` François Legal
  2024-06-12 12:40     ` Richard Weinberger
  0 siblings, 1 reply; 8+ messages in thread
From: François Legal @ 2024-06-12 12:08 UTC (permalink / raw)
  To: Chen, Hongzhan; +Cc: xenomai@lists.linux.dev

Thanks for the answer.

Maybe I mixed things up, but I thought that with dovetail, one would somehow use  linux network stack with special OOB drivers, and have no more to rely on RTNET. Is that correct ?

François

Le Mercredi, Juin 12, 2024 10:07 CEST, "Chen, Hongzhan" <hongzhan.chen@intel.com> a écrit:

>
>
> >-----Original Message-----
> >From: François Legal <devel@thom.fr.eu.org>
> >Sent: Wednesday, June 12, 2024 3:08 PM
> >To: xenomai@lists.linux.dev
> >Subject: Porting RT net driver to dovetail
> >
> >Hello list,
> >
> >could anybody point me to some example NIC driver for dovetail. I'm starting
>
> Theoretically, the existing NIC drivers in Xenomai 3.2 is compatible with Dovetail.
> The drivers works with I-PIPE still works with Dovetail. I just had tested rt_igb and rt_igc
> on limited NICs and platforms two years ago and cannot suggest more.
>
> Regards
>
> Hongzhan Chen
>
> >to transition from ipipe/rtdm to dovetail.
> >
> >Thanks in advance
> >
> >François
> >
>


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

* Re: Porting RT net driver to dovetail
  2024-06-12 12:08   ` François Legal
@ 2024-06-12 12:40     ` Richard Weinberger
  2024-06-12 15:01       ` François Legal
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Weinberger @ 2024-06-12 12:40 UTC (permalink / raw)
  To: François Legal; +Cc: Chen, Hongzhan, xenomai@lists.linux.dev

On Wed, Jun 12, 2024 at 2:09 PM François Legal <devel@thom.fr.eu.org> wrote:
>
> Thanks for the answer.
>
> Maybe I mixed things up, but I thought that with dovetail, one would somehow use  linux network stack with special OOB drivers, and have no more to rely on RTNET. Is that correct ?

It depends on whether you want to use Xenomai or EVL.

-- 
Thanks,
//richard

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

* Re: Porting RT net driver to dovetail
  2024-06-12 12:40     ` Richard Weinberger
@ 2024-06-12 15:01       ` François Legal
  2024-06-12 15:09         ` Philippe Gerum
  0 siblings, 1 reply; 8+ messages in thread
From: François Legal @ 2024-06-12 15:01 UTC (permalink / raw)
  To: Richard Weinberger; +Cc: Chen, Hongzhan, xenomai@lists.linux.dev

Well, I'm not sure but last time I checked, RTNET would not be part of xenomai 4 IIRC. So I guess EVL is the way to go.

François

Le Mercredi, Juin 12, 2024 14:40 CEST, Richard Weinberger <richard.weinberger@gmail.com> a écrit:

> On Wed, Jun 12, 2024 at 2:09 PM François Legal <devel@thom.fr.eu.org> wrote:
> >
> > Thanks for the answer.
> >
> > Maybe I mixed things up, but I thought that with dovetail, one would somehow use  linux network stack with special OOB drivers, and have no more to rely on RTNET. Is that correct ?
>
> It depends on whether you want to use Xenomai or EVL.
>
> --
> Thanks,
> //richard


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

* Re: Porting RT net driver to dovetail
  2024-06-12 15:01       ` François Legal
@ 2024-06-12 15:09         ` Philippe Gerum
  2024-06-13  6:18           ` François Legal
  0 siblings, 1 reply; 8+ messages in thread
From: Philippe Gerum @ 2024-06-12 15:09 UTC (permalink / raw)
  To: François Legal
  Cc: Richard Weinberger, Chen, Hongzhan, xenomai@lists.linux.dev


François Legal <devel@thom.fr.eu.org> writes:

> Well, I'm not sure but last time I checked, RTNET would not be part of xenomai 4 IIRC. So I guess EVL is the way to go.
>

Correct, this is the one providing a real-time net stack based on the
dovetail net services (which RTnet does not use). This work is ongoing
(see the wip/net branch of the linux-evl tree). ETA: mid-july for a
complete UDP stack. ATM, we only have a real-time capable raw socket
interface.

-- 
Philippe.

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

* Re: Porting RT net driver to dovetail
  2024-06-12 15:09         ` Philippe Gerum
@ 2024-06-13  6:18           ` François Legal
  2024-06-24  7:46             ` Philippe Gerum
  0 siblings, 1 reply; 8+ messages in thread
From: François Legal @ 2024-06-13  6:18 UTC (permalink / raw)
  To: Philippe Gerum
  Cc: Richard Weinberger, Chen, Hongzhan, xenomai@lists.linux.dev

Thanks for the clarification.

I'm not sure I understand the sentence "ATM, we only have a real-time capable raw socket interface".
In my application, we only use RTNET for level 2 communication. Is this already available.

And so, back to the original question, how do I transition from an RTNET/RTDM NIC to an EVL/??? one ?

Thanks in advance

François

Le Mercredi, Juin 12, 2024 17:09 CEST, Philippe Gerum <rpm@xenomai.org> a écrit:

>
> François Legal <devel@thom.fr.eu.org> writes:
>
> > Well, I'm not sure but last time I checked, RTNET would not be part of xenomai 4 IIRC. So I guess EVL is the way to go.
> >
>
> Correct, this is the one providing a real-time net stack based on the
> dovetail net services (which RTnet does not use). This work is ongoing
> (see the wip/net branch of the linux-evl tree). ETA: mid-july for a
> complete UDP stack. ATM, we only have a real-time capable raw socket
> interface.
>
> --
> Philippe.


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

* Re: Porting RT net driver to dovetail
  2024-06-13  6:18           ` François Legal
@ 2024-06-24  7:46             ` Philippe Gerum
  0 siblings, 0 replies; 8+ messages in thread
From: Philippe Gerum @ 2024-06-24  7:46 UTC (permalink / raw)
  To: François Legal
  Cc: Richard Weinberger, Chen, Hongzhan, xenomai@lists.linux.dev


François Legal <devel@thom.fr.eu.org> writes:

> Thanks for the clarification.
>
> I'm not sure I understand the sentence "ATM, we only have a real-time capable raw socket interface".

See https://source.denx.de/Xenomai/xenomai4/libevl/-/blob/master/tidbits/oob-net-icmp.c?ref_type=heads

> In my application, we only use RTNET for level 2 communication. Is this already available.
>
> And so, back to the original question, how do I transition from an RTNET/RTDM NIC to an EVL/??? one ?
>

When the upcoming EVL netstack is fully available (i.e. including the
driver<->evl interface along with the UDP layer), you will add
out-of-band support code to the vanilla driver directly. Typically, a
couple of handlers added to struct net_device_ops, such as:

#ifdef CONFIG_NET_OOB
	int			(*ndo_enable_oob)(struct net_device *dev);
	void			(*ndo_disable_oob)(struct net_device *dev);
	struct sk_buff *	(*ndo_alloc_tx_oob)(struct net_device *ndev);
#endif

The idea is to reuse the vanilla infrastructure as much as possible
instead of forking the driver code. There are a few techniques to have
in mind for doing so while preventing too many merge conflicts whenever
the upstream code changes, the netstack will come with the FEC driver
adapted that way as an illustration.

ETA: end of july.

-- 
Philippe.

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

end of thread, other threads:[~2024-06-24  7:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-12  7:07 Porting RT net driver to dovetail François Legal
2024-06-12  8:07 ` Chen, Hongzhan
2024-06-12 12:08   ` François Legal
2024-06-12 12:40     ` Richard Weinberger
2024-06-12 15:01       ` François Legal
2024-06-12 15:09         ` Philippe Gerum
2024-06-13  6:18           ` François Legal
2024-06-24  7:46             ` Philippe Gerum

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.