摘要: 添加一个flow,调用的命令为 ovs-ofctl add-flow hello "hard_timeout=0 idle_timeout=0 priority=1 table=21 pkt_mark=0x55 tun_id=0x55 actions=mod_nw_dst:192.168.56.101,output:2" 这里调用的是调用ovs/utilities/ovs-ofctl.c的命令行工... 阅读全文
posted @ 2016-09-24 22:31 popsuper1982 阅读(7437) 评论(0) 推荐(0) 编辑
摘要: 当内核无法查找到流表项的时候,则会通过upcall来调用用户态ovs-vswtichd中的flow table。 会调用ofproto-dpif-upcall.c中的udpif_upcall_handler函数。 static void * udpif_upcall_handler(void *arg) { struct handler *handler = ar... 阅读全文
posted @ 2016-09-24 00:07 popsuper1982 阅读(4855) 评论(0) 推荐(0) 编辑