[ovs-dev] [PATCH 0/9 net-next] drivers/net: add sw_netstats_rx_add helper

Fabian Frederick fabf at skynet.be
Mon Oct 5 20:33:57 UTC 2020


This small patchset creates netstats addition dev_sw_netstats_rx_add()
based on dev_lstats_add() and replaces some open coding
in both drivers/net and net branches.

Fabian Frederick (9):
  net: netdevice.h: sw_netstats_rx_add helper
  vxlan: use dev_sw_netstats_rx_add()
  geneve: use dev_sw_netstats_rx_add()
  bareudp: use dev_sw_netstats_rx_add()
  gtp: use dev_sw_netstats_rx_add()
  ipv6: use dev_sw_netstats_rx_add()
  xfrm: use dev_sw_netstats_rx_add()
  net: openvswitch: use dev_sw_netstats_rx_add()
  ipv4: use dev_sw_netstats_rx_add()

 drivers/net/bareudp.c                | 11 +++--------
 drivers/net/geneve.c                 | 11 +++--------
 drivers/net/gtp.c                    |  8 +-------
 drivers/net/vxlan.c                  |  8 +-------
 include/linux/netdevice.h            | 11 +++++++++++
 net/ipv4/ip_tunnel.c                 |  8 +-------
 net/ipv4/ip_vti.c                    |  9 +--------
 net/ipv6/ip6_vti.c                   |  8 +-------
 net/openvswitch/vport-internal_dev.c |  8 +-------
 net/xfrm/xfrm_interface.c            |  9 +--------
 10 files changed, 24 insertions(+), 67 deletions(-)

-- 
2.28.0



More information about the dev mailing list