Skip to content

Stir up struct net_device_stats usage and whereabouts.

Pavel Emelyanov netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10: The dev->get_stats pointer is not NULL nowadays.net/core/net-sysfs.c net/core/rtnetlink.c+12 -170 replies
2/10: Use on-device stats instead of private ones.net/bridge/br_device.c net/bridge/br_forward.c net/bridge/br_input.c +1 more+8 -160 replies
3/10: Use on-device stats instead of private ones.net/ipv4/ip_gre.c+14 -180 replies
4/10: Use on-device stats instead of private ones.net/ipv4/ipip.c+8 -140 replies
5/10: Use on-device stats instead of private ones.net/ipv6/sit.c+9 -150 replies
6/10: Ipip tunnel uses on-device stats.net/ipv4/ipmr.c+2 -20 replies
7/10: Remove stat member from ip_tunnel struct.include/net/ipip.h+0 -10 replies
8/10: Use on-device stats instead of private ones.include/net/ip6_tunnel.h net/ipv6/ip6_tunnel.c+6 -210 replies
9/10: Use on-device stats instead of private ones.net/ipv4/ipmr.c+9 -160 replies
10/10: Use on-device stats instead of private ones.net/ipv6/ip6mr.c+7 -150 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 0/10] Stir up struct net_device_stats usage and whereabouts.

There is a on-device statistics already, so those drivers, that needs some statistics, may use this one. This set relaxes bridge, tunnels and mr devices thus, making them occupy less memory.

Besides, the get_stats pointer and the pointer it returns are no longer NULL, while there are still some places, that check for this.