netlink: add flow control for memory mapped I/O
authorPatrick McHardy <kaber@trash.net>
Wed, 17 Apr 2013 06:47:05 +0000 (06:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2013 18:57:58 +0000 (14:57 -0400)
commitcd1df525da59c64244d27b4548ff5d132489488a
tree13cdf72588bd1124daf8bb74f8d1d27ab060ca2b
parentf9c2288837ba072b21dba955f04a4c97eaa77b1e
netlink: add flow control for memory mapped I/O

Add flow control for memory mapped RX. Since user-space usually doesn't
invoke recvmsg() when using memory mapped I/O, flow control is performed
in netlink_poll(). Dumps are allowed to continue if at least half of the
ring frames are unused.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c