Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f978ef3 authored by Ben Hutchings's avatar Ben Hutchings
Browse files

sfc: Fix byte order warning in self-test



Add necessary cast when setting a bogus checksum.

Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
parent 0e0c3408
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -373,7 +373,7 @@ static void efx_iterate_state(struct efx_nic *efx)
	/* saddr set later and used as incrementing count */
	payload->ip.daddr = htonl(INADDR_LOOPBACK);
	payload->ip.ihl = 5;
	payload->ip.check = htons(0xdead);
	payload->ip.check = (__force __sum16) htons(0xdead);
	payload->ip.tot_len = htons(sizeof(*payload) - sizeof(struct ethhdr));
	payload->ip.version = IPVERSION;
	payload->ip.protocol = IPPROTO_UDP;