Re: [PATCH net] netlink, mmap: don't walk rx ring on poll if receive queue non-empty

2015-09-09 Thread David Miller
From: Daniel Borkmann Date: Thu, 10 Sep 2015 01:20:46 +0200 > In case of netlink mmap, there can be situations where received frames > have to be placed into the normal receive queue. The ring buffer indicates > this through NL_MMAP_STATUS_COPY, so the user is asked to pick them up > via recvmsg(

[PATCH net] netlink, mmap: don't walk rx ring on poll if receive queue non-empty

2015-09-09 Thread Daniel Borkmann
In case of netlink mmap, there can be situations where received frames have to be placed into the normal receive queue. The ring buffer indicates this through NL_MMAP_STATUS_COPY, so the user is asked to pick them up via recvmsg(2) syscall, and to put the slot back to NL_MMAP_STATUS_UNUSED. Commit