X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fflow.h;h=78d5a7019c00b5d02f33a9aa6f81b63308a5f19b;hb=957709ea815c68ce83418cf7f59d2b661bafcd25;hp=f09f76c4738be18fa9da762de4ac105d63204dd8;hpb=36956a7d33c9ee204fcb184484a5aaacbd9ecef8;p=openvswitch diff --git a/datapath/flow.h b/datapath/flow.h index f09f76c4..78d5a701 100644 --- a/datapath/flow.h +++ b/datapath/flow.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira Networks. + * Copyright (c) 2009, 2010, 2011 Nicira Networks. * Distributed under the terms of the GNU GPL version 2. * * Significant portions of this file may be copied from parts of the Linux @@ -83,7 +83,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(u32 actions_len); +struct sw_flow_actions *flow_actions_alloc(const struct nlattr *); void flow_deferred_free_acts(struct sw_flow_actions *); void flow_hold(struct sw_flow *); @@ -100,8 +100,8 @@ int flow_cmp(const struct tbl_node *, void *target); */ #define FLOW_BUFSIZE 96 -int flow_copy_from_user(struct sw_flow_key *, const struct nlattr __user *ukey, u32 key_len); -int flow_copy_to_user(struct nlattr __user *ukey, const struct sw_flow_key *, u32 key_len); +int flow_to_nlattrs(const struct sw_flow_key *, struct sk_buff *); +int flow_from_nlattrs(struct sw_flow_key *swkey, const struct nlattr *); static inline struct sw_flow *flow_cast(const struct tbl_node *node) {