[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200624175646.15d19ad1@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Wed, 24 Jun 2020 17:56:46 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Matheus Rodrigues <matheusrk800@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: Generic Netlink multipart messages
On Wed, 24 Jun 2020 11:59:00 -0300 Matheus Rodrigues wrote:
> I'm trying to send a relatively "big" string (+/- 60Kb) through
> generic netlink, for this, I know that I've to use the multipart
> mechanism offered by the API, using the flags NLM_F_MULTI and
> NLMSG_DONE, but I don't know how to implement it, there is some
> example which breaks the string in various packages and send it to
> kernel? I looked a lot for some example but I didn't find any that
> does this. If there is none, so how do I do that using only the
> mechanism offered by libnl and generic netlink?
Not sure what your attribute structure is but you'd probably need to
chunk it up and include offset in each message. See how devlink region
read is implemented, maybe?
Powered by blists - more mailing lists