struct net_device *netdev; /* net device handle (wifi%d) */ struct net_device_stats devstats; /* net device statisitics */
structnet_device_statsstats;/* 网络设备接口的统计情况 */ possible_net_tnd_net;/* 用于执行网络设备所在的命名空间 */ }; phy 设备的注册 以网卡 Fec 为例,网卡驱动在初始化 fec_probe 时遍历 dts 的定义,创建相应 struct phy_device 类型的设备,主要步骤为: 注册网络设备 net_device 申请队列和 DMA ...
struct net_device_stats* (*ndo_get_stats)(struct net_device *dev); void(*ndo_vlan_rx_register)(struct net_device *dev, struct vlan_group *grp); void(*ndo_vlan_rx_add_vid)(struct net_device *dev, unsigned short vid); void(*ndo_vlan_rx_kill_vid)(struct net_device *dev, unsigned...
// 统计信息 struct net_device_stats stats; /* not used by modern drivers */ // 核心的统计信息 struct net_device_core_stats __percpu *core_stats; /* Stats to monitor link on/off, flapping */ atomic_t carrier_up_count; atomic_t carrier_down_count; #ifdef CONFIG_WIRELESS_EXT const ...
static const struct net_device_ops veth_netdev_ops = { .ndo_init = veth_dev_init, .ndo_open = veth_open, .ndo_stop = veth_close, .ndo_start_xmit = veth_xmit, .ndo_get_stats64 = veth_get_stats64, .ndo_set_rx_mode = veth_set_multicast_list, ...
1//文件:net/core/netfilter.c23intnf_hook_slow(intpf, unsignedinthook,structsk_buff *skb,4structnet_device *indev,structnet_device *outdev,5int(*okfn)(structsk_buff *))6{7structlist_head *elem;8unsignedintverdict;9intret =0;1011elem = &nf_hooks[pf][hook];//获取要调用的钩子函数链表...
2.2.1.2.45 MIB_IPMCAST_OIF_STATS 2.2.1.2.46 MIB_IPMCAST_SCOPE 2.2.1.2.47 MIB_IPNETROW 2.2.1.2.48 MIB_IPNETTABLE 2.2.1.2.49 MIB_IPSTATS 2.2.1.2.50 MIB_MFE_STATS_TABLE 2.2.1.2.51 MIB_MFE_TABLE 2.2.1.2.52 MIB_OPAQUE_INFO 2.2.1.2.53 MIB_OPAQUE_QUERY 2.2.1.2.54 MIB_PROXYARP 2.2...
Contains quality metrics for acoustic echo cancellation (AEC). This structure is used with the MFPKEY_WMAAECMA_RETRIEVE_TS_STATS property.
-update-debug-sections -reorder-blocks=ext-tsp -reorder-functions=hfsort+ -split-functions -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=none -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot checking if ...
lru_stats[i].n_insert += s.n_insert; cumulative_stats.lru_stats[i].n_search += s.n_search; cumulative_stats.lru_stats[i].n_found += s.n_found; int scope; char param[64]; snprintf(param, sizeof(param), "lru.%s.scope", ndpi_lru_cache_idx_to_name(i)); if(ndpi_get_...