Skip to content

RFC ip: Use netlink to walk through network device list

Serhey Popovych netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ipaddress: Unify print_link_stats() and print_link_stats64()ip/ipaddress.c+10 -200 replies
2/6ip: Introduce get_rtnl_link_stats_rta() to get link statisticsinclude/utils.h ip/ipaddress.c lib/utils.c+79 -1631 reply
3/6tunnel: Split statistic getting and printingip/ip6tunnel.c ip/iptunnel.c ip/tunnel.c +1 more+52 -260 replies
4/6iptunnel/ip6tunnel: Code cleanupsip/ip6tunnel.c ip/iptunnel.c+42 -230 replies
5/6iptunnel/ip6tunnel: Use netlink to walk through tunnels listip/ip6tunnel.c ip/iptunnel.c ip/tunnel.c +1 more+162 -1960 replies
6/6tuntap: Use netlink to walk through tuntap listip/iptuntap.c+91 -300 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC][PATCH iproute2-next 0/6] ip: Use netlink to walk through network device list

In this seris I replace /proc/net/dev and /sys/class/net usage for walk through network device list in iptunnel/ip6tunnel and iptuntap by rtnl_dump_filter() functionality.

This is an RFC, tested minimally tunnels, tuntap seems work as before.

Note that some comments, especially for iptunnel/ip6tunnel commit are
missing: will add this in final series, as well as update cover letter.

Thanks,
Serhii

Serhey Popovych (6):
ipaddress: Unify print_link_stats() and print_link_stats64()
ip: Introduce get_rtnl_link_stats_rta() to get link statistics
tunnel: Split statistic getting and printing iptunnel/ip6tunnel: Code cleanups iptunnel/ip6tunnel: Use netlink to walk through tunnels list
tuntap: Use netlink to walk through tuntap list

 include/utils.h |    3 +
 ip/ip6tunnel.c  |  117 +++++++++++-----------------------
 ip/ipaddress.c  |  189 ++++---------------------------------------------------
 ip/iptunnel.c   |   95 ++++++++++------------------
 ip/iptuntap.c   |  121 ++++++++++++++++++++++++++---------
 ip/tunnel.c     |  114 ++++++++++++++++++++++++++-------
 ip/tunnel.h     |   17 ++++-
 lib/utils.c     |   68 ++++++++++++++++++++
 8 files changed, 351 insertions(+), 373 deletions(-)
Signature · 1 line
1.7.10.4