Hi all, I am new for openvswitch world, I am confused about some code. After datapath provided flow key to dpif-linux through netlink, how dpif-linux queries the flow table? More specificlly, how does the flow_get function get the 'reply' which contains the action. I am getting stuck here.
dpif_linux_flow_get(const struct dpif *dpif_, const struct nlattr *key, size_t key_len, struct ofpbuf **actionsp, struct dpif_flow_stats *stats) { struct dpif_linux_flow reply; struct ofpbuf *buf; int error; error = dpif_linux_flow_get__(dpif_, key, key_len, &reply, &buf); if (!error) { if (stats) { dpif_linux_flow_get_stats(&reply, stats); } if (actionsp) { buf->data = (void *) reply.actions; buf->size = reply.actions_len; *actionsp = buf; } else { ofpbuf_delete(buf); } } return error; }
_______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev