Thread (1 message) 1 message, 1 author, 2017-06-07

Re: Netlink messages without NLM_F_REQUEST flag

From: Leon Romanovsky <hidden>
Date: 2017-06-07 16:43:44
Also in: netdev

On Wed, Jun 7, 2017 at 7:37 PM, Jason Gunthorpe
[off-list ref] wrote:
On Wed, Jun 07, 2017 at 07:19:01PM +0300, Leon Romanovsky wrote:
quoted
It makes me wonder if it is expected behavior for
ibnl_rcv_reply_skb() to handle !NLM_F_REQUEST messages and do we
really need it? What are the scenarios?  In my use case, which is
for sure different from yours, I'm always setting NLM_F_REQUEST
while communicating with kernel.
If I recall the user space SA code issues REQUESTS from the kernel to
userspace, so userspace returns with the response format. This is
abnormal for netlink hence the special function.
In netlink semantics, kernel side is supposed to send netlink
notification message and userspace is supposed to send REQUEST.
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help