Re: [ovs-dev] [PATCH] netlink-socket: Work around upstream kernel Netlink bug.

2014-07-02 Thread Ben Pfaff
On Mon, Jun 30, 2014 at 02:59:45PM -0700, Ben Pfaff wrote: > The upstream kernel net/netlink/af_netlink.c netlink_recvmsg() contains the > following code to refill the Netlink socket buffer with more dump skbs > while a dump is in progress: > > if (nlk->cb && atomic_read(&sk->sk_rmem_alloc)

[ovs-dev] [PATCH] netlink-socket: Work around upstream kernel Netlink bug.

2014-06-30 Thread Ben Pfaff
The upstream kernel net/netlink/af_netlink.c netlink_recvmsg() contains the following code to refill the Netlink socket buffer with more dump skbs while a dump is in progress: if (nlk->cb && atomic_read(&sk->sk_rmem_alloc) <= sk->sk_rcvbuf / 2) { ret = netlink_dump(sk);