Thread (7 messages) 7 messages, 3 authors, 2017-08-18

Re: [PATCH net v2] datagram: When peeking datagrams with offset < 0 don't skip empty skbs

flat view

From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2017-08-18 17:56:52

quoted
quoted
+   if (flags & MSG_PEEK && *off >= 0) {
+           peek_at_off = true;
+           _off = *off;
+   }
I think that unlikely() will fit the above condition
Sounds good.
Doesn't the compiler implicitly mark branches as unlikely if they
do not have an else clause?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help