Re: [ovs-discuss] Adding a new OpenFlow action to ovs, ctx->xin->packet is null

2014-05-11 Thread Christian Stigen Larsen
Christian Stigen Larsen : > I think I've almost got it, but for some reason my action doesn't seem to be > triggered. Never mind, I got it to trigger now in odp-execute when setting the slow bit. -- Christian Stigen Larsen ___ discuss mailing list dis

Re: [ovs-discuss] Adding a new OpenFlow action to ovs, ctx->xin->packet is null

2014-05-11 Thread Christian Stigen Larsen
Christian Stigen Larsen : > When translating the action, I do: > > struct ofpbuf* odp_actions = &ctx->xout->odp_actions; > nl_msg_put_unspec(odp_actions, OVS_ACTION_ATTR_FOO, > &foo, sizeof(struct ovs_action_foo)); This is done in do_xlate_actions, but I haven't ad

Re: [ovs-discuss] Adding a new OpenFlow action to ovs, ctx->xin->packet is null

2014-05-11 Thread Christian Stigen Larsen
Hi, Ben Pfaff : >> Yes, I figured this was not the place. So should I add a new action to >> ovs_action_attr instead, then add it as a datapath action during >> translation? > > Yes, that's the way to do it. I think I've almost got it, but for some reason my action doesn't seem to be triggered.