On Tue, Dec 1, 2026 at 3:53 AM Björn Töpel <bjo…@kernel.org> wrote: ...
> > + skb->protocol = eth->h_proto; > > + skb_set_network_header(skb, nhoff); > > + skb_set_transport_header(skb, skb_checksum_start_offset(skb));
> > I think you can drop skb_set_transport_header(). The core does it in > validate_xmit_skb().
Actually, no. validate_xmit_skb() calls netif_skb_features()->ice_features_check()->skb_network_header_len() (which uses transport_header to compute) first, then skb_set_transport_header(). So if we remove this one, ICE driver will run into trouble. While trying to fix this bug, I found the contract between the core stack and drivers is a bit hard to read. There are so many cases to consider carefully before getting my hands on it. Thanks, Jason