Skip to contentSkip to conversation

docs: netlink: add NLMSG_DONE message format for doit actions

PATCH Applied Jiri Pirko 4 participants 4 messages Dec 1, 2023 – Dec 4, 2023

Subsystems (3)
lore
Share & tools
lore

Jiri Pirko

author
#0 lore raw

PATCH v3 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.

---
v2->v3:
- s/avoided/absent/
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..aacffade8f84 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 absent.
+
 .. _res_fam:
 
 Resolving the Family ID
Signature · 1 line
2.41.0
Reviewed-by on v3 1/1
#2 lore raw
In reply to Jiri Pirko
Quoted 5 lines · Jiri Pirko
Documentation/userspace-api/netlink/intro.rst +0 -0
index 7b1d401210ef..aacffade8f84 100644

Documentation/userspace-api/netlink/intro.rst ACK attributes may be present:: · line 243

Quoted 10 lines
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 absent.
+
 .. _res_fam:
 
 Resolving the Family ID

LGTM, thanks!

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#3 lore raw
In reply to Jiri Pirko
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Fri, 1 Dec 2023 19:01:54 +0100 you wrote:

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.

[...]

Here is the summary with links:
- [net-next,v3] docs: netlink: add NLMSG_DONE message format for doit actions

    https://git.kernel.org/netdev/net-next/c/8ad55b1e73c4

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html