From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
To: 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: [PATCH net-next 0/6] net: remove dev_validate_header() and net_device::min_header_len
Date: Tue, 24 Nov 2026 12:05:38 -0500 [thread overview]
Message-ID: <20261124170551.1874487-1-willemdebruijn.kernel@gmail.com> (raw)
From: Willem de Bruijn <willemb@google.com>
Remove unused link-layer header validation plumbing, clean up the
remaining af_packet users, and drop net_device::min_header_len.
Mostly cleanup, with two user-visible changes:
- Patch 4: on devices that set hard_header_len but have no link layer
header (e.g., PPP), SOCK_RAW and TX_RING sends now always have
skb->network_header at the start of the packet, not only for short
packets.
- Patch 5: on SOCK_DGRAM, the VLAN TCI of non-offloaded tags is now
reported on all Ethernet devices, including those with
hard_header_len > ETH_HLEN, and is 0 on non-Ethernet devices.
1. Drop stale Ethernet fields (including min_header_len) in IPA modem.
2. Remove header_ops->validate and dev_validate_header().
3. Move af_packet TX header length checks ahead of skb allocation.
4. Reset network header on all headerless devices via dev_has_header().
5. Use ARPHRD_ETHER / ARPHRD_LOOPBACK and ETH_HLEN in vlan_get_tci().
6. Remove unused net_device::min_header_len.
Testing (under vng):
- tools/testing/selftests/net: psock_snd.sh, psock_tpacket, and
txring_overwrite.
- Custom tests for short/zero header validation (SOCK_RAW, SOCK_DGRAM,
SOCK_PACKET, TX_RING), non-offloaded outgoing VLAN TCI capture
(AUXDATA, TPACKET_V2, TPACKET_V3), and 48B/100B IPv6 TX over sit
(SOCK_RAW, SOCK_PACKET, TX_RING).
Willem de Bruijn (6):
net: ipa: remove ethernet-specific artifacts from modem netdev setup
net: remove header_ops->validate and dev_validate_header()
packet: validate TX header length before skb allocation
packet: reset network header on all headerless devices
packet: use Ethernet header length in vlan_get_tci()
net: remove unused net_device::min_header_len
.../networking/net_cachelines/net_device.rst | 1 -
drivers/net/ipa/ipa_modem.c | 4 -
drivers/net/loopback.c | 1 -
include/linux/netdevice.h | 18 -----
net/ethernet/eth.c | 1 -
net/packet/af_packet.c | 80 ++++++++-----------
6 files changed, 32 insertions(+), 73 deletions(-)
--
2.56.1.839.g22a8290db9-goog
next reply other threads:[~2026-11-24 17:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 17:05 Willem de Bruijn [this message]
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
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=20261124170551.1874487-1-willemdebruijn.kernel@gmail.com \
--to=willemdebruijn.kernel@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=elder@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=willemb@google.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 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.