Re: [PATCH net-next v3 04/18] bpf, xdp: constify some bpf_prog * function arguments
From: Toke Høiland-Jørgensen
Date: Fri Nov 01 2024 - 07:46:57 EST
Alexander Lobakin <aleksander.lobakin@xxxxxxxxx> writes:
> In lots of places, bpf_prog pointer is used only for tracing or other
> stuff that doesn't modify the structure itself. Same for net_device.
> Address at least some of them and add `const` attributes there. The
> object code didn't change, but that may prevent unwanted data
> modifications and also allow more helpers to have const arguments.
>
> Signed-off-by: Alexander Lobakin <aleksander.lobakin@xxxxxxxxx>
Reviewed-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>