Re: [PATCH net-next v6 2/6] net: gro: add p_off param in *_gro_complete

From: Richard Gobert
Date: Thu Apr 11 2024 - 13:48:18 EST


Willem de Bruijn wrote:
> And the latter parse the network header for total_len/payload_len, to
> find their original offset.
>
> It's also a bit of a hack. But a lot smaller patch, probably.


While producing a smaller change - this is a bit of a hacky code change.
My initial idea was to use network_offset added to the CB in the 4th commit
- making a very small change. (https://lore.kernel.org/netdev/446695cb-50b8-4187-bf11-63aedb6e9aed@xxxxxxxxx/)

Eric suggested it'd make more sense to pass it off as a parameter
throughout the complete chain.