public inbox for xenomai@lists.linux.dev
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Brandon Ho <brandonho667@gmail.com>
Cc: xenomai@lists.linux.dev,  Brandon Ho <brho@relativityspace.com>
Subject: Re: [PATCH] evl/net: rx filter precedence over loopback
Date: Sat, 28 Mar 2026 10:34:14 +0100	[thread overview]
Message-ID: <87a4vsb8mh.fsf@xenomai.org> (raw)
In-Reply-To: <20260327202446.592184-1-brho@relativityspace.com> (Brandon Ho's message of "Fri, 27 Mar 2026 13:24:38 -0700")

Brandon Ho <brandonho667@gmail.com> writes:

> Signed-off-by: Brandon Ho <brho@relativityspace.com>
> ---
>  include/evl/net/device.h | 17 +++++++++--------
>  1 file changed, 9 insertions(+), 8 deletions(-)
>
> diff --git a/include/evl/net/device.h b/include/evl/net/device.h
> index d0085b3c8..b8ed44377 100644
> --- a/include/evl/net/device.h
> +++ b/include/evl/net/device.h
> @@ -53,18 +53,19 @@ evl_net_filter_rx(struct net_device *dev, struct sk_buff *skb)
>  	struct evl_netdev_state *est = dev->oob_state.estate;
>  
>  	/*
> -	 * Unconditionally accept all traffic sent to oob-enabled
> -	 * loopback devices from the oob stage. Those devices are very
> -	 * unlikely to support VLANs, but we could still use a filter
> -	 * to accept in-band traffic, so keep on checking for the
> -	 * latter.
> +	 * RX filter takes precedence over loopback acceptance, because
> +	 * it may be used to route packets to in-band consumers.
> +	*/
> +	if (test_bit(EVL_NETDEV_RX_FILTER_BIT, &est->flags))
> +		return __evl_net_filter_rx(est, skb);
> +
> +	/*
> +	 * Accept all traffic sent to oob-enabled loopback devices 
> +	 * from the oob stage.
>  	 */
>  	if (dev->flags & IFF_LOOPBACK && running_oob())
>  		return EVL_RX_ACCEPT;
>  
> -	if (test_bit(EVL_NETDEV_RX_FILTER_BIT, &est->flags))
> -		return __evl_net_filter_rx(est, skb);
> -
>  	return EVL_RX_VLAN;
>  }

Thanks for contributing, appreciated. The change above is superseded by
the following (recent) commit:

https://gitlab.com/Xenomai/xenomai4/linux-evl/-/commit/0bf66e53dcf91da8b3a8c3283cb78ff17712c670

-- 
Philippe.

      reply	other threads:[~2026-03-28  9:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-27 20:24 [PATCH] evl/net: rx filter precedence over loopback Brandon Ho
2026-03-28  9:34 ` Philippe Gerum [this message]

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=87a4vsb8mh.fsf@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=brandonho667@gmail.com \
    --cc=brho@relativityspace.com \
    --cc=xenomai@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox