ZBLOG

解释这个结构体中的每个参数 struct dp_netdev_flow { const struct flow flow; /* Unmasked flow that created this entry. */ // 创建这个条目的unmasked flow /* Hash table index by unmasked flow. */ // 哈希表通过unmasked flow进行索引 const struct cmap_node node; /* ...

这个结构体中的每个参数的解释如下:

  • const struct flow flow:创建这个条目的未掩码flow。
  • const struct cmap_node node:哈希表通过未掩码流进行索引,在拥有dp_netdev_pmd_thread的flow_table中。
  • const struct cmap_node mark_node:在拥有flow_mark的mark_to_flow中。
  • const ovs_u128 ufid:唯一流标识符。
  • const ovs_u128 mega_ufid:唯一的mega流标识符。
  • const unsigned pmd_id:拥有此流的pmd线程的核心ID。
  • struct ovs_refcount ref_cnt:引用计数器,分类器拥有一个引用,任何试图保留规则不被释放的线程应该持有自己的引用。
  • bool dead:表示此流是否已死亡。
  • uint32_t mark:分配给流的唯一标记号码
  • struct dp_netdev_flow_stats stats:统计信息
  • atomic_int netdev_flow_get_result、struct dp_netdev_flow_stats last_stats和struct dp_netdev_flow_attrs last_attrs是从netdev offload提供程序接收到的统计信息和属性。
  • OVSRCU_TYPE(struct dp_netdev_actions*) actions :动作列表
  • struct packet_batch_per_flow *batch :处理输入数据包组时,datapath使用next成员将指针存储到输出批次中。在发送批次后会重置(请参阅dp_netdev_queue_batches()、packet_batch_per_flow_init()和packet_batch_per_flow_execute())。
  • char *dp_extra_info:返回在流转储/获取中的字符串信息。
  • struct dpcls_rule cr:在拥有dp_netdev的cls中,是规则。cr必须是结构体中的最后一个成员。

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:http://sdn.0voice.com/?id=912

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?