docs: netlink: add NLMSG_DONE message format for doit actions
Subsystems (3)
PATCH v2 1/1 docs: netlink: add NLMSG_DONE message format for doit actions
From: Jiri Pirko <[email protected]>
In case NLMSG_DONE message is sent as a reply to doit action, multiple kernel implementation do not send anything else than struct nlmsghdr. Add this note to the Netlink intro documentation.
---v1->v2:
- Changed the note completely
--- Documentation/userspace-api/netlink/intro.rst | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/userspace-api/netlink/intro.rst +4 -0
@@ -234,6 +234,10 @@ ACK attributes may be present:: | ** optionally extended ACK | ---------------------------------------------- +Note that some implementations may issue custom ``NLMSG_DONE`` messages +in reply to ``do`` action requests. In that case the payload is +implementation-specific and may also be avoided. + .. _res_fam: Resolving the Family ID
Signature · 1 line
2.41.0
Jakub Kicinski
maintainerDocumentation/userspace-api/netlink/intro.rst ACK attributes may be present:: · line 239
Quoted 3 lines · On Fri, 1 Dec 2023 16:34:09 +0100 Jiri Pirko wrote:
Documentation/userspace-api/netlink/intro.rst +3
-0+Note that some implementations may issue custom ``NLMSG_DONE`` messages +in reply to ``do`` action requests. In that case the payload is +implementation-specific and may also be avoided.
"avoided" does not read quite right here, perhaps a native speaker will disagree, but I'd s/avoided/absent/
Feel free to skip the 24h wait if you agree
Quoted 8 lines · Fri, Dec 01, 2023 at 05:38:03PM CET, [email protected] wrote:
Documentation/userspace-api/netlink/intro.rst ACK attributes may be present:: · line 239
Quoted 3 lines · On Fri, 1 Dec 2023 16:34:09 +0100 Jiri Pirko wrote:
Documentation/userspace-api/netlink/intro.rst +3
-0+Note that some implementations may issue custom ``NLMSG_DONE`` messages +in reply to ``do`` action requests. In that case the payload is +implementation-specific and may also be avoided."avoided" does not read quite right here, perhaps a native speaker will disagree, but I'd s/avoided/absent/
Feel free to skip the 24h wait if you agree
Okay. Will change and send v3. Thanks!