[PATCH 1/4] rtnl_link: decode more ifinfomsg netlink attributes

Dmitry V. Levin ldv at altlinux.org
Tue Sep 5 07:28:48 UTC 2017


On Sun, Sep 03, 2017 at 04:57:14PM +0800, JingPiao Chen wrote:
> * configure.ac (AC_CHECK_TYPES): Check for struct ifla_port_vsi
> in <linux/if_link.h>.
> * rtnl_link.c: Include "xlat/rtnl_ifla_info_attrs.h",
> "xlat/rtnl_ifla_port_attrs.h", "xlat/rtnl_ifla_port_attrs.h",
> "xlat/rtnl_ifla_xdp_attrs.h" and "xlat/xdp_flags.h".
> (decode_ifla_linkinfo, decode_ifla_port_vsi,
> decode_ifla_port, decode_ifla_vf_ports,
> decode_ifla_xdp_flags, decode_ifla_xdp): New functions.
> (ifla_linkinfo_nla_decoders, ifla_port_nla_decoders,
> ifla_vf_port_nla_decoders, ifla_xdp_nla_decoders): New arrays.
> (ifinfomsg_nla_decoders) <IFLA_LINKINFO>: Use decode_ifla_linkinfo.
> <IFLA_VF_PORTS>: Use decode_ifla_vf_ports.
> <IFLA_PORT_SELF>: Use decode_ifla_port.
> <IFLA_XDP>: Use decode_ifla_xdp.
> * xlat/rtnl_ifla_info_attrs.in: New file.
> * xlat/rtnl_ifla_port_attrs.in: Likewise.
> * xlat/rtnl_ifla_vf_port_attrs.in: Likewise.
> * xlat/rtnl_ifla_xdp_attrs.in: Likewise.
> * xlat/xdp_flags.in: Likewise.
On Sun, Sep 03, 2017 at 04:57:15PM +0800, JingPiao Chen wrote:
> * tests/nlattr_ifinfomsg.c (IFLA_LINKINFO, IFLA_VF_PORTS,
> IFLA_INFO_KIND, IFLA_VF_PORT): New macros.
> (main): Check decoding of IFLA_LINKINFO and IFLA_VF_PORTS.
On Sun, Sep 03, 2017 at 05:00:01PM +0800, JingPiao Chen wrote:
> * tests/nlattr_ifla_port.c: New file.
> * tests/gen_tests.in (nlattr_ifla_port): New entry.
> * tests/pure_executables.list: Add nlattr_ifla_port.
> * tests/.gitignore: Likewise.
On Sun, Sep 03, 2017 at 05:05:44PM +0800, JingPiao Chen wrote:
> * tests/nlattr_ifla_xdp.c: New file.
> * tests/gen_tests.in (nlattr_ifla_xdp): New entry.
> * tests/pure_executables.list: Add nlattr_ifla_xdp.
> * tests/.gitignore: Likewise.

Applied, thanks!


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170905/4efe811c/attachment.bin>


More information about the Strace-devel mailing list