X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fodp-util.c;h=7caab09c5c3694ae4667ddd57ac29e011b9b1dac;hb=9d2e744579e5f3c4e0f65cf4ba5e8cfeab91fed5;hp=8693d3c81baf635d64b789ec20bd6ec85c0141e7;hpb=9d3ee0bc635063f277754d9d31fe634967f8473c;p=openvswitch diff --git a/lib/odp-util.c b/lib/odp-util.c index 8693d3c8..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 @@ -1246,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) {