Re: Why max netlink msg size is limited to 16k

2017-05-23 Thread prashantkumar dhotre
will kernel also send NLMSG_DONE type msg at end to user app? How should I handle in user app. Can you point me to few example please. On Sat, Apr 22, 2017 at 9:06 PM, Eric Dumazet wrote: > On Sat, 2017-04-22 at 19:43 +0530, prashantkumar dhotre wrote: >> I am observing that max netlink

Why max netlink msg size is limited to 16k

2017-04-22 Thread prashantkumar dhotre
I am observing that max netlink msg that my kernel module can send to user app is close to 16K. For larger sizes, genlmsg_unicast() succeeds but my app does not receive data. I have tried increasing RECV buffer size in my user app but that does not help. Regards

Re: EPOLLERR on memory mapped netlink socket

2017-01-23 Thread prashantkumar dhotre
Appreciate any help on this Thanks On Mon, Jan 23, 2017 at 9:19 AM, prashantkumar dhotre wrote: > Hi experts, > I am new to netlink sockets. > In my app , I am getting EPOLLERR in epoll_wait() on netlink socket > continuously. > epoll just notifies that there is a read event on

EPOLLERR on memory mapped netlink socket

2017-01-22 Thread prashantkumar dhotre
Hi experts, I am new to netlink sockets. In my app , I am getting EPOLLERR in epoll_wait() on netlink socket continuously. epoll just notifies that there is a read event on socket (it does not tell if it is read or epollerr). What could be cause of this and what EPOLLERR on memory mapped netlink s