From: willemb@google.com
To: Alex Elder <elder@ieee.org>,
Willem de Bruijn <willemdebruijn.kernel@gmail.com>,
netdev@vger.kernel.org
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
elder@kernel.org, Willem de Bruijn <willemb@google.com>
Subject: Re: [PATCH net-next 1/6] net: ipa: remove ethernet-specific artifacts from modem netdev setup
Date: Thu, 26 Nov 2026 12:49:01 -0500 [thread overview]
Message-ID: <willemb.3268949a56d77@google.com> (raw)
In-Reply-To: <91234e5b-6684-4acb-91b3-be8ab11ac032@ieee.org>
Alex Elder wrote:
> On 11/24/26 11:05 AM, Willem de Bruijn wrote:
> > From: Willem de Bruijn <willemb@google.com>
> >
> > Commit 75944b040bbc ("net: ipa: open-code ether_setup()") open-coded
> > ether_setup(), including fields that do not apply to this headerless
> > ARPHRD_RAWIP device:
> >
> > - min_header_len = ETH_HLEN, while hard_header_len is 0
> > - an Ethernet broadcast address, while addr_len is 0
> > - clearing IFF_BROADCAST | IFF_MULTICAST, which are never set
> >
> > Remove these and the now unused etherdevice.h include.
> >
> > With min_header_len left at 0, the device behaves like other headerless
> > devices (such as tun and rmnet) in af_packet's vlan_get_tci(), where
> > min_header_len == hard_header_len instead of returning early on the
> > mismatch. Normal IPA traffic uses ETH_P_MAP rather than a VLAN
> > ethertype, so it is unaffected.
> >
> > Cc: Alex Elder <elder@kernel.org>
> > Signed-off-by: Willem de Bruijn <willemb@google.com>
> This looks pretty reasonable to me. The "don't open-code"
> change was meant to avoid duplicate code. All the assignments
> were preserved, but I didn't fully understand how these fields
> were used.
> For now I'll just ack this. If I manage to get my system up
> to test this, I'll do that and provide a Reviewed-by, but I'm
> not sure I'll get to that soon.
> Acked-by: Alex Elder <elder@riscstar.com>
Thanks Alex!
next prev parent reply other threads:[~2026-11-26 17:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 17:05 [PATCH net-next 0/6] net: remove dev_validate_header() and net_device::min_header_len Willem de Bruijn
2026-11-24 17:05 ` [PATCH net-next 1/6] net: ipa: remove ethernet-specific artifacts from modem netdev setup Willem de Bruijn
2026-11-24 17:57 ` Alex Elder
2026-11-26 17:49 ` willemb [this message]
2026-11-24 17:05 ` [PATCH net-next 2/6] net: remove header_ops->validate and dev_validate_header() Willem de Bruijn
2026-11-25 20:06 ` netdev-bot+sashiko
2026-11-24 17:05 ` [PATCH net-next 3/6] packet: validate TX header length before skb allocation Willem de Bruijn
2026-11-25 20:06 ` netdev-bot+sashiko
2026-11-24 17:05 ` [PATCH net-next 4/6] packet: reset network header on all headerless devices Willem de Bruijn
2026-11-24 17:05 ` [PATCH net-next 5/6] packet: use Ethernet header length in vlan_get_tci() Willem de Bruijn
2026-11-25 20:06 ` netdev-bot+sashiko
2026-11-24 17:05 ` [PATCH net-next 6/6] net: remove unused net_device::min_header_len Willem de Bruijn
2026-11-26 17:46 ` [PATCH net-next 0/6] net: remove dev_validate_header() and net_device::min_header_len willemb
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=willemb.3268949a56d77@google.com \
--to=willemb@google.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=elder@ieee.org \
--cc=elder@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=willemdebruijn.kernel@gmail.com \
/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