All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Sri Subramanian <sridhar.subramanian@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: Xenomai 4 / oob_sendmsg crashes kernel from tidbits/oob-net-icmp
Date: Thu, 21 Jul 2022 09:39:50 +0200	[thread overview]
Message-ID: <87a692ewlf.fsf@xenomai.org> (raw)
In-Reply-To: <CAAm9oxpbtX2qXHPxOGCQre14_7T7jZtDuN=b5U2sA2B_su6ARQ@mail.gmail.com>


Sri Subramanian <sridhar.subramanian@gmail.com> writes:

> On Wed, Jul 20, 2022 at 10:47 AM Philippe Gerum <rpm@xenomai.org> wrote:
>>
>>
>> Ok. On my end, I'll connect a pi4 with the i.MX6, to add the GENET MAC
>> module to the picture.
>>
>
> It looks like the GENET MAC driver (or the interface) is the culprit.
> For some reason, it
> restricts the packets sent to 10 after every netif down/up toggle.
>

Weird. I'll trace that.

> I attached a network adapter card to the PCIe interface and connected
> that to the switch.
>
> Both the oob-net-icmp and my packet generator are able to call oob_sendmsg
> continuously!
>
> One anomaly I found in my experimentation:
>
> - When I try the USB-ethernet adapter, the packets are not seen by the
> EVL mini-stack and
> despite the fact that /sys/class/net/eth1.42/oob_port is set to 1 and
> control/net_vlans is 42,
> the packets are read/responded to by the Linux kernel and oob-net-icmp
> is just waiting.
>
> Previously I've used the USB-ethernet adapter for all tcp/ip
> communication to the device
> and it works just fine.
>

I suspect something is wrong in the oob traffic detection handler,
namely [1]. For some reason, incoming packets are not seen as belonging
to the oob vlan. Most likely something I overlooked when looking for the
802.1q encapsulation, which the USB adapter triggers.

[1] https://source.denx.de/Xenomai/xenomai4/linux-evl/-/blob/v5.15.y-evl-rebase/kernel/evl/net/ethernet/input.c#L36

-- 
Philippe.

  reply	other threads:[~2022-07-21  7:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-12  1:10 Xenomai 4 / oob_sendmsg crashes kernel from tidbits/oob-net-icmp Sri Subramanian
2022-07-14  8:16 ` Philippe Gerum
2022-07-14 15:18 ` Philippe Gerum
2022-07-15  0:59   ` Sri Subramanian
2022-07-19 15:29     ` Sri Subramanian
2022-07-20  8:42       ` Philippe Gerum
2022-07-20 16:35         ` Sri Subramanian
2022-07-20 17:41           ` Philippe Gerum
2022-07-20 19:48             ` Sri Subramanian
2022-07-21  0:38             ` Sri Subramanian
2022-07-21  7:39               ` Philippe Gerum [this message]
2022-07-21 14:21                 ` Philippe Gerum
2022-07-22 17:06                   ` Philippe Gerum
2022-07-22 19:30                     ` Sri Subramanian

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=87a692ewlf.fsf@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=sridhar.subramanian@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.