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

From: Jason Xing
Date: Fri Mar 08 2024 - 09:14:43 EST


On Fri, Mar 8, 2024 at 9:08 PM Juntong Deng <juntong.deng@xxxxxxxxxxx> 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: Jason Xing <kerneljasonxing@xxxxxxxxx>