2》pattern item 分为多层: ether item、vlan item、ipv4/ipv6 item、tcp/udp item。 每层 的 item 又有多个 filed 字段;比如 ether item 有 srcmac, dstmac, type 等三个 filed。ipv4 item 有 sip, dip, proto 等 field。 3》描述每个 filed 有三个 结构: spec:字段的值; last:「不常用」 mask:...
Flow created successfully to prioritize IP: 192.168.0.2 to queue: 0\n");// 高优先级流量分配到队列 1flow_high = create_priority_rule(PORT_ID,ip_high, 1, &error);if(!flow_high) { printf("Flow creation failed for high priority: %s\n", error.message); return -1; } printf("Flow ...
> > > > struct rte_flow_item pattern[MAX_RTE_FLOW_PATTERN] = {}; > > > > struct rte_flow_action action[MAX_RTE_FLOW_ACTIONS] = {}; > > > > struct rte_flow_attr attr; > > > > struct rte_flow_item_eth eth; > > > > struct rte_flow *flow = NULL; > > > > struct ...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
items += cpy_count;if(pe->type == RTE_FLOW_ITEM_TYPE_END) { pb = pe;break; } pb = pe +1; }/* Copy the END item. */rte_memcpy(items, pe,sizeof(struct rte_flow_item)); } 开发者ID:cleveritcz,项目名称:f-stack,代码行数:34,代码来源:rte_flow_classify_parse.c ...