forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtnetlink: add new helper rtnl_configure_link_notify()
This patch update rtnl_configure_link() to rtnl_configure_link_nlh() by adding parameter netlink message header and port id so we can notify the userspace about the new link info if NLM_F_ECHO flag is set. The rtnl_configure_link() will be a wrapper of the new function. The new call chain looks like: - rtnl_configure_link_notify() - __dev_notify_flags() - rtmsg_ifinfo_nlh() - rtmsg_ifinfo_event() - rtmsg_ifinfo_build_skb() - rtmsg_ifinfo_send() All the functions in this call chain will add parameter nlh and pid, so we can use them in the last call rtnl_notify(). Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
- Loading branch information
1 parent
d742ea6
commit 8c50622
Showing
4 changed files
with
40 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters