X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fodp-util.h;h=00284996fe849ee32ed046f4fbb29595218df5aa;hb=2953097759d3baaf22223b876d0028be8df78d3d;hp=57294ec64d8f274f8952928ba8815871b74a9473;hpb=b0f7b9b5c98557d159e4a12f125eacbf2a04a25b;p=openvswitch diff --git a/lib/odp-util.h b/lib/odp-util.h index 57294ec6..00284996 100644 --- a/lib/odp-util.h +++ b/lib/odp-util.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010, 2011 Nicira Networks. + * Copyright (c) 2009, 2010, 2011, 2012 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -114,10 +114,10 @@ enum odp_key_fitness { }; enum odp_key_fitness odp_flow_key_to_flow(const struct nlattr *, size_t, struct flow *); +const char *odp_key_fitness_to_string(enum odp_key_fitness); enum user_action_cookie_type { USER_ACTION_COOKIE_UNSPEC, - USER_ACTION_COOKIE_CONTROLLER, /* Packet for controller. */ USER_ACTION_COOKIE_SFLOW, /* Packet for sFlow sampling. */ }; @@ -136,4 +136,7 @@ BUILD_ASSERT_DECL(sizeof(struct user_action_cookie) == 8); size_t odp_put_userspace_action(uint32_t pid, const struct user_action_cookie *, struct ofpbuf *odp_actions); + +void commit_odp_actions(const struct flow *, struct flow *base, + struct ofpbuf *odp_actions); #endif /* odp-util.h */