datapath/linux/compat/stt.c
/* Setup stats when device is created */
Setup stats when device is created
Setup stats when device is created
static int stt_init(struct net_device *dev)
{
	dev->tstats = (typeof(dev->tstats)) netdev_alloc_pcpu_stats(struct pcpu_sw_netstats);
	if (!dev->tstats)
		return -ENOMEM;
	return 0;
}
static int stt_init ( struct net_device * dev ) { dev -> tstats = ( typeof ( dev -> tstats ) ) netdev_alloc_pcpu_stats ( struct pcpu_sw_netstats ) ; if ( ! dev -> tstats ) return - ENOMEM ; return 0 ; }
Setup stats when device is created
Setup stats when device is created