X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fodp-util.c;h=7caab09c5c3694ae4667ddd57ac29e011b9b1dac;hb=6c4ea27c48b30eaec8e37e642d5072f53c5b2670;hp=13cdf8e58d5c07c3067d38f5082e6ecef2f7ac26;hpb=44bac24ba5d22fe238bd96702707eb2029efec41;p=openvswitch diff --git a/lib/odp-util.c b/lib/odp-util.c index 13cdf8e5..7caab09c 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -14,8 +14,8 @@ * limitations under the License. */ -#include #include +#include #include "odp-util.h" #include #include @@ -30,7 +30,6 @@ #include "flow.h" #include "netlink.h" #include "ofpbuf.h" -#include "openvswitch/tunnel.h" #include "packets.h" #include "simap.h" #include "timeval.h" @@ -1247,7 +1246,10 @@ ovs_to_odp_frag(uint8_t nw_frag) : OVS_FRAG_TYPE_LATER); } -/* Appends a representation of 'flow' as OVS_KEY_ATTR_* attributes to 'buf'. */ +/* Appends a representation of 'flow' as OVS_KEY_ATTR_* attributes to 'buf'. + * + * 'buf' must have at least ODPUTIL_FLOW_KEY_BYTES bytes of space, or be + * capable of being expanded to allow for that much space. */ void odp_flow_key_from_flow(struct ofpbuf *buf, const struct flow *flow) {