[ovs-dev] [PATCH 1/9 net-next] net: netdevice.h: sw_netstats_rx_add helper

Jakub Kicinski kuba at kernel.org
Mon Oct 5 23:14:55 UTC 2020


On Mon,  5 Oct 2020 22:34:18 +0200 Fabian Frederick wrote:
> +static inline void dev_sw_netstats_rx_add(struct net_device *dev, unsigned int len)
> +{
> +	struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats);
> +
> +	u64_stats_update_begin(&tstats->syncp);
> +	tstats->rx_bytes += len;
> +	tstats->rx_packets++;
> +	u64_stats_update_end(&tstats->syncp);
> +

checkpatch points out there is an unnecessary empty line here

> +}


More information about the dev mailing list