Re: [PATCH net v3 6/8] net: add a sysctl to opt out of virtio net hdr checksum validation

From
Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date
2026-10-20 23:13:44
Also in
linux-doc, lkml, virtualization
Reply to
Michael S. Tsirkin, 2026-10-20
Michael S. Tsirkin wrote:
On Tue, Oct 20, 2026 at 03:54:23PM -0400, Willem de Bruijn wrote:
quoted
quoted
+/*
+ * Protects changes to virtio_net_hdr_csum_check_disabled_key and each
+ * net->core.sysctl_virtio_net_hdr_csum_check. Readers don't use a lock.
it appears that they take the mutex_lock below
Some of them? But
virtio_net_hdr_csum_check_disabled doesn't, that's the point, right?
Yes, but the statement is then too absolute:
_some_ (or most) readers don't use a lock.
Thread (35 messages) 35 messages, 6 authors, last reply 2026-10-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help