X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fflow.h;h=d58196e7f08e7d42cd2d4f1b17e660215d08ef8d;hb=cdee00f;hp=b1e80057526489efde4af3496b70a7c435913f82;hpb=7f8ca6459c37ede8faf13f730bcd4d9f05dfd13b;p=openvswitch diff --git a/datapath/flow.h b/datapath/flow.h index b1e80057..d58196e7 100644 --- a/datapath/flow.h +++ b/datapath/flow.h @@ -24,8 +24,8 @@ struct sk_buff; struct sw_flow_actions { struct rcu_head rcu; - unsigned int n_actions; - union odp_action actions[]; + u32 actions_len; + struct nlattr actions[]; }; struct sw_flow { @@ -67,7 +67,7 @@ struct sw_flow *flow_alloc(void); void flow_deferred_free(struct sw_flow *); void flow_free_tbl(struct tbl_node *); -struct sw_flow_actions *flow_actions_alloc(size_t n_actions); +struct sw_flow_actions *flow_actions_alloc(u32 actions_len); void flow_deferred_free_acts(struct sw_flow_actions *); void flow_hold(struct sw_flow *);