All of lore.kernel.org
 help / color / mirror / Atom feed
* Xenomai 4 / EVL: Out-of-band access to EtherNet interface
@ 2022-04-27 17:10 Kevin Hall
  2022-04-30  7:19 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Hall @ 2022-04-27 17:10 UTC (permalink / raw)
  To: xenomai

Hi,


Is OOB I/O service a candidate for an EtherNet-based fieldbus protocol? I
read in a comment that it only applies to VLAN-tagged IP protocols, but I
don't know how old that is or if things have changed. I am able to send and
receive packets when using send() and recv(), but since these are not
out-of-band, I am often times seeing large delays in the processing of
data. That's why I am trying to use oob_read(...) and oob_write(...).


Additional Information: I am using Xenomai 5.15 with a Raspberry Pi 4. The
fieldbus protocol is EtherCAT (0x88a4).


I would greatly appreciate any suggestions or help.


Thank you!


Kevin Hall

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

* Re: Xenomai 4 / EVL: Out-of-band access to EtherNet interface
  2022-04-27 17:10 Xenomai 4 / EVL: Out-of-band access to EtherNet interface Kevin Hall
@ 2022-04-30  7:19 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2022-04-30  7:19 UTC (permalink / raw)
  To: Kevin Hall; +Cc: xenomai


Kevin Hall via Xenomai <xenomai@xenomai.org> writes:

> Hi,
>
>
> Is OOB I/O service a candidate for an EtherNet-based fieldbus protocol? I
> read in a comment that it only applies to VLAN-tagged IP protocols, but I
> don't know how old that is or if things have changed. I am able to send and
> receive packets when using send() and recv(), but since these are not
> out-of-band, I am often times seeing large delays in the processing of
> data. That's why I am trying to use oob_read(...) and oob_write(...).
>
>
> Additional Information: I am using Xenomai 5.15 with a Raspberry Pi 4. The
> fieldbus protocol is EtherCAT (0x88a4).
>
>

oob_read/write is independent from the EVL net mini-stack, this is a
generic API for talking to oob-capable drivers. The mini-stack
implements such a driver, which at the moment can (only) send/receive
raw ethernet packets via common ethernet drivers.

To get this done, we need a way to distinguish between regular and oob
traffic, this is where VLAN tagging comes into play. Some VLANs can be
assigned to oob traffic, handled by the mini-stack as such instead of
leaving it to the regular network stack for processing (see
evl_net_ether_accept() in kernel/evl/net/input.c which deals with
ingress traffic).

-- 
Philippe.


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

end of thread, other threads:[~2022-04-30  7:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 17:10 Xenomai 4 / EVL: Out-of-band access to EtherNet interface Kevin Hall
2022-04-30  7:19 ` 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.