Juntong Deng 76839e2f1f net/packet: Add getsockopt support for PACKET_COPY_THRESH
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@outlook.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Link: https://lore.kernel.org/r/AM6PR03MB58487A9704FD150CF76F542899272@AM6PR03MB5848.eurprd03.prod.outlook.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-11 15:52:05 -07:00
..
2023-10-01 19:09:54 +01:00
2024-02-20 15:32:45 +01:00
2024-02-21 17:11:04 -08:00
2024-01-11 10:07:29 -08:00
2024-03-08 09:05:49 -08:00
2024-03-07 20:42:13 -08:00
2024-03-05 11:21:18 -08:00
2024-03-07 21:12:43 -08:00
2024-03-08 09:05:49 -08:00
2024-03-02 20:50:59 -08:00
2024-03-08 10:56:05 +00:00
2023-12-12 14:24:14 +01:00
2024-01-31 16:41:16 -08:00