Re: Incorrect behaviour or documentation problem of SO_RXQ_OVFL

2017-11-20 Thread Michael Kerrisk (man-pages)
[Adding Neil, who wrote the original text. Maybe he has also some suggested improvement.] Hello Petr and Tobias, Thank you both for your reports about the incorrect documentation. See below. On 15 November 2017 at 16:14, Petr Malat wrote: > Hi! > Generic SO_RXQ_OVFL helpers sock_skb_set_dropcou

Incorrect behaviour or documentation problem of SO_RXQ_OVFL

2017-11-15 Thread Petr Malat
Hi! Generic SO_RXQ_OVFL helpers sock_skb_set_dropcount() and sock_recv_drops() implements returning of sk->sk_drops (the total number of dropped packets), although the documentation says the number of dropped packets since the last received one should be returned (quoting the current socket.7):