Home
last modified time | relevance | path

Searched refs:hwstats (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/net/netdevsim/
H A Dhwstats.c10 nsim_dev_hwstats_get_list_head(struct nsim_dev_hwstats *hwstats, in nsim_dev_hwstats_get_list_head() argument
15 return &hwstats->l3_list; in nsim_dev_hwstats_get_list_head()
22 static void nsim_dev_hwstats_traffic_bump(struct nsim_dev_hwstats *hwstats, in nsim_dev_hwstats_traffic_bump() argument
28 hwsdev_list = nsim_dev_hwstats_get_list_head(hwstats, type); in nsim_dev_hwstats_traffic_bump()
44 struct nsim_dev_hwstats *hwstats; in nsim_dev_hwstats_traffic_work() local
46 hwstats = container_of(work, struct nsim_dev_hwstats, traffic_dw.work); in nsim_dev_hwstats_traffic_work()
47 mutex_lock(&hwstats->hwsdev_list_lock); in nsim_dev_hwstats_traffic_work()
48 nsim_dev_hwstats_traffic_bump(hwstats, NETDEV_OFFLOAD_XSTATS_TYPE_L3); in nsim_dev_hwstats_traffic_work()
49 mutex_unlock(&hwstats->hwsdev_list_lock); in nsim_dev_hwstats_traffic_work()
51 schedule_delayed_work(&hwstats->traffic_dw, in nsim_dev_hwstats_traffic_work()
[all …]
H A Dnetdevsim.h354 struct nsim_dev_hwstats hwstats; member
/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Dhw_stats_l3.sh89 echo $ifindex > $(DEBUGFS_DIR $instance)/hwstats/$type/$action
/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_lib.c3054 struct wx_hw_stats *hwstats; in wx_get_stats64() local
3095 hwstats = &wx->stats; in wx_get_stats64()
3096 stats->rx_errors = hwstats->crcerrs + hwstats->rlec; in wx_get_stats64()
3097 stats->multicast = hwstats->qmprc; in wx_get_stats64()
3098 stats->rx_length_errors = hwstats->rlec; in wx_get_stats64()
3099 stats->rx_crc_errors = hwstats->crcerrs; in wx_get_stats64()