Re: [PATCH bpf] bpf, test_run: fix &xdp_frame misplacement for LIVE_FRAMES

From: Alexander Lobakin
Date: Mon Feb 13 2023 - 09:06:20 EST


From: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>
Date: Fri, 10 Feb 2023 18:38:45 +0100

> Alexander Lobakin <alexandr.lobakin@xxxxxxxxx> writes:
>
>> From: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>
>> Date: Thu, 09 Feb 2023 21:04:38 +0100

[...]

> both of those assignments refer to flex arrays, which seems a bit
> inconsistent. The second one works because it's assigning to a void
> pointer, so the compiler doesn't complain about the type mismatch; but
> it should work with just 'data = head->data' as well, so can we update
> that as well for consistency?

Aaaah, I see, you're right. Will do in a minute.

>
> -Toke
Thanks,
Olek