Hi, I'm trying to modify ovs so that it will send a *packet_in* message to remote controller (in my case, floodlight) each time the *byte_count* of a flow exceeds threshold.
I have tried creating a *dp_upcall_info* struct when *ova_dp_process_packet()* method finds the updated *byte_count* exceeds threshold, and then calling *ovs_dp_upcall()* to send it to userspace. (Also, I set *upcall.cmd* to OVS_PACKET_CMD_ACTION to distinguish it from upcalls caused by flow missing.) However, the mechanism that userspace handles an upcall and decides whether to send a message seems to be pretty delicate and my attempt never goes through it. Any suggestions? In addition, would there be other ways to achieve my target without modifying ovs source code? Thanks in advance. Best, Dylan
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
