Skip to contentSkip to conversation

docs: netlink: add NLMSG_DONE message format for doit actions

PATCH Superseded Jiri Pirko 2 participants 3 messages Dec 1, 2023

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Jiri Pirko

author
#0 lore raw

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
index 7b1d401210ef..e0efa75db94b 100644
@@ -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
maintainer
#1 lore raw

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

author
#2 lore raw
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!