Re: [PATCH net-next v3 05/18] xdp, xsk: constify read-only arguments of some static inline helpers

From: Toke Høiland-Jørgensen
Date: Fri Nov 01 2024 - 07:47:53 EST


Alexander Lobakin <aleksander.lobakin@xxxxxxxxx> writes:

> Lots of read-only helpers for &xdp_buff and &xdp_frame, such as getting
> the frame length, skb_shared_info etc., don't have their arguments
> marked with `const` for no reason. Add the missing annotations to leave
> less place for mistakes and more for optimization.
>
> Signed-off-by: Alexander Lobakin <aleksander.lobakin@xxxxxxxxx>

Reviewed-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>