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

Shi Lei shi_lei at massclouds.com
Mon Jan 11 02:23:33 UTC 2021


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





More information about the libvir-list mailing list