On Mon, Sep 07, 2015 at 09:58:19AM +1000, Dario Banfi wrote: > Could you help me understand what goes on in openvswitch in the > ofproto-dpif-xlate.c? > When I set SLOW_ACTION for the context and I try to log in all the > ctx->xin->packet I get alternatively one packet and one other “packet” I > cannot parse.. > On the contrary, If I try to log all the packets in odp_execute_actions.c I > get what I expect. > If I were to modify the packets going through a group, how could I do it? > Changing the xin->packet didn’t seem to work.
The main goal of translation is to come up with a set of datapath actions that can implement the OpenFlow actions. The packet is supplied in case it contains needed information not in the flow, but it's not the focus of translation. Thus, the usual way to modify a packet would be to implement a new datapath action and then add that action to the set of datapath actions at translation time. The translations of flows without packets that you're seeing are part of "revalidation", which is used to check that the cache is still accurate. _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss