Skip to contentSkip to conversation

mctp: emit RTM_NEWADDR and RTM_DELADDR

PATCH Applied Matt Johnston 2 participants 2 messages Dec 20, 2021 – Dec 21, 2021

Subsystems (3)
lore
Share & tools
lore

Matt Johnston

author maintainer
#0 lore raw

PATCH v3 1/1 mctp: emit RTM_NEWADDR and RTM_DELADDR

Userspace can receive notification of MCTP address changes via RTNLGRP_MCTP_IFADDR rtnetlink multicast group.

---
v2: Simplify error return path, fix local variable ordering
v3: Fix address size for nlmsg allocation, warn on undersized

---
 include/uapi/linux/rtnetlink.h |  2 ++
 net/mctp/device.c              | 53 ++++++++++++++++++++++++++++++----
 2 files changed, 50 insertions(+), 5 deletions(-)
include/uapi/linux/rtnetlink.h +2 -0
index 5888492a5257..93d934cc4613 100644
@@ -754,6 +754,8 @@ enum rtnetlink_groups {
 #define RTNLGRP_NEXTHOP		RTNLGRP_NEXTHOP
 	RTNLGRP_BRVLAN,
 #define RTNLGRP_BRVLAN		RTNLGRP_BRVLAN
+	RTNLGRP_MCTP_IFADDR,
+#define RTNLGRP_MCTP_IFADDR	RTNLGRP_MCTP_IFADDR
 	__RTNLGRP_MAX
 };
 #define RTNLGRP_MAX	(__RTNLGRP_MAX - 1)
net/mctp/device.c +48 -5

90 lines not on this page · raw message

Signature · 1 line
2.32.0
#1 lore raw
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

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

Quoted 9 lines · On Mon, 20 Dec 2021 10:31:04 +0800 you wrote:

Userspace can receive notification of MCTP address changes via RTNLGRP_MCTP_IFADDR rtnetlink multicast group.

---
v2: Simplify error return path, fix local variable ordering
v3: Fix address size for nlmsg allocation, warn on undersized

[...]

Here is the summary with links:
- [net-next,v3] mctp: emit RTM_NEWADDR and RTM_DELADDR
https://git.kernel.org/netdev/net-next/c/dbcefdeb2a58

You are awesome, thank you!

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