Re: [PATCH net-next v4 4/4] net: gro: move L3 flush checks to tcp_gro_receive

From: Jakub Kicinski
Date: Mon Mar 25 2024 - 22:33:53 EST


On Mon, 25 Mar 2024 19:25:43 +0100 Richard Gobert wrote:
> + const u32 id = ntohl(*(__be32 *)&iph->id);
> + const u32 id2 = ntohl(*(__be32 *)&iph2->id);
> + const int flush_id = ntohs(id >> 16) - ntohs(id2 >> 16);

The endian conversions don't match types here. sparse is unhappy.
If id is in host endian shouldn't it be htons(id >> 16) ?
Also if you cast to a bitwise type you need __force
--
pw-bot: cr