[PATCHv3 0/4] netlink: Extract common code to simplify netlink functions

Shi Lei posted 4 patches 1 week, 3 days ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20210111022337.27473-1-shi_lei@massclouds.com
src/util/virnetlink.c | 321 +++++++++++++++++++-----------------------
src/util/virnetlink.h |  27 +---
2 files changed, 149 insertions(+), 199 deletions(-)

[PATCHv3 0/4] netlink: Extract common code to simplify netlink functions

Posted by Shi Lei 1 week, 3 days ago
V2 here: https://www.redhat.com/archives/libvir-list/2021-January/msg00174.html

Since V2:

    - Fix the post process of virNetlinkTalk().
      If virNetlinkTalk() succeeds and we got an NLMSG_ERROR packet with
      the zero-value error, it should be regarded as a success.

    - Several fixes for the pointer of resp in virNetlinkTalk().

    - Minor fixes according to coding style.

Shi Lei (4):
  netlink: Remove invalid flags(NLM_F_CREATE and NLM_F_EXCL) for RTM_DELLINK
  netlink: Minor changes for macros NETLINK_MSG_[NEST_START|NEST_END|PUT]
  netlink: Introduce macro NETLINK_MSG_APPEND to wrap nlmsg_append
  netlink: Introduce a helper function to simplify netlink functions

 src/util/virnetlink.c | 321 +++++++++++++++++++-----------------------
 src/util/virnetlink.h |  27 +---
 2 files changed, 149 insertions(+), 199 deletions(-)

-- 
2.25.1