Thread (13 messages) flat view 13 messages, 4 authors, 2020-01-24

Re: [PATCH v3] [net]: Fix skb->csum update in inet_proto_csum_replace16().

From: Florian Westphal <fw@strlen.de>
Date: 2020-01-23 14:29:43
Also in: lkml, netfilter-devel

Daniel Borkmann [off-list ref] wrote:
On 1/23/20 9:21 AM, Florian Westphal wrote:
quoted
So, AFAIU from what you're saying above the patch seems fine as-is and
just needs a more verbose commit message explaining why replace16()
doesn't update skb->csum while all the other ones do.

Is that correct?
Probably better a comment in the code to avoid confusion on why it's not done in
inet_proto_csum_replace16() but all the other cases; mainly to avoid some folks
in future sending random cleanup patches w/ removal attempts.
Makes sense, thanks!

Praveen, can you spin a v4 with a comment in replace16 that it
intentionally elides the skb->csum update because the function is
only used by ipv6?

Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help