Thread (26 messages) flat view 26 messages, 5 authors, 2021-12-03

RE: [PATCH net-next 2/2] net: optimize skb_postpull_rcsum()

From: David Laight <hidden>
Date: 2021-12-03 17:41:40

...
quoted
There are also 40 csum_partial(buf, len, 0).
If all the buffer is zero they'll return zero - invalid.
They ought to be changed to csum_partial(buf, len, 0xffff).
Please point where all zero buffers can be valid in the first place.
They probably can't be.
But I bet a lot of the code was written without realising it mattered.

A quick scan does imply that they are all probably ok.

But I have spotted 18 ~csum_fold() - they may be dubious.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help