Re: [PATCH net-next v3] net/packet: Add getsockopt support for PACKET_COPY_THRESH

From: Willem de Bruijn
Date: Fri Mar 08 2024 - 09:07:43 EST


Juntong Deng wrote:
> Currently getsockopt does not support PACKET_COPY_THRESH,
> and we are unable to get the value of PACKET_COPY_THRESH
> socket option through getsockopt.
>
> This patch adds getsockopt support for PACKET_COPY_THRESH.
>
> In addition, this patch converts access to copy_thresh to
> READ_ONCE/WRITE_ONCE.
>
> Signed-off-by: Juntong Deng <juntong.deng@xxxxxxxxxxx>

Reviewed-by: Willem de Bruijn <willemb@xxxxxxxxxx>

Thanks for addressing the READ_ONCE/WRITE_ONCE.