/src/openvswitch/include/openvswitch/ofpbuf.h
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2015, 2016 Nicira, Inc. |
3 | | * |
4 | | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | | * you may not use this file except in compliance with the License. |
6 | | * You may obtain a copy of the License at: |
7 | | * |
8 | | * http://www.apache.org/licenses/LICENSE-2.0 |
9 | | * |
10 | | * Unless required by applicable law or agreed to in writing, software |
11 | | * distributed under the License is distributed on an "AS IS" BASIS, |
12 | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | | * See the License for the specific language governing permissions and |
14 | | * limitations under the License. |
15 | | */ |
16 | | |
17 | | #ifndef OPENVSWITCH_OFPBUF_H |
18 | | #define OPENVSWITCH_OFPBUF_H 1 |
19 | | |
20 | | #include <stddef.h> |
21 | | #include <stdint.h> |
22 | | #include <stdlib.h> |
23 | | #include <string.h> |
24 | | #include "openvswitch/dynamic-string.h" |
25 | | #include "openvswitch/list.h" |
26 | | #include "openvswitch/util.h" |
27 | | |
28 | | #ifdef __cplusplus |
29 | | extern "C" { |
30 | | #endif |
31 | | |
32 | | enum OVS_PACKED_ENUM ofpbuf_source { |
33 | | OFPBUF_MALLOC, /* Obtained via malloc(). */ |
34 | | OFPBUF_STACK, /* Un-movable stack space or static buffer. */ |
35 | | OFPBUF_STUB, /* Starts on stack, may expand into heap. */ |
36 | | }; |
37 | | |
38 | | /* Buffer for holding arbitrary data. An ofpbuf is automatically reallocated |
39 | | * as necessary if it grows too large for the available memory. |
40 | | * |
41 | | * 'header' and 'msg' conventions: |
42 | | * |
43 | | * OpenFlow messages: 'header' points to the start of the OpenFlow |
44 | | * header, while 'msg' is the OpenFlow msg body. |
45 | | * When parsing, the 'data' will move past these, as data is being |
46 | | * pulled from the OpenFlow message. |
47 | | * |
48 | | * Caution: buffer manipulation of 'struct ofpbuf' must always update |
49 | | * the 'header' and 'msg' pointers. |
50 | | * |
51 | | * |
52 | | * Actions: When encoding OVS action lists, the 'header' is used |
53 | | * as a pointer to the beginning of the current action (see ofpact_put()). |
54 | | * |
55 | | * rconn: Reuses 'header' as a private pointer while queuing. |
56 | | */ |
57 | | struct ofpbuf { |
58 | | void *base; /* First byte of allocated space. */ |
59 | | void *data; /* First byte actually in use. */ |
60 | | uint32_t size; /* Number of bytes in use. */ |
61 | | uint32_t allocated; /* Number of bytes allocated. */ |
62 | | |
63 | | void *header; /* OpenFlow header. */ |
64 | | void *msg; /* message's body */ |
65 | | struct ovs_list list_node; /* Private list element for use by owner. */ |
66 | | enum ofpbuf_source source; /* Source of memory allocated as 'base'. */ |
67 | | }; |
68 | | |
69 | | /* An initializer for a struct ofpbuf that will be initially empty and uses the |
70 | | * space in STUB (which should be an array) as a stub. This is the initializer |
71 | | * form of ofpbuf_use_stub(). |
72 | | * |
73 | | * Usage example: |
74 | | * |
75 | | * uint64_t stub[1024 / 8]; <-- 1 kB stub aligned for 64-bit data. |
76 | | * struct ofpbuf ofpbuf = OFPBUF_STUB_INITIALIZER(stub); |
77 | | */ |
78 | 29.0k | #define OFPBUF_STUB_INITIALIZER(STUB) { \ |
79 | 29.0k | .base = (STUB), \ |
80 | 29.0k | .data = (STUB), \ |
81 | 29.0k | .size = 0, \ |
82 | 29.0k | .allocated = sizeof (STUB), \ |
83 | 29.0k | .header = NULL, \ |
84 | 29.0k | .msg = NULL, \ |
85 | 29.0k | .list_node = OVS_LIST_POISON, \ |
86 | 29.0k | .source = OFPBUF_STUB, \ |
87 | 29.0k | } |
88 | | |
89 | | /* An initializer for a struct ofpbuf whose data starts at DATA and continues |
90 | | * for SIZE bytes. This is appropriate for an ofpbuf that will be used to |
91 | | * inspect existing data, without moving it around or reallocating it, and |
92 | | * generally without modifying it at all. This is the initializer form of |
93 | | * ofpbuf_use_const(). |
94 | | */ |
95 | | static inline struct ofpbuf |
96 | | ofpbuf_const_initializer(const void *data, uint32_t size) |
97 | 3.60M | { |
98 | 3.60M | return (struct ofpbuf) { |
99 | 3.60M | .base = CONST_CAST(void *, data), |
100 | 3.60M | .data = CONST_CAST(void *, data), |
101 | 3.60M | .size = size, |
102 | 3.60M | .allocated = size, |
103 | 3.60M | .header = NULL, |
104 | 3.60M | .msg = NULL, |
105 | 3.60M | .list_node = OVS_LIST_POISON, |
106 | 3.60M | .source = OFPBUF_STACK, |
107 | 3.60M | }; |
108 | 3.60M | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_const_initializer Unexecuted instantiation: dp-packet.c:ofpbuf_const_initializer Unexecuted instantiation: flow.c:ofpbuf_const_initializer Unexecuted instantiation: match.c:ofpbuf_const_initializer Unexecuted instantiation: netdev.c:ofpbuf_const_initializer ofp-match.c:ofpbuf_const_initializer Line | Count | Source | 97 | 5.52k | { | 98 | 5.52k | return (struct ofpbuf) { | 99 | 5.52k | .base = CONST_CAST(void *, data), | 100 | 5.52k | .data = CONST_CAST(void *, data), | 101 | 5.52k | .size = size, | 102 | 5.52k | .allocated = size, | 103 | 5.52k | .header = NULL, | 104 | | .msg = NULL, | 105 | 5.52k | .list_node = OVS_LIST_POISON, | 106 | 5.52k | .source = OFPBUF_STACK, | 107 | 5.52k | }; | 108 | 5.52k | } |
ofp-msgs.c:ofpbuf_const_initializer Line | Count | Source | 97 | 2.03M | { | 98 | 2.03M | return (struct ofpbuf) { | 99 | 2.03M | .base = CONST_CAST(void *, data), | 100 | 2.03M | .data = CONST_CAST(void *, data), | 101 | 2.03M | .size = size, | 102 | 2.03M | .allocated = size, | 103 | 2.03M | .header = NULL, | 104 | | .msg = NULL, | 105 | 2.03M | .list_node = OVS_LIST_POISON, | 106 | 2.03M | .source = OFPBUF_STACK, | 107 | 2.03M | }; | 108 | 2.03M | } |
ofp-port.c:ofpbuf_const_initializer Line | Count | Source | 97 | 24.4k | { | 98 | 24.4k | return (struct ofpbuf) { | 99 | 24.4k | .base = CONST_CAST(void *, data), | 100 | 24.4k | .data = CONST_CAST(void *, data), | 101 | 24.4k | .size = size, | 102 | 24.4k | .allocated = size, | 103 | 24.4k | .header = NULL, | 104 | | .msg = NULL, | 105 | 24.4k | .list_node = OVS_LIST_POISON, | 106 | 24.4k | .source = OFPBUF_STACK, | 107 | 24.4k | }; | 108 | 24.4k | } |
ofp-print.c:ofpbuf_const_initializer Line | Count | Source | 97 | 75.5k | { | 98 | 75.5k | return (struct ofpbuf) { | 99 | 75.5k | .base = CONST_CAST(void *, data), | 100 | 75.5k | .data = CONST_CAST(void *, data), | 101 | 75.5k | .size = size, | 102 | 75.5k | .allocated = size, | 103 | 75.5k | .header = NULL, | 104 | | .msg = NULL, | 105 | 75.5k | .list_node = OVS_LIST_POISON, | 106 | 75.5k | .source = OFPBUF_STACK, | 107 | 75.5k | }; | 108 | 75.5k | } |
Unexecuted instantiation: ofp-prop.c:ofpbuf_const_initializer ofp-protocol.c:ofpbuf_const_initializer Line | Count | Source | 97 | 491 | { | 98 | 491 | return (struct ofpbuf) { | 99 | 491 | .base = CONST_CAST(void *, data), | 100 | 491 | .data = CONST_CAST(void *, data), | 101 | 491 | .size = size, | 102 | 491 | .allocated = size, | 103 | 491 | .header = NULL, | 104 | | .msg = NULL, | 105 | 491 | .list_node = OVS_LIST_POISON, | 106 | 491 | .source = OFPBUF_STACK, | 107 | 491 | }; | 108 | 491 | } |
ofp-queue.c:ofpbuf_const_initializer Line | Count | Source | 97 | 39.2k | { | 98 | 39.2k | return (struct ofpbuf) { | 99 | 39.2k | .base = CONST_CAST(void *, data), | 100 | 39.2k | .data = CONST_CAST(void *, data), | 101 | 39.2k | .size = size, | 102 | 39.2k | .allocated = size, | 103 | 39.2k | .header = NULL, | 104 | | .msg = NULL, | 105 | 39.2k | .list_node = OVS_LIST_POISON, | 106 | 39.2k | .source = OFPBUF_STACK, | 107 | 39.2k | }; | 108 | 39.2k | } |
ofp-switch.c:ofpbuf_const_initializer Line | Count | Source | 97 | 5.50k | { | 98 | 5.50k | return (struct ofpbuf) { | 99 | 5.50k | .base = CONST_CAST(void *, data), | 100 | 5.50k | .data = CONST_CAST(void *, data), | 101 | 5.50k | .size = size, | 102 | 5.50k | .allocated = size, | 103 | 5.50k | .header = NULL, | 104 | | .msg = NULL, | 105 | 5.50k | .list_node = OVS_LIST_POISON, | 106 | 5.50k | .source = OFPBUF_STACK, | 107 | 5.50k | }; | 108 | 5.50k | } |
ofp-table.c:ofpbuf_const_initializer Line | Count | Source | 97 | 19.7k | { | 98 | 19.7k | return (struct ofpbuf) { | 99 | 19.7k | .base = CONST_CAST(void *, data), | 100 | 19.7k | .data = CONST_CAST(void *, data), | 101 | 19.7k | .size = size, | 102 | 19.7k | .allocated = size, | 103 | 19.7k | .header = NULL, | 104 | | .msg = NULL, | 105 | 19.7k | .list_node = OVS_LIST_POISON, | 106 | 19.7k | .source = OFPBUF_STACK, | 107 | 19.7k | }; | 108 | 19.7k | } |
ofp-util.c:ofpbuf_const_initializer Line | Count | Source | 97 | 34.0k | { | 98 | 34.0k | return (struct ofpbuf) { | 99 | 34.0k | .base = CONST_CAST(void *, data), | 100 | 34.0k | .data = CONST_CAST(void *, data), | 101 | 34.0k | .size = size, | 102 | 34.0k | .allocated = size, | 103 | 34.0k | .header = NULL, | 104 | | .msg = NULL, | 105 | 34.0k | .list_node = OVS_LIST_POISON, | 106 | 34.0k | .source = OFPBUF_STACK, | 107 | 34.0k | }; | 108 | 34.0k | } |
Unexecuted instantiation: ofpbuf.c:ofpbuf_const_initializer Unexecuted instantiation: ovs-router.c:ofpbuf_const_initializer Unexecuted instantiation: packets.c:ofpbuf_const_initializer Unexecuted instantiation: smap.c:ofpbuf_const_initializer Unexecuted instantiation: socket-util.c:ofpbuf_const_initializer Unexecuted instantiation: tnl-ports.c:ofpbuf_const_initializer Unexecuted instantiation: tun-metadata.c:ofpbuf_const_initializer Unexecuted instantiation: vlog.c:ofpbuf_const_initializer Unexecuted instantiation: netdev-linux.c:ofpbuf_const_initializer Unexecuted instantiation: netlink-socket.c:ofpbuf_const_initializer Unexecuted instantiation: rtnetlink.c:ofpbuf_const_initializer Unexecuted instantiation: route-table.c:ofpbuf_const_initializer Unexecuted instantiation: tc.c:ofpbuf_const_initializer Unexecuted instantiation: classifier.c:ofpbuf_const_initializer Unexecuted instantiation: dp-packet-gso.c:ofpbuf_const_initializer Unexecuted instantiation: dpif-offload.c:ofpbuf_const_initializer Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_const_initializer Unexecuted instantiation: dpif.c:ofpbuf_const_initializer Unexecuted instantiation: jsonrpc.c:ofpbuf_const_initializer Unexecuted instantiation: meta-flow.c:ofpbuf_const_initializer Unexecuted instantiation: netdev-dummy.c:ofpbuf_const_initializer Unexecuted instantiation: netdev-vport.c:ofpbuf_const_initializer Unexecuted instantiation: netlink.c:ofpbuf_const_initializer nx-match.c:ofpbuf_const_initializer Line | Count | Source | 97 | 165k | { | 98 | 165k | return (struct ofpbuf) { | 99 | 165k | .base = CONST_CAST(void *, data), | 100 | 165k | .data = CONST_CAST(void *, data), | 101 | 165k | .size = size, | 102 | 165k | .allocated = size, | 103 | 165k | .header = NULL, | 104 | | .msg = NULL, | 105 | 165k | .list_node = OVS_LIST_POISON, | 106 | 165k | .source = OFPBUF_STACK, | 107 | 165k | }; | 108 | 165k | } |
Unexecuted instantiation: odp-execute.c:ofpbuf_const_initializer Unexecuted instantiation: odp-util.c:ofpbuf_const_initializer ofp-actions.c:ofpbuf_const_initializer Line | Count | Source | 97 | 47.3k | { | 98 | 47.3k | return (struct ofpbuf) { | 99 | 47.3k | .base = CONST_CAST(void *, data), | 100 | 47.3k | .data = CONST_CAST(void *, data), | 101 | 47.3k | .size = size, | 102 | 47.3k | .allocated = size, | 103 | 47.3k | .header = NULL, | 104 | | .msg = NULL, | 105 | 47.3k | .list_node = OVS_LIST_POISON, | 106 | 47.3k | .source = OFPBUF_STACK, | 107 | 47.3k | }; | 108 | 47.3k | } |
ofp-bundle.c:ofpbuf_const_initializer Line | Count | Source | 97 | 9.07k | { | 98 | 9.07k | return (struct ofpbuf) { | 99 | 9.07k | .base = CONST_CAST(void *, data), | 100 | 9.07k | .data = CONST_CAST(void *, data), | 101 | 9.07k | .size = size, | 102 | 9.07k | .allocated = size, | 103 | 9.07k | .header = NULL, | 104 | | .msg = NULL, | 105 | 9.07k | .list_node = OVS_LIST_POISON, | 106 | 9.07k | .source = OFPBUF_STACK, | 107 | 9.07k | }; | 108 | 9.07k | } |
ofp-connection.c:ofpbuf_const_initializer Line | Count | Source | 97 | 16.5k | { | 98 | 16.5k | return (struct ofpbuf) { | 99 | 16.5k | .base = CONST_CAST(void *, data), | 100 | 16.5k | .data = CONST_CAST(void *, data), | 101 | 16.5k | .size = size, | 102 | 16.5k | .allocated = size, | 103 | 16.5k | .header = NULL, | 104 | | .msg = NULL, | 105 | 16.5k | .list_node = OVS_LIST_POISON, | 106 | 16.5k | .source = OFPBUF_STACK, | 107 | 16.5k | }; | 108 | 16.5k | } |
ofp-ct.c:ofpbuf_const_initializer Line | Count | Source | 97 | 13.0k | { | 98 | 13.0k | return (struct ofpbuf) { | 99 | 13.0k | .base = CONST_CAST(void *, data), | 100 | 13.0k | .data = CONST_CAST(void *, data), | 101 | 13.0k | .size = size, | 102 | 13.0k | .allocated = size, | 103 | 13.0k | .header = NULL, | 104 | | .msg = NULL, | 105 | 13.0k | .list_node = OVS_LIST_POISON, | 106 | 13.0k | .source = OFPBUF_STACK, | 107 | 13.0k | }; | 108 | 13.0k | } |
Unexecuted instantiation: ofp-ed-props.c:ofpbuf_const_initializer ofp-errors.c:ofpbuf_const_initializer Line | Count | Source | 97 | 657k | { | 98 | 657k | return (struct ofpbuf) { | 99 | 657k | .base = CONST_CAST(void *, data), | 100 | 657k | .data = CONST_CAST(void *, data), | 101 | 657k | .size = size, | 102 | 657k | .allocated = size, | 103 | 657k | .header = NULL, | 104 | | .msg = NULL, | 105 | 657k | .list_node = OVS_LIST_POISON, | 106 | 657k | .source = OFPBUF_STACK, | 107 | 657k | }; | 108 | 657k | } |
ofp-flow.c:ofpbuf_const_initializer Line | Count | Source | 97 | 87.3k | { | 98 | 87.3k | return (struct ofpbuf) { | 99 | 87.3k | .base = CONST_CAST(void *, data), | 100 | 87.3k | .data = CONST_CAST(void *, data), | 101 | 87.3k | .size = size, | 102 | 87.3k | .allocated = size, | 103 | 87.3k | .header = NULL, | 104 | | .msg = NULL, | 105 | 87.3k | .list_node = OVS_LIST_POISON, | 106 | 87.3k | .source = OFPBUF_STACK, | 107 | 87.3k | }; | 108 | 87.3k | } |
ofp-group.c:ofpbuf_const_initializer Line | Count | Source | 97 | 67.6k | { | 98 | 67.6k | return (struct ofpbuf) { | 99 | 67.6k | .base = CONST_CAST(void *, data), | 100 | 67.6k | .data = CONST_CAST(void *, data), | 101 | 67.6k | .size = size, | 102 | 67.6k | .allocated = size, | 103 | 67.6k | .header = NULL, | 104 | | .msg = NULL, | 105 | 67.6k | .list_node = OVS_LIST_POISON, | 106 | 67.6k | .source = OFPBUF_STACK, | 107 | 67.6k | }; | 108 | 67.6k | } |
ofp-ipfix.c:ofpbuf_const_initializer Line | Count | Source | 97 | 1.09k | { | 98 | 1.09k | return (struct ofpbuf) { | 99 | 1.09k | .base = CONST_CAST(void *, data), | 100 | 1.09k | .data = CONST_CAST(void *, data), | 101 | 1.09k | .size = size, | 102 | 1.09k | .allocated = size, | 103 | 1.09k | .header = NULL, | 104 | | .msg = NULL, | 105 | 1.09k | .list_node = OVS_LIST_POISON, | 106 | 1.09k | .source = OFPBUF_STACK, | 107 | 1.09k | }; | 108 | 1.09k | } |
ofp-meter.c:ofpbuf_const_initializer Line | Count | Source | 97 | 7.16k | { | 98 | 7.16k | return (struct ofpbuf) { | 99 | 7.16k | .base = CONST_CAST(void *, data), | 100 | 7.16k | .data = CONST_CAST(void *, data), | 101 | 7.16k | .size = size, | 102 | 7.16k | .allocated = size, | 103 | 7.16k | .header = NULL, | 104 | | .msg = NULL, | 105 | 7.16k | .list_node = OVS_LIST_POISON, | 106 | 7.16k | .source = OFPBUF_STACK, | 107 | 7.16k | }; | 108 | 7.16k | } |
ofp-monitor.c:ofpbuf_const_initializer Line | Count | Source | 97 | 12.0k | { | 98 | 12.0k | return (struct ofpbuf) { | 99 | 12.0k | .base = CONST_CAST(void *, data), | 100 | 12.0k | .data = CONST_CAST(void *, data), | 101 | 12.0k | .size = size, | 102 | 12.0k | .allocated = size, | 103 | 12.0k | .header = NULL, | 104 | | .msg = NULL, | 105 | 12.0k | .list_node = OVS_LIST_POISON, | 106 | 12.0k | .source = OFPBUF_STACK, | 107 | 12.0k | }; | 108 | 12.0k | } |
ofp-packet.c:ofpbuf_const_initializer Line | Count | Source | 97 | 274k | { | 98 | 274k | return (struct ofpbuf) { | 99 | 274k | .base = CONST_CAST(void *, data), | 100 | 274k | .data = CONST_CAST(void *, data), | 101 | 274k | .size = size, | 102 | 274k | .allocated = size, | 103 | 274k | .header = NULL, | 104 | | .msg = NULL, | 105 | 274k | .list_node = OVS_LIST_POISON, | 106 | 274k | .source = OFPBUF_STACK, | 107 | 274k | }; | 108 | 274k | } |
Unexecuted instantiation: ofp-parse.c:ofpbuf_const_initializer ox-stat.c:ofpbuf_const_initializer Line | Count | Source | 97 | 9.08k | { | 98 | 9.08k | return (struct ofpbuf) { | 99 | 9.08k | .base = CONST_CAST(void *, data), | 100 | 9.08k | .data = CONST_CAST(void *, data), | 101 | 9.08k | .size = size, | 102 | 9.08k | .allocated = size, | 103 | 9.08k | .header = NULL, | 104 | | .msg = NULL, | 105 | 9.08k | .list_node = OVS_LIST_POISON, | 106 | 9.08k | .source = OFPBUF_STACK, | 107 | 9.08k | }; | 108 | 9.08k | } |
Unexecuted instantiation: pcap-file.c:ofpbuf_const_initializer Unexecuted instantiation: stream.c:ofpbuf_const_initializer Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_const_initializer Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_const_initializer Unexecuted instantiation: stream-unix.c:ofpbuf_const_initializer Unexecuted instantiation: dpif-netlink.c:ofpbuf_const_initializer Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_const_initializer Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_const_initializer Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_const_initializer Unexecuted instantiation: netlink-conntrack.c:ofpbuf_const_initializer Unexecuted instantiation: netlink-notifier.c:ofpbuf_const_initializer Unexecuted instantiation: stream-ssl.c:ofpbuf_const_initializer Unexecuted instantiation: bundle.c:ofpbuf_const_initializer Unexecuted instantiation: conntrack.c:ofpbuf_const_initializer Unexecuted instantiation: ct-dpif.c:ofpbuf_const_initializer Unexecuted instantiation: dpctl.c:ofpbuf_const_initializer Unexecuted instantiation: dpif-netdev.c:ofpbuf_const_initializer Unexecuted instantiation: ipf.c:ofpbuf_const_initializer Unexecuted instantiation: learn.c:ofpbuf_const_initializer Unexecuted instantiation: multipath.c:ofpbuf_const_initializer Unexecuted instantiation: stream-tcp.c:ofpbuf_const_initializer Unexecuted instantiation: conntrack-icmp.c:ofpbuf_const_initializer Unexecuted instantiation: conntrack-tcp.c:ofpbuf_const_initializer Unexecuted instantiation: conntrack-tp.c:ofpbuf_const_initializer Unexecuted instantiation: conntrack-other.c:ofpbuf_const_initializer Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_const_initializer Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_const_initializer Unexecuted instantiation: odp_target.c:ofpbuf_const_initializer Unexecuted instantiation: miniflow_target.c:ofpbuf_const_initializer Unexecuted instantiation: ofp_print_target.c:ofpbuf_const_initializer Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_const_initializer |
109 | | |
110 | | void ofpbuf_use_ds(struct ofpbuf *, const struct ds *); |
111 | | void ofpbuf_use_stack(struct ofpbuf *, void *, size_t); |
112 | | void ofpbuf_use_stub(struct ofpbuf *, void *, size_t); |
113 | | void ofpbuf_use_const(struct ofpbuf *, const void *, size_t); |
114 | | void ofpbuf_use_data(struct ofpbuf *, const void *, size_t); |
115 | | |
116 | | void ofpbuf_init(struct ofpbuf *, size_t); |
117 | | void ofpbuf_uninit(struct ofpbuf *); |
118 | | void ofpbuf_reinit(struct ofpbuf *, size_t); |
119 | | |
120 | | struct ofpbuf *ofpbuf_new(size_t); |
121 | | struct ofpbuf *ofpbuf_new_with_headroom(size_t, size_t headroom); |
122 | | struct ofpbuf *ofpbuf_clone(const struct ofpbuf *); |
123 | | struct ofpbuf *ofpbuf_clone_with_headroom(const struct ofpbuf *, |
124 | | size_t headroom); |
125 | | struct ofpbuf *ofpbuf_clone_data(const void *, size_t); |
126 | | struct ofpbuf *ofpbuf_clone_data_with_headroom(const void *, size_t, |
127 | | size_t headroom); |
128 | | static inline void ofpbuf_delete(struct ofpbuf *); |
129 | | |
130 | | static inline void *ofpbuf_at(const struct ofpbuf *, size_t offset, |
131 | | size_t size); |
132 | | static inline void *ofpbuf_at_assert(const struct ofpbuf *, size_t offset, |
133 | | size_t size); |
134 | | static inline void *ofpbuf_tail(const struct ofpbuf *); |
135 | | static inline void *ofpbuf_end(const struct ofpbuf *); |
136 | | |
137 | | void *ofpbuf_put_uninit(struct ofpbuf *, size_t); |
138 | | void *ofpbuf_put_zeros(struct ofpbuf *, size_t); |
139 | | void *ofpbuf_put(struct ofpbuf *, const void *, size_t); |
140 | | char *ofpbuf_put_hex(struct ofpbuf *, const char *s, size_t *n); |
141 | | void ofpbuf_reserve(struct ofpbuf *, size_t); |
142 | | void *ofpbuf_push_uninit(struct ofpbuf *b, size_t); |
143 | | void *ofpbuf_push_zeros(struct ofpbuf *, size_t); |
144 | | void *ofpbuf_push(struct ofpbuf *b, const void *, size_t); |
145 | | void ofpbuf_insert(struct ofpbuf *b, size_t offset, const void *data, size_t); |
146 | | |
147 | | static inline size_t ofpbuf_headroom(const struct ofpbuf *); |
148 | | static inline size_t ofpbuf_tailroom(const struct ofpbuf *); |
149 | | static inline size_t ofpbuf_msgsize(const struct ofpbuf *); |
150 | | void ofpbuf_prealloc_headroom(struct ofpbuf *, size_t); |
151 | | void ofpbuf_prealloc_tailroom(struct ofpbuf *, size_t); |
152 | | void ofpbuf_trim(struct ofpbuf *); |
153 | | void ofpbuf_align(struct ofpbuf *); |
154 | | void ofpbuf_padto(struct ofpbuf *, size_t); |
155 | | void ofpbuf_shift(struct ofpbuf *, int); |
156 | | |
157 | | static inline void ofpbuf_clear(struct ofpbuf *); |
158 | | static inline void *ofpbuf_pull(struct ofpbuf *, size_t); |
159 | | static inline void *ofpbuf_try_pull(struct ofpbuf *, size_t); |
160 | | |
161 | | void *ofpbuf_steal_data(struct ofpbuf *); |
162 | | |
163 | | char *ofpbuf_to_string(const struct ofpbuf *, size_t maxbytes); |
164 | | static inline struct ofpbuf *ofpbuf_from_list(const struct ovs_list *); |
165 | | void ofpbuf_list_delete(struct ovs_list *); |
166 | | static inline bool ofpbuf_equal(const struct ofpbuf *, const struct ofpbuf *); |
167 | | static inline bool ofpbuf_oversized(const struct ofpbuf *ofpacts); |
168 | | |
169 | | |
170 | | /* Frees memory that 'b' points to, as well as 'b' itself. */ |
171 | | static inline void ofpbuf_delete(struct ofpbuf *b) |
172 | 10.8k | { |
173 | 10.8k | if (b) { |
174 | 10.8k | ofpbuf_uninit(b); |
175 | 10.8k | free(b); |
176 | 10.8k | } |
177 | 10.8k | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_delete Unexecuted instantiation: dp-packet.c:ofpbuf_delete Unexecuted instantiation: flow.c:ofpbuf_delete Unexecuted instantiation: match.c:ofpbuf_delete Unexecuted instantiation: netdev.c:ofpbuf_delete Unexecuted instantiation: ofp-match.c:ofpbuf_delete Unexecuted instantiation: ofp-msgs.c:ofpbuf_delete Unexecuted instantiation: ofp-port.c:ofpbuf_delete Unexecuted instantiation: ofp-print.c:ofpbuf_delete Unexecuted instantiation: ofp-prop.c:ofpbuf_delete Unexecuted instantiation: ofp-protocol.c:ofpbuf_delete Unexecuted instantiation: ofp-queue.c:ofpbuf_delete Unexecuted instantiation: ofp-switch.c:ofpbuf_delete Unexecuted instantiation: ofp-table.c:ofpbuf_delete Unexecuted instantiation: ofp-util.c:ofpbuf_delete Unexecuted instantiation: ofpbuf.c:ofpbuf_delete Unexecuted instantiation: ovs-router.c:ofpbuf_delete Unexecuted instantiation: packets.c:ofpbuf_delete Unexecuted instantiation: smap.c:ofpbuf_delete Unexecuted instantiation: socket-util.c:ofpbuf_delete Unexecuted instantiation: tnl-ports.c:ofpbuf_delete Unexecuted instantiation: tun-metadata.c:ofpbuf_delete Unexecuted instantiation: vlog.c:ofpbuf_delete Unexecuted instantiation: netdev-linux.c:ofpbuf_delete Unexecuted instantiation: netlink-socket.c:ofpbuf_delete Unexecuted instantiation: rtnetlink.c:ofpbuf_delete Unexecuted instantiation: route-table.c:ofpbuf_delete Unexecuted instantiation: tc.c:ofpbuf_delete Unexecuted instantiation: classifier.c:ofpbuf_delete Unexecuted instantiation: dp-packet-gso.c:ofpbuf_delete Unexecuted instantiation: dpif-offload.c:ofpbuf_delete Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_delete Unexecuted instantiation: dpif.c:ofpbuf_delete Unexecuted instantiation: jsonrpc.c:ofpbuf_delete Unexecuted instantiation: meta-flow.c:ofpbuf_delete Unexecuted instantiation: netdev-dummy.c:ofpbuf_delete Unexecuted instantiation: netdev-vport.c:ofpbuf_delete Unexecuted instantiation: netlink.c:ofpbuf_delete Unexecuted instantiation: nx-match.c:ofpbuf_delete Unexecuted instantiation: odp-execute.c:ofpbuf_delete Unexecuted instantiation: odp-util.c:ofpbuf_delete Unexecuted instantiation: ofp-actions.c:ofpbuf_delete Unexecuted instantiation: ofp-bundle.c:ofpbuf_delete Unexecuted instantiation: ofp-connection.c:ofpbuf_delete Unexecuted instantiation: ofp-ct.c:ofpbuf_delete Unexecuted instantiation: ofp-ed-props.c:ofpbuf_delete Unexecuted instantiation: ofp-errors.c:ofpbuf_delete Unexecuted instantiation: ofp-flow.c:ofpbuf_delete Unexecuted instantiation: ofp-group.c:ofpbuf_delete Unexecuted instantiation: ofp-ipfix.c:ofpbuf_delete Unexecuted instantiation: ofp-meter.c:ofpbuf_delete Unexecuted instantiation: ofp-monitor.c:ofpbuf_delete Unexecuted instantiation: ofp-packet.c:ofpbuf_delete Unexecuted instantiation: ofp-parse.c:ofpbuf_delete Unexecuted instantiation: ox-stat.c:ofpbuf_delete Unexecuted instantiation: pcap-file.c:ofpbuf_delete Unexecuted instantiation: stream.c:ofpbuf_delete Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_delete Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_delete Unexecuted instantiation: stream-unix.c:ofpbuf_delete Unexecuted instantiation: dpif-netlink.c:ofpbuf_delete Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_delete Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_delete Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_delete Unexecuted instantiation: netlink-conntrack.c:ofpbuf_delete Unexecuted instantiation: netlink-notifier.c:ofpbuf_delete Unexecuted instantiation: stream-ssl.c:ofpbuf_delete Unexecuted instantiation: bundle.c:ofpbuf_delete Unexecuted instantiation: conntrack.c:ofpbuf_delete Unexecuted instantiation: ct-dpif.c:ofpbuf_delete Unexecuted instantiation: dpctl.c:ofpbuf_delete Unexecuted instantiation: dpif-netdev.c:ofpbuf_delete Unexecuted instantiation: ipf.c:ofpbuf_delete Unexecuted instantiation: learn.c:ofpbuf_delete Unexecuted instantiation: multipath.c:ofpbuf_delete Unexecuted instantiation: stream-tcp.c:ofpbuf_delete Unexecuted instantiation: conntrack-icmp.c:ofpbuf_delete Unexecuted instantiation: conntrack-tcp.c:ofpbuf_delete Unexecuted instantiation: conntrack-tp.c:ofpbuf_delete Unexecuted instantiation: conntrack-other.c:ofpbuf_delete Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_delete Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_delete Unexecuted instantiation: odp_target.c:ofpbuf_delete Unexecuted instantiation: miniflow_target.c:ofpbuf_delete Unexecuted instantiation: ofp_print_target.c:ofpbuf_delete ofctl_parse_target.c:ofpbuf_delete Line | Count | Source | 172 | 10.8k | { | 173 | 10.8k | if (b) { | 174 | 10.8k | ofpbuf_uninit(b); | 175 | 10.8k | free(b); | 176 | 10.8k | } | 177 | 10.8k | } |
|
178 | | |
179 | | /* If 'b' contains at least 'offset + size' bytes of data, returns a pointer to |
180 | | * byte 'offset'. Otherwise, returns a null pointer. */ |
181 | | static inline void *ofpbuf_at(const struct ofpbuf *b, size_t offset, |
182 | | size_t size) |
183 | 3.81M | { |
184 | 3.81M | if (offset + size <= b->size) { |
185 | 3.77M | ovs_assert(b->data); |
186 | 3.77M | return (char *) b->data + offset; |
187 | 3.77M | } |
188 | 32.9k | return NULL; |
189 | 3.81M | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_at Unexecuted instantiation: dp-packet.c:ofpbuf_at Unexecuted instantiation: flow.c:ofpbuf_at Unexecuted instantiation: match.c:ofpbuf_at Unexecuted instantiation: netdev.c:ofpbuf_at Unexecuted instantiation: ofp-match.c:ofpbuf_at Unexecuted instantiation: ofp-msgs.c:ofpbuf_at Unexecuted instantiation: ofp-port.c:ofpbuf_at Unexecuted instantiation: ofp-print.c:ofpbuf_at Unexecuted instantiation: ofp-prop.c:ofpbuf_at Unexecuted instantiation: ofp-protocol.c:ofpbuf_at Unexecuted instantiation: ofp-queue.c:ofpbuf_at Unexecuted instantiation: ofp-switch.c:ofpbuf_at Unexecuted instantiation: ofp-table.c:ofpbuf_at Unexecuted instantiation: ofp-util.c:ofpbuf_at Unexecuted instantiation: ofpbuf.c:ofpbuf_at Unexecuted instantiation: ovs-router.c:ofpbuf_at Unexecuted instantiation: packets.c:ofpbuf_at Unexecuted instantiation: smap.c:ofpbuf_at Unexecuted instantiation: socket-util.c:ofpbuf_at Unexecuted instantiation: tnl-ports.c:ofpbuf_at Unexecuted instantiation: tun-metadata.c:ofpbuf_at Unexecuted instantiation: vlog.c:ofpbuf_at Unexecuted instantiation: netdev-linux.c:ofpbuf_at Unexecuted instantiation: netlink-socket.c:ofpbuf_at Unexecuted instantiation: rtnetlink.c:ofpbuf_at Unexecuted instantiation: route-table.c:ofpbuf_at Unexecuted instantiation: tc.c:ofpbuf_at Unexecuted instantiation: classifier.c:ofpbuf_at Unexecuted instantiation: dp-packet-gso.c:ofpbuf_at Unexecuted instantiation: dpif-offload.c:ofpbuf_at Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_at Unexecuted instantiation: dpif.c:ofpbuf_at Unexecuted instantiation: jsonrpc.c:ofpbuf_at Unexecuted instantiation: meta-flow.c:ofpbuf_at Unexecuted instantiation: netdev-dummy.c:ofpbuf_at Unexecuted instantiation: netdev-vport.c:ofpbuf_at Line | Count | Source | 183 | 17.2k | { | 184 | 17.2k | if (offset + size <= b->size) { | 185 | 17.2k | ovs_assert(b->data); | 186 | 17.2k | return (char *) b->data + offset; | 187 | 17.2k | } | 188 | 0 | return NULL; | 189 | 17.2k | } |
Line | Count | Source | 183 | 544 | { | 184 | 544 | if (offset + size <= b->size) { | 185 | 544 | ovs_assert(b->data); | 186 | 544 | return (char *) b->data + offset; | 187 | 544 | } | 188 | 0 | return NULL; | 189 | 544 | } |
Unexecuted instantiation: odp-execute.c:ofpbuf_at Unexecuted instantiation: odp-util.c:ofpbuf_at Line | Count | Source | 183 | 20.7k | { | 184 | 20.7k | if (offset + size <= b->size) { | 185 | 20.7k | ovs_assert(b->data); | 186 | 20.7k | return (char *) b->data + offset; | 187 | 20.7k | } | 188 | 0 | return NULL; | 189 | 20.7k | } |
Unexecuted instantiation: ofp-bundle.c:ofpbuf_at Unexecuted instantiation: ofp-connection.c:ofpbuf_at Unexecuted instantiation: ofp-ct.c:ofpbuf_at Unexecuted instantiation: ofp-ed-props.c:ofpbuf_at Unexecuted instantiation: ofp-errors.c:ofpbuf_at Unexecuted instantiation: ofp-flow.c:ofpbuf_at Unexecuted instantiation: ofp-group.c:ofpbuf_at Unexecuted instantiation: ofp-ipfix.c:ofpbuf_at Unexecuted instantiation: ofp-meter.c:ofpbuf_at Unexecuted instantiation: ofp-monitor.c:ofpbuf_at Unexecuted instantiation: ofp-packet.c:ofpbuf_at Unexecuted instantiation: ofp-parse.c:ofpbuf_at Unexecuted instantiation: ox-stat.c:ofpbuf_at Unexecuted instantiation: pcap-file.c:ofpbuf_at Unexecuted instantiation: stream.c:ofpbuf_at Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_at Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_at Unexecuted instantiation: stream-unix.c:ofpbuf_at Unexecuted instantiation: dpif-netlink.c:ofpbuf_at Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_at Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_at Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_at Unexecuted instantiation: netlink-conntrack.c:ofpbuf_at Unexecuted instantiation: netlink-notifier.c:ofpbuf_at Unexecuted instantiation: stream-ssl.c:ofpbuf_at Unexecuted instantiation: bundle.c:ofpbuf_at Unexecuted instantiation: conntrack.c:ofpbuf_at Unexecuted instantiation: ct-dpif.c:ofpbuf_at Unexecuted instantiation: dpctl.c:ofpbuf_at Unexecuted instantiation: dpif-netdev.c:ofpbuf_at Unexecuted instantiation: ipf.c:ofpbuf_at Unexecuted instantiation: learn.c:ofpbuf_at Unexecuted instantiation: multipath.c:ofpbuf_at Unexecuted instantiation: stream-tcp.c:ofpbuf_at Unexecuted instantiation: conntrack-icmp.c:ofpbuf_at Unexecuted instantiation: conntrack-tcp.c:ofpbuf_at Unexecuted instantiation: conntrack-tp.c:ofpbuf_at Unexecuted instantiation: conntrack-other.c:ofpbuf_at Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_at Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_at Unexecuted instantiation: odp_target.c:ofpbuf_at Unexecuted instantiation: miniflow_target.c:ofpbuf_at ofp_print_target.c:ofpbuf_at Line | Count | Source | 183 | 3.77M | { | 184 | 3.77M | if (offset + size <= b->size) { | 185 | 3.73M | ovs_assert(b->data); | 186 | 3.73M | return (char *) b->data + offset; | 187 | 3.73M | } | 188 | 32.9k | return NULL; | 189 | 3.77M | } |
Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_at |
190 | | |
191 | | /* Returns a pointer to byte 'offset' in 'b', which must contain at least |
192 | | * 'offset + size' bytes of data. */ |
193 | | static inline void *ofpbuf_at_assert(const struct ofpbuf *b, size_t offset, |
194 | | size_t size) |
195 | 536k | { |
196 | 536k | ovs_assert(offset + size <= b->size); |
197 | 536k | ovs_assert(b->data); |
198 | 536k | return (char *) b->data + offset; |
199 | 536k | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_at_assert Unexecuted instantiation: dp-packet.c:ofpbuf_at_assert Unexecuted instantiation: flow.c:ofpbuf_at_assert Unexecuted instantiation: match.c:ofpbuf_at_assert Unexecuted instantiation: netdev.c:ofpbuf_at_assert Unexecuted instantiation: ofp-match.c:ofpbuf_at_assert ofp-msgs.c:ofpbuf_at_assert Line | Count | Source | 195 | 10.8k | { | 196 | 10.8k | ovs_assert(offset + size <= b->size); | 197 | 10.8k | ovs_assert(b->data); | 198 | 10.8k | return (char *) b->data + offset; | 199 | 10.8k | } |
Unexecuted instantiation: ofp-port.c:ofpbuf_at_assert Unexecuted instantiation: ofp-print.c:ofpbuf_at_assert ofp-prop.c:ofpbuf_at_assert Line | Count | Source | 195 | 8.29k | { | 196 | 8.29k | ovs_assert(offset + size <= b->size); | 197 | 8.29k | ovs_assert(b->data); | 198 | 8.29k | return (char *) b->data + offset; | 199 | 8.29k | } |
Unexecuted instantiation: ofp-protocol.c:ofpbuf_at_assert ofp-queue.c:ofpbuf_at_assert Line | Count | Source | 195 | 9.56k | { | 196 | 9.56k | ovs_assert(offset + size <= b->size); | 197 | 9.56k | ovs_assert(b->data); | 198 | 9.56k | return (char *) b->data + offset; | 199 | 9.56k | } |
Unexecuted instantiation: ofp-switch.c:ofpbuf_at_assert Unexecuted instantiation: ofp-table.c:ofpbuf_at_assert Unexecuted instantiation: ofp-util.c:ofpbuf_at_assert Unexecuted instantiation: ofpbuf.c:ofpbuf_at_assert Unexecuted instantiation: ovs-router.c:ofpbuf_at_assert Unexecuted instantiation: packets.c:ofpbuf_at_assert Unexecuted instantiation: smap.c:ofpbuf_at_assert Unexecuted instantiation: socket-util.c:ofpbuf_at_assert Unexecuted instantiation: tnl-ports.c:ofpbuf_at_assert Unexecuted instantiation: tun-metadata.c:ofpbuf_at_assert Unexecuted instantiation: vlog.c:ofpbuf_at_assert Unexecuted instantiation: netdev-linux.c:ofpbuf_at_assert Unexecuted instantiation: netlink-socket.c:ofpbuf_at_assert Unexecuted instantiation: rtnetlink.c:ofpbuf_at_assert Unexecuted instantiation: route-table.c:ofpbuf_at_assert Unexecuted instantiation: tc.c:ofpbuf_at_assert Unexecuted instantiation: classifier.c:ofpbuf_at_assert Unexecuted instantiation: dp-packet-gso.c:ofpbuf_at_assert Unexecuted instantiation: dpif-offload.c:ofpbuf_at_assert Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_at_assert Unexecuted instantiation: dpif.c:ofpbuf_at_assert Unexecuted instantiation: jsonrpc.c:ofpbuf_at_assert Unexecuted instantiation: meta-flow.c:ofpbuf_at_assert Unexecuted instantiation: netdev-dummy.c:ofpbuf_at_assert Unexecuted instantiation: netdev-vport.c:ofpbuf_at_assert netlink.c:ofpbuf_at_assert Line | Count | Source | 195 | 339k | { | 196 | 339k | ovs_assert(offset + size <= b->size); | 197 | 339k | ovs_assert(b->data); | 198 | 339k | return (char *) b->data + offset; | 199 | 339k | } |
Unexecuted instantiation: nx-match.c:ofpbuf_at_assert Unexecuted instantiation: odp-execute.c:ofpbuf_at_assert odp-util.c:ofpbuf_at_assert Line | Count | Source | 195 | 27.3k | { | 196 | 27.3k | ovs_assert(offset + size <= b->size); | 197 | 27.3k | ovs_assert(b->data); | 198 | 27.3k | return (char *) b->data + offset; | 199 | 27.3k | } |
ofp-actions.c:ofpbuf_at_assert Line | Count | Source | 195 | 141k | { | 196 | 141k | ovs_assert(offset + size <= b->size); | 197 | 141k | ovs_assert(b->data); | 198 | 141k | return (char *) b->data + offset; | 199 | 141k | } |
Unexecuted instantiation: ofp-bundle.c:ofpbuf_at_assert Unexecuted instantiation: ofp-connection.c:ofpbuf_at_assert Unexecuted instantiation: ofp-ct.c:ofpbuf_at_assert Unexecuted instantiation: ofp-ed-props.c:ofpbuf_at_assert Unexecuted instantiation: ofp-errors.c:ofpbuf_at_assert Unexecuted instantiation: ofp-flow.c:ofpbuf_at_assert Unexecuted instantiation: ofp-group.c:ofpbuf_at_assert Unexecuted instantiation: ofp-ipfix.c:ofpbuf_at_assert Unexecuted instantiation: ofp-meter.c:ofpbuf_at_assert Unexecuted instantiation: ofp-monitor.c:ofpbuf_at_assert Unexecuted instantiation: ofp-packet.c:ofpbuf_at_assert Unexecuted instantiation: ofp-parse.c:ofpbuf_at_assert Unexecuted instantiation: ox-stat.c:ofpbuf_at_assert Unexecuted instantiation: pcap-file.c:ofpbuf_at_assert Unexecuted instantiation: stream.c:ofpbuf_at_assert Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_at_assert Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_at_assert Unexecuted instantiation: stream-unix.c:ofpbuf_at_assert Unexecuted instantiation: dpif-netlink.c:ofpbuf_at_assert Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_at_assert Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_at_assert Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_at_assert Unexecuted instantiation: netlink-conntrack.c:ofpbuf_at_assert Unexecuted instantiation: netlink-notifier.c:ofpbuf_at_assert Unexecuted instantiation: stream-ssl.c:ofpbuf_at_assert Unexecuted instantiation: bundle.c:ofpbuf_at_assert Unexecuted instantiation: conntrack.c:ofpbuf_at_assert Unexecuted instantiation: ct-dpif.c:ofpbuf_at_assert Unexecuted instantiation: dpctl.c:ofpbuf_at_assert Unexecuted instantiation: dpif-netdev.c:ofpbuf_at_assert Unexecuted instantiation: ipf.c:ofpbuf_at_assert Unexecuted instantiation: learn.c:ofpbuf_at_assert Unexecuted instantiation: multipath.c:ofpbuf_at_assert Unexecuted instantiation: stream-tcp.c:ofpbuf_at_assert Unexecuted instantiation: conntrack-icmp.c:ofpbuf_at_assert Unexecuted instantiation: conntrack-tcp.c:ofpbuf_at_assert Unexecuted instantiation: conntrack-tp.c:ofpbuf_at_assert Unexecuted instantiation: conntrack-other.c:ofpbuf_at_assert Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_at_assert Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_at_assert Unexecuted instantiation: odp_target.c:ofpbuf_at_assert Unexecuted instantiation: miniflow_target.c:ofpbuf_at_assert Unexecuted instantiation: ofp_print_target.c:ofpbuf_at_assert Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_at_assert |
200 | | |
201 | | /* Returns a pointer to byte following the last byte of data in use in 'b'. */ |
202 | | static inline void *ofpbuf_tail(const struct ofpbuf *b) |
203 | 15.9M | { |
204 | 15.9M | ovs_assert(b->data || !b->size); |
205 | 15.9M | return b->data ? (char *) b->data + b->size : NULL; |
206 | 15.9M | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_tail Unexecuted instantiation: dp-packet.c:ofpbuf_tail Unexecuted instantiation: flow.c:ofpbuf_tail Unexecuted instantiation: match.c:ofpbuf_tail Unexecuted instantiation: netdev.c:ofpbuf_tail Unexecuted instantiation: ofp-match.c:ofpbuf_tail Line | Count | Source | 203 | 10.8k | { | 204 | 10.8k | ovs_assert(b->data || !b->size); | 205 | 10.8k | return b->data ? (char *) b->data + b->size : NULL; | 206 | 10.8k | } |
Unexecuted instantiation: ofp-port.c:ofpbuf_tail Unexecuted instantiation: ofp-print.c:ofpbuf_tail Line | Count | Source | 203 | 27.7k | { | 204 | 27.7k | ovs_assert(b->data || !b->size); | 205 | 27.7k | return b->data ? (char *) b->data + b->size : NULL; | 206 | 27.7k | } |
Unexecuted instantiation: ofp-protocol.c:ofpbuf_tail Unexecuted instantiation: ofp-queue.c:ofpbuf_tail Unexecuted instantiation: ofp-switch.c:ofpbuf_tail Unexecuted instantiation: ofp-table.c:ofpbuf_tail Unexecuted instantiation: ofp-util.c:ofpbuf_tail Line | Count | Source | 203 | 15.6M | { | 204 | 15.6M | ovs_assert(b->data || !b->size); | 205 | 15.6M | return b->data ? (char *) b->data + b->size : NULL; | 206 | 15.6M | } |
Unexecuted instantiation: ovs-router.c:ofpbuf_tail Unexecuted instantiation: packets.c:ofpbuf_tail Unexecuted instantiation: smap.c:ofpbuf_tail Unexecuted instantiation: socket-util.c:ofpbuf_tail Unexecuted instantiation: tnl-ports.c:ofpbuf_tail Unexecuted instantiation: tun-metadata.c:ofpbuf_tail Unexecuted instantiation: vlog.c:ofpbuf_tail Unexecuted instantiation: netdev-linux.c:ofpbuf_tail Unexecuted instantiation: netlink-socket.c:ofpbuf_tail Unexecuted instantiation: rtnetlink.c:ofpbuf_tail Unexecuted instantiation: route-table.c:ofpbuf_tail Unexecuted instantiation: tc.c:ofpbuf_tail Unexecuted instantiation: classifier.c:ofpbuf_tail Unexecuted instantiation: dp-packet-gso.c:ofpbuf_tail Unexecuted instantiation: dpif-offload.c:ofpbuf_tail Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_tail Unexecuted instantiation: dpif.c:ofpbuf_tail Unexecuted instantiation: jsonrpc.c:ofpbuf_tail Unexecuted instantiation: meta-flow.c:ofpbuf_tail Unexecuted instantiation: netdev-dummy.c:ofpbuf_tail Unexecuted instantiation: netdev-vport.c:ofpbuf_tail Unexecuted instantiation: netlink.c:ofpbuf_tail Line | Count | Source | 203 | 5.74k | { | 204 | 5.74k | ovs_assert(b->data || !b->size); | 205 | 5.74k | return b->data ? (char *) b->data + b->size : NULL; | 206 | 5.74k | } |
Unexecuted instantiation: odp-execute.c:ofpbuf_tail Unexecuted instantiation: odp-util.c:ofpbuf_tail ofp-actions.c:ofpbuf_tail Line | Count | Source | 203 | 239k | { | 204 | 239k | ovs_assert(b->data || !b->size); | 205 | 239k | return b->data ? (char *) b->data + b->size : NULL; | 206 | 239k | } |
Unexecuted instantiation: ofp-bundle.c:ofpbuf_tail Unexecuted instantiation: ofp-connection.c:ofpbuf_tail Line | Count | Source | 203 | 13.1k | { | 204 | 13.1k | ovs_assert(b->data || !b->size); | 205 | 13.1k | return b->data ? (char *) b->data + b->size : NULL; | 206 | 13.1k | } |
Unexecuted instantiation: ofp-ed-props.c:ofpbuf_tail Unexecuted instantiation: ofp-errors.c:ofpbuf_tail Unexecuted instantiation: ofp-flow.c:ofpbuf_tail Unexecuted instantiation: ofp-group.c:ofpbuf_tail Unexecuted instantiation: ofp-ipfix.c:ofpbuf_tail Unexecuted instantiation: ofp-meter.c:ofpbuf_tail Unexecuted instantiation: ofp-monitor.c:ofpbuf_tail Line | Count | Source | 203 | 21.4k | { | 204 | 21.4k | ovs_assert(b->data || !b->size); | 205 | 21.4k | return b->data ? (char *) b->data + b->size : NULL; | 206 | 21.4k | } |
Unexecuted instantiation: ofp-parse.c:ofpbuf_tail Unexecuted instantiation: ox-stat.c:ofpbuf_tail Unexecuted instantiation: pcap-file.c:ofpbuf_tail Unexecuted instantiation: stream.c:ofpbuf_tail Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_tail Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_tail Unexecuted instantiation: stream-unix.c:ofpbuf_tail Unexecuted instantiation: dpif-netlink.c:ofpbuf_tail Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_tail Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_tail Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_tail Unexecuted instantiation: netlink-conntrack.c:ofpbuf_tail Unexecuted instantiation: netlink-notifier.c:ofpbuf_tail Unexecuted instantiation: stream-ssl.c:ofpbuf_tail Line | Count | Source | 203 | 3.04k | { | 204 | 3.04k | ovs_assert(b->data || !b->size); | 205 | 3.04k | return b->data ? (char *) b->data + b->size : NULL; | 206 | 3.04k | } |
Unexecuted instantiation: conntrack.c:ofpbuf_tail Unexecuted instantiation: ct-dpif.c:ofpbuf_tail Unexecuted instantiation: dpctl.c:ofpbuf_tail Unexecuted instantiation: dpif-netdev.c:ofpbuf_tail Unexecuted instantiation: ipf.c:ofpbuf_tail Line | Count | Source | 203 | 31.3k | { | 204 | 31.3k | ovs_assert(b->data || !b->size); | 205 | 31.3k | return b->data ? (char *) b->data + b->size : NULL; | 206 | 31.3k | } |
Unexecuted instantiation: multipath.c:ofpbuf_tail Unexecuted instantiation: stream-tcp.c:ofpbuf_tail Unexecuted instantiation: conntrack-icmp.c:ofpbuf_tail Unexecuted instantiation: conntrack-tcp.c:ofpbuf_tail Unexecuted instantiation: conntrack-tp.c:ofpbuf_tail Unexecuted instantiation: conntrack-other.c:ofpbuf_tail Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_tail Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_tail Unexecuted instantiation: odp_target.c:ofpbuf_tail Unexecuted instantiation: miniflow_target.c:ofpbuf_tail Unexecuted instantiation: ofp_print_target.c:ofpbuf_tail Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_tail |
207 | | |
208 | | /* Returns a pointer to byte following the last byte allocated for use (but |
209 | | * not necessarily in use) in 'b'. */ |
210 | | static inline void *ofpbuf_end(const struct ofpbuf *b) |
211 | 8.08M | { |
212 | 8.08M | ovs_assert(b->base || !b->allocated); |
213 | 8.08M | return b->base ? (char *) b->base + b->allocated : NULL; |
214 | 8.08M | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_end Unexecuted instantiation: dp-packet.c:ofpbuf_end Unexecuted instantiation: flow.c:ofpbuf_end Unexecuted instantiation: match.c:ofpbuf_end Unexecuted instantiation: netdev.c:ofpbuf_end Unexecuted instantiation: ofp-match.c:ofpbuf_end Unexecuted instantiation: ofp-msgs.c:ofpbuf_end Unexecuted instantiation: ofp-port.c:ofpbuf_end Unexecuted instantiation: ofp-print.c:ofpbuf_end Unexecuted instantiation: ofp-prop.c:ofpbuf_end Unexecuted instantiation: ofp-protocol.c:ofpbuf_end Unexecuted instantiation: ofp-queue.c:ofpbuf_end Unexecuted instantiation: ofp-switch.c:ofpbuf_end Unexecuted instantiation: ofp-table.c:ofpbuf_end Unexecuted instantiation: ofp-util.c:ofpbuf_end Line | Count | Source | 211 | 8.08M | { | 212 | 8.08M | ovs_assert(b->base || !b->allocated); | 213 | 8.08M | return b->base ? (char *) b->base + b->allocated : NULL; | 214 | 8.08M | } |
Unexecuted instantiation: ovs-router.c:ofpbuf_end Unexecuted instantiation: packets.c:ofpbuf_end Unexecuted instantiation: smap.c:ofpbuf_end Unexecuted instantiation: socket-util.c:ofpbuf_end Unexecuted instantiation: tnl-ports.c:ofpbuf_end Unexecuted instantiation: tun-metadata.c:ofpbuf_end Unexecuted instantiation: vlog.c:ofpbuf_end Unexecuted instantiation: netdev-linux.c:ofpbuf_end Unexecuted instantiation: netlink-socket.c:ofpbuf_end Unexecuted instantiation: rtnetlink.c:ofpbuf_end Unexecuted instantiation: route-table.c:ofpbuf_end Unexecuted instantiation: tc.c:ofpbuf_end Unexecuted instantiation: classifier.c:ofpbuf_end Unexecuted instantiation: dp-packet-gso.c:ofpbuf_end Unexecuted instantiation: dpif-offload.c:ofpbuf_end Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_end Unexecuted instantiation: dpif.c:ofpbuf_end Unexecuted instantiation: jsonrpc.c:ofpbuf_end Unexecuted instantiation: meta-flow.c:ofpbuf_end Unexecuted instantiation: netdev-dummy.c:ofpbuf_end Unexecuted instantiation: netdev-vport.c:ofpbuf_end Unexecuted instantiation: netlink.c:ofpbuf_end Unexecuted instantiation: nx-match.c:ofpbuf_end Unexecuted instantiation: odp-execute.c:ofpbuf_end Unexecuted instantiation: odp-util.c:ofpbuf_end Unexecuted instantiation: ofp-actions.c:ofpbuf_end Unexecuted instantiation: ofp-bundle.c:ofpbuf_end Unexecuted instantiation: ofp-connection.c:ofpbuf_end Unexecuted instantiation: ofp-ct.c:ofpbuf_end Unexecuted instantiation: ofp-ed-props.c:ofpbuf_end Unexecuted instantiation: ofp-errors.c:ofpbuf_end Unexecuted instantiation: ofp-flow.c:ofpbuf_end Unexecuted instantiation: ofp-group.c:ofpbuf_end Unexecuted instantiation: ofp-ipfix.c:ofpbuf_end Unexecuted instantiation: ofp-meter.c:ofpbuf_end Unexecuted instantiation: ofp-monitor.c:ofpbuf_end Unexecuted instantiation: ofp-packet.c:ofpbuf_end Unexecuted instantiation: ofp-parse.c:ofpbuf_end Unexecuted instantiation: ox-stat.c:ofpbuf_end Unexecuted instantiation: pcap-file.c:ofpbuf_end Unexecuted instantiation: stream.c:ofpbuf_end Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_end Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_end Unexecuted instantiation: stream-unix.c:ofpbuf_end Unexecuted instantiation: dpif-netlink.c:ofpbuf_end Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_end Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_end Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_end Unexecuted instantiation: netlink-conntrack.c:ofpbuf_end Unexecuted instantiation: netlink-notifier.c:ofpbuf_end Unexecuted instantiation: stream-ssl.c:ofpbuf_end Unexecuted instantiation: bundle.c:ofpbuf_end Unexecuted instantiation: conntrack.c:ofpbuf_end Unexecuted instantiation: ct-dpif.c:ofpbuf_end Unexecuted instantiation: dpctl.c:ofpbuf_end Unexecuted instantiation: dpif-netdev.c:ofpbuf_end Unexecuted instantiation: ipf.c:ofpbuf_end Unexecuted instantiation: learn.c:ofpbuf_end Unexecuted instantiation: multipath.c:ofpbuf_end Unexecuted instantiation: stream-tcp.c:ofpbuf_end Unexecuted instantiation: conntrack-icmp.c:ofpbuf_end Unexecuted instantiation: conntrack-tcp.c:ofpbuf_end Unexecuted instantiation: conntrack-tp.c:ofpbuf_end Unexecuted instantiation: conntrack-other.c:ofpbuf_end Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_end Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_end Unexecuted instantiation: odp_target.c:ofpbuf_end Unexecuted instantiation: miniflow_target.c:ofpbuf_end Unexecuted instantiation: ofp_print_target.c:ofpbuf_end Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_end |
215 | | |
216 | | /* Returns the number of bytes of headroom in 'b', that is, the number of bytes |
217 | | * of unused space in ofpbuf 'b' before the data that is in use. (Most |
218 | | * commonly, the data in a ofpbuf is at its beginning, and thus the ofpbuf's |
219 | | * headroom is 0.) */ |
220 | | static inline size_t ofpbuf_headroom(const struct ofpbuf *b) |
221 | 2.75M | { |
222 | 2.75M | return (char*)b->data - (char*)b->base; |
223 | 2.75M | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_headroom Unexecuted instantiation: dp-packet.c:ofpbuf_headroom Unexecuted instantiation: flow.c:ofpbuf_headroom Unexecuted instantiation: match.c:ofpbuf_headroom Unexecuted instantiation: netdev.c:ofpbuf_headroom Unexecuted instantiation: ofp-match.c:ofpbuf_headroom Unexecuted instantiation: ofp-msgs.c:ofpbuf_headroom Unexecuted instantiation: ofp-port.c:ofpbuf_headroom Unexecuted instantiation: ofp-print.c:ofpbuf_headroom Unexecuted instantiation: ofp-prop.c:ofpbuf_headroom Unexecuted instantiation: ofp-protocol.c:ofpbuf_headroom Unexecuted instantiation: ofp-queue.c:ofpbuf_headroom Unexecuted instantiation: ofp-switch.c:ofpbuf_headroom Unexecuted instantiation: ofp-table.c:ofpbuf_headroom Unexecuted instantiation: ofp-util.c:ofpbuf_headroom Line | Count | Source | 221 | 2.75M | { | 222 | 2.75M | return (char*)b->data - (char*)b->base; | 223 | 2.75M | } |
Unexecuted instantiation: ovs-router.c:ofpbuf_headroom Unexecuted instantiation: packets.c:ofpbuf_headroom Unexecuted instantiation: smap.c:ofpbuf_headroom Unexecuted instantiation: socket-util.c:ofpbuf_headroom Unexecuted instantiation: tnl-ports.c:ofpbuf_headroom Unexecuted instantiation: tun-metadata.c:ofpbuf_headroom Unexecuted instantiation: vlog.c:ofpbuf_headroom Unexecuted instantiation: netdev-linux.c:ofpbuf_headroom Unexecuted instantiation: netlink-socket.c:ofpbuf_headroom Unexecuted instantiation: rtnetlink.c:ofpbuf_headroom Unexecuted instantiation: route-table.c:ofpbuf_headroom Unexecuted instantiation: tc.c:ofpbuf_headroom Unexecuted instantiation: classifier.c:ofpbuf_headroom Unexecuted instantiation: dp-packet-gso.c:ofpbuf_headroom Unexecuted instantiation: dpif-offload.c:ofpbuf_headroom Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_headroom Unexecuted instantiation: dpif.c:ofpbuf_headroom Unexecuted instantiation: jsonrpc.c:ofpbuf_headroom Unexecuted instantiation: meta-flow.c:ofpbuf_headroom Unexecuted instantiation: netdev-dummy.c:ofpbuf_headroom Unexecuted instantiation: netdev-vport.c:ofpbuf_headroom Unexecuted instantiation: netlink.c:ofpbuf_headroom Unexecuted instantiation: nx-match.c:ofpbuf_headroom Unexecuted instantiation: odp-execute.c:ofpbuf_headroom Unexecuted instantiation: odp-util.c:ofpbuf_headroom Unexecuted instantiation: ofp-actions.c:ofpbuf_headroom Unexecuted instantiation: ofp-bundle.c:ofpbuf_headroom Unexecuted instantiation: ofp-connection.c:ofpbuf_headroom Unexecuted instantiation: ofp-ct.c:ofpbuf_headroom Unexecuted instantiation: ofp-ed-props.c:ofpbuf_headroom Unexecuted instantiation: ofp-errors.c:ofpbuf_headroom Unexecuted instantiation: ofp-flow.c:ofpbuf_headroom Unexecuted instantiation: ofp-group.c:ofpbuf_headroom Unexecuted instantiation: ofp-ipfix.c:ofpbuf_headroom Unexecuted instantiation: ofp-meter.c:ofpbuf_headroom Unexecuted instantiation: ofp-monitor.c:ofpbuf_headroom Unexecuted instantiation: ofp-packet.c:ofpbuf_headroom Unexecuted instantiation: ofp-parse.c:ofpbuf_headroom Unexecuted instantiation: ox-stat.c:ofpbuf_headroom Unexecuted instantiation: pcap-file.c:ofpbuf_headroom Unexecuted instantiation: stream.c:ofpbuf_headroom Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_headroom Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_headroom Unexecuted instantiation: stream-unix.c:ofpbuf_headroom Unexecuted instantiation: dpif-netlink.c:ofpbuf_headroom Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_headroom Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_headroom Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_headroom Unexecuted instantiation: netlink-conntrack.c:ofpbuf_headroom Unexecuted instantiation: netlink-notifier.c:ofpbuf_headroom Unexecuted instantiation: stream-ssl.c:ofpbuf_headroom Unexecuted instantiation: bundle.c:ofpbuf_headroom Unexecuted instantiation: conntrack.c:ofpbuf_headroom Unexecuted instantiation: ct-dpif.c:ofpbuf_headroom Unexecuted instantiation: dpctl.c:ofpbuf_headroom Unexecuted instantiation: dpif-netdev.c:ofpbuf_headroom Unexecuted instantiation: ipf.c:ofpbuf_headroom Unexecuted instantiation: learn.c:ofpbuf_headroom Unexecuted instantiation: multipath.c:ofpbuf_headroom Unexecuted instantiation: stream-tcp.c:ofpbuf_headroom Unexecuted instantiation: conntrack-icmp.c:ofpbuf_headroom Unexecuted instantiation: conntrack-tcp.c:ofpbuf_headroom Unexecuted instantiation: conntrack-tp.c:ofpbuf_headroom Unexecuted instantiation: conntrack-other.c:ofpbuf_headroom Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_headroom Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_headroom Unexecuted instantiation: odp_target.c:ofpbuf_headroom Unexecuted instantiation: miniflow_target.c:ofpbuf_headroom Unexecuted instantiation: ofp_print_target.c:ofpbuf_headroom Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_headroom |
224 | | |
225 | | /* Returns the number of bytes that may be appended to the tail end of ofpbuf |
226 | | * 'b' before the ofpbuf must be reallocated. */ |
227 | | static inline size_t ofpbuf_tailroom(const struct ofpbuf *b) |
228 | 8.08M | { |
229 | 8.08M | return (char*)ofpbuf_end(b) - (char*)ofpbuf_tail(b); |
230 | 8.08M | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_tailroom Unexecuted instantiation: dp-packet.c:ofpbuf_tailroom Unexecuted instantiation: flow.c:ofpbuf_tailroom Unexecuted instantiation: match.c:ofpbuf_tailroom Unexecuted instantiation: netdev.c:ofpbuf_tailroom Unexecuted instantiation: ofp-match.c:ofpbuf_tailroom Unexecuted instantiation: ofp-msgs.c:ofpbuf_tailroom Unexecuted instantiation: ofp-port.c:ofpbuf_tailroom Unexecuted instantiation: ofp-print.c:ofpbuf_tailroom Unexecuted instantiation: ofp-prop.c:ofpbuf_tailroom Unexecuted instantiation: ofp-protocol.c:ofpbuf_tailroom Unexecuted instantiation: ofp-queue.c:ofpbuf_tailroom Unexecuted instantiation: ofp-switch.c:ofpbuf_tailroom Unexecuted instantiation: ofp-table.c:ofpbuf_tailroom Unexecuted instantiation: ofp-util.c:ofpbuf_tailroom Line | Count | Source | 228 | 8.08M | { | 229 | 8.08M | return (char*)ofpbuf_end(b) - (char*)ofpbuf_tail(b); | 230 | 8.08M | } |
Unexecuted instantiation: ovs-router.c:ofpbuf_tailroom Unexecuted instantiation: packets.c:ofpbuf_tailroom Unexecuted instantiation: smap.c:ofpbuf_tailroom Unexecuted instantiation: socket-util.c:ofpbuf_tailroom Unexecuted instantiation: tnl-ports.c:ofpbuf_tailroom Unexecuted instantiation: tun-metadata.c:ofpbuf_tailroom Unexecuted instantiation: vlog.c:ofpbuf_tailroom Unexecuted instantiation: netdev-linux.c:ofpbuf_tailroom Unexecuted instantiation: netlink-socket.c:ofpbuf_tailroom Unexecuted instantiation: rtnetlink.c:ofpbuf_tailroom Unexecuted instantiation: route-table.c:ofpbuf_tailroom Unexecuted instantiation: tc.c:ofpbuf_tailroom Unexecuted instantiation: classifier.c:ofpbuf_tailroom Unexecuted instantiation: dp-packet-gso.c:ofpbuf_tailroom Unexecuted instantiation: dpif-offload.c:ofpbuf_tailroom Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_tailroom Unexecuted instantiation: dpif.c:ofpbuf_tailroom Unexecuted instantiation: jsonrpc.c:ofpbuf_tailroom Unexecuted instantiation: meta-flow.c:ofpbuf_tailroom Unexecuted instantiation: netdev-dummy.c:ofpbuf_tailroom Unexecuted instantiation: netdev-vport.c:ofpbuf_tailroom Unexecuted instantiation: netlink.c:ofpbuf_tailroom Unexecuted instantiation: nx-match.c:ofpbuf_tailroom Unexecuted instantiation: odp-execute.c:ofpbuf_tailroom Unexecuted instantiation: odp-util.c:ofpbuf_tailroom Unexecuted instantiation: ofp-actions.c:ofpbuf_tailroom Unexecuted instantiation: ofp-bundle.c:ofpbuf_tailroom Unexecuted instantiation: ofp-connection.c:ofpbuf_tailroom Unexecuted instantiation: ofp-ct.c:ofpbuf_tailroom Unexecuted instantiation: ofp-ed-props.c:ofpbuf_tailroom Unexecuted instantiation: ofp-errors.c:ofpbuf_tailroom Unexecuted instantiation: ofp-flow.c:ofpbuf_tailroom Unexecuted instantiation: ofp-group.c:ofpbuf_tailroom Unexecuted instantiation: ofp-ipfix.c:ofpbuf_tailroom Unexecuted instantiation: ofp-meter.c:ofpbuf_tailroom Unexecuted instantiation: ofp-monitor.c:ofpbuf_tailroom Unexecuted instantiation: ofp-packet.c:ofpbuf_tailroom Unexecuted instantiation: ofp-parse.c:ofpbuf_tailroom Unexecuted instantiation: ox-stat.c:ofpbuf_tailroom Unexecuted instantiation: pcap-file.c:ofpbuf_tailroom Unexecuted instantiation: stream.c:ofpbuf_tailroom Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_tailroom Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_tailroom Unexecuted instantiation: stream-unix.c:ofpbuf_tailroom Unexecuted instantiation: dpif-netlink.c:ofpbuf_tailroom Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_tailroom Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_tailroom Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_tailroom Unexecuted instantiation: netlink-conntrack.c:ofpbuf_tailroom Unexecuted instantiation: netlink-notifier.c:ofpbuf_tailroom Unexecuted instantiation: stream-ssl.c:ofpbuf_tailroom Unexecuted instantiation: bundle.c:ofpbuf_tailroom Unexecuted instantiation: conntrack.c:ofpbuf_tailroom Unexecuted instantiation: ct-dpif.c:ofpbuf_tailroom Unexecuted instantiation: dpctl.c:ofpbuf_tailroom Unexecuted instantiation: dpif-netdev.c:ofpbuf_tailroom Unexecuted instantiation: ipf.c:ofpbuf_tailroom Unexecuted instantiation: learn.c:ofpbuf_tailroom Unexecuted instantiation: multipath.c:ofpbuf_tailroom Unexecuted instantiation: stream-tcp.c:ofpbuf_tailroom Unexecuted instantiation: conntrack-icmp.c:ofpbuf_tailroom Unexecuted instantiation: conntrack-tcp.c:ofpbuf_tailroom Unexecuted instantiation: conntrack-tp.c:ofpbuf_tailroom Unexecuted instantiation: conntrack-other.c:ofpbuf_tailroom Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_tailroom Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_tailroom Unexecuted instantiation: odp_target.c:ofpbuf_tailroom Unexecuted instantiation: miniflow_target.c:ofpbuf_tailroom Unexecuted instantiation: ofp_print_target.c:ofpbuf_tailroom Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_tailroom |
231 | | |
232 | | /* Returns the number of bytes from 'b->header' to 'b->msg', that is, the |
233 | | * length of 'b''s header. */ |
234 | | static inline size_t |
235 | | ofpbuf_headersize(const struct ofpbuf *b) |
236 | 27.8k | { |
237 | 27.8k | return (char *)b->msg - (char *)b->header; |
238 | 27.8k | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_headersize Unexecuted instantiation: dp-packet.c:ofpbuf_headersize Unexecuted instantiation: flow.c:ofpbuf_headersize Unexecuted instantiation: match.c:ofpbuf_headersize Unexecuted instantiation: netdev.c:ofpbuf_headersize Unexecuted instantiation: ofp-match.c:ofpbuf_headersize Unexecuted instantiation: ofp-msgs.c:ofpbuf_headersize Unexecuted instantiation: ofp-port.c:ofpbuf_headersize Unexecuted instantiation: ofp-print.c:ofpbuf_headersize ofp-prop.c:ofpbuf_headersize Line | Count | Source | 236 | 20.7k | { | 237 | 20.7k | return (char *)b->msg - (char *)b->header; | 238 | 20.7k | } |
Unexecuted instantiation: ofp-protocol.c:ofpbuf_headersize Unexecuted instantiation: ofp-queue.c:ofpbuf_headersize Unexecuted instantiation: ofp-switch.c:ofpbuf_headersize Unexecuted instantiation: ofp-table.c:ofpbuf_headersize Unexecuted instantiation: ofp-util.c:ofpbuf_headersize Unexecuted instantiation: ofpbuf.c:ofpbuf_headersize Unexecuted instantiation: ovs-router.c:ofpbuf_headersize Unexecuted instantiation: packets.c:ofpbuf_headersize Unexecuted instantiation: smap.c:ofpbuf_headersize Unexecuted instantiation: socket-util.c:ofpbuf_headersize Unexecuted instantiation: tnl-ports.c:ofpbuf_headersize Unexecuted instantiation: tun-metadata.c:ofpbuf_headersize Unexecuted instantiation: vlog.c:ofpbuf_headersize Unexecuted instantiation: netdev-linux.c:ofpbuf_headersize Unexecuted instantiation: netlink-socket.c:ofpbuf_headersize Unexecuted instantiation: rtnetlink.c:ofpbuf_headersize Unexecuted instantiation: route-table.c:ofpbuf_headersize Unexecuted instantiation: tc.c:ofpbuf_headersize Unexecuted instantiation: classifier.c:ofpbuf_headersize Unexecuted instantiation: dp-packet-gso.c:ofpbuf_headersize Unexecuted instantiation: dpif-offload.c:ofpbuf_headersize Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_headersize Unexecuted instantiation: dpif.c:ofpbuf_headersize Unexecuted instantiation: jsonrpc.c:ofpbuf_headersize Unexecuted instantiation: meta-flow.c:ofpbuf_headersize Unexecuted instantiation: netdev-dummy.c:ofpbuf_headersize Unexecuted instantiation: netdev-vport.c:ofpbuf_headersize Unexecuted instantiation: netlink.c:ofpbuf_headersize Unexecuted instantiation: nx-match.c:ofpbuf_headersize Unexecuted instantiation: odp-execute.c:ofpbuf_headersize Unexecuted instantiation: odp-util.c:ofpbuf_headersize Unexecuted instantiation: ofp-actions.c:ofpbuf_headersize Unexecuted instantiation: ofp-bundle.c:ofpbuf_headersize Unexecuted instantiation: ofp-connection.c:ofpbuf_headersize Unexecuted instantiation: ofp-ct.c:ofpbuf_headersize Unexecuted instantiation: ofp-ed-props.c:ofpbuf_headersize Unexecuted instantiation: ofp-errors.c:ofpbuf_headersize Unexecuted instantiation: ofp-flow.c:ofpbuf_headersize Unexecuted instantiation: ofp-group.c:ofpbuf_headersize Unexecuted instantiation: ofp-ipfix.c:ofpbuf_headersize Unexecuted instantiation: ofp-meter.c:ofpbuf_headersize Unexecuted instantiation: ofp-monitor.c:ofpbuf_headersize ofp-packet.c:ofpbuf_headersize Line | Count | Source | 236 | 7.05k | { | 237 | 7.05k | return (char *)b->msg - (char *)b->header; | 238 | 7.05k | } |
Unexecuted instantiation: ofp-parse.c:ofpbuf_headersize Unexecuted instantiation: ox-stat.c:ofpbuf_headersize Unexecuted instantiation: pcap-file.c:ofpbuf_headersize Unexecuted instantiation: stream.c:ofpbuf_headersize Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_headersize Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_headersize Unexecuted instantiation: stream-unix.c:ofpbuf_headersize Unexecuted instantiation: dpif-netlink.c:ofpbuf_headersize Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_headersize Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_headersize Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_headersize Unexecuted instantiation: netlink-conntrack.c:ofpbuf_headersize Unexecuted instantiation: netlink-notifier.c:ofpbuf_headersize Unexecuted instantiation: stream-ssl.c:ofpbuf_headersize Unexecuted instantiation: bundle.c:ofpbuf_headersize Unexecuted instantiation: conntrack.c:ofpbuf_headersize Unexecuted instantiation: ct-dpif.c:ofpbuf_headersize Unexecuted instantiation: dpctl.c:ofpbuf_headersize Unexecuted instantiation: dpif-netdev.c:ofpbuf_headersize Unexecuted instantiation: ipf.c:ofpbuf_headersize Unexecuted instantiation: learn.c:ofpbuf_headersize Unexecuted instantiation: multipath.c:ofpbuf_headersize Unexecuted instantiation: stream-tcp.c:ofpbuf_headersize Unexecuted instantiation: conntrack-icmp.c:ofpbuf_headersize Unexecuted instantiation: conntrack-tcp.c:ofpbuf_headersize Unexecuted instantiation: conntrack-tp.c:ofpbuf_headersize Unexecuted instantiation: conntrack-other.c:ofpbuf_headersize Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_headersize Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_headersize Unexecuted instantiation: odp_target.c:ofpbuf_headersize Unexecuted instantiation: miniflow_target.c:ofpbuf_headersize Unexecuted instantiation: ofp_print_target.c:ofpbuf_headersize Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_headersize |
239 | | |
240 | | /* Returns the number of bytes from 'b->msg' to 'b->data + b->size', that is, |
241 | | * the length of the used space in 'b' starting from 'msg'. */ |
242 | | static inline size_t |
243 | | ofpbuf_msgsize(const struct ofpbuf *b) |
244 | 62.3k | { |
245 | 62.3k | return (char *)ofpbuf_tail(b) - (char *)b->msg; |
246 | 62.3k | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_msgsize Unexecuted instantiation: dp-packet.c:ofpbuf_msgsize Unexecuted instantiation: flow.c:ofpbuf_msgsize Unexecuted instantiation: match.c:ofpbuf_msgsize Unexecuted instantiation: netdev.c:ofpbuf_msgsize Unexecuted instantiation: ofp-match.c:ofpbuf_msgsize Unexecuted instantiation: ofp-msgs.c:ofpbuf_msgsize Unexecuted instantiation: ofp-port.c:ofpbuf_msgsize Unexecuted instantiation: ofp-print.c:ofpbuf_msgsize ofp-prop.c:ofpbuf_msgsize Line | Count | Source | 244 | 27.7k | { | 245 | 27.7k | return (char *)ofpbuf_tail(b) - (char *)b->msg; | 246 | 27.7k | } |
Unexecuted instantiation: ofp-protocol.c:ofpbuf_msgsize Unexecuted instantiation: ofp-queue.c:ofpbuf_msgsize Unexecuted instantiation: ofp-switch.c:ofpbuf_msgsize Unexecuted instantiation: ofp-table.c:ofpbuf_msgsize Unexecuted instantiation: ofp-util.c:ofpbuf_msgsize Unexecuted instantiation: ofpbuf.c:ofpbuf_msgsize Unexecuted instantiation: ovs-router.c:ofpbuf_msgsize Unexecuted instantiation: packets.c:ofpbuf_msgsize Unexecuted instantiation: smap.c:ofpbuf_msgsize Unexecuted instantiation: socket-util.c:ofpbuf_msgsize Unexecuted instantiation: tnl-ports.c:ofpbuf_msgsize Unexecuted instantiation: tun-metadata.c:ofpbuf_msgsize Unexecuted instantiation: vlog.c:ofpbuf_msgsize Unexecuted instantiation: netdev-linux.c:ofpbuf_msgsize Unexecuted instantiation: netlink-socket.c:ofpbuf_msgsize Unexecuted instantiation: rtnetlink.c:ofpbuf_msgsize Unexecuted instantiation: route-table.c:ofpbuf_msgsize Unexecuted instantiation: tc.c:ofpbuf_msgsize Unexecuted instantiation: classifier.c:ofpbuf_msgsize Unexecuted instantiation: dp-packet-gso.c:ofpbuf_msgsize Unexecuted instantiation: dpif-offload.c:ofpbuf_msgsize Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_msgsize Unexecuted instantiation: dpif.c:ofpbuf_msgsize Unexecuted instantiation: jsonrpc.c:ofpbuf_msgsize Unexecuted instantiation: meta-flow.c:ofpbuf_msgsize Unexecuted instantiation: netdev-dummy.c:ofpbuf_msgsize Unexecuted instantiation: netdev-vport.c:ofpbuf_msgsize Unexecuted instantiation: netlink.c:ofpbuf_msgsize Unexecuted instantiation: nx-match.c:ofpbuf_msgsize Unexecuted instantiation: odp-execute.c:ofpbuf_msgsize Unexecuted instantiation: odp-util.c:ofpbuf_msgsize ofp-actions.c:ofpbuf_msgsize Line | Count | Source | 244 | 106 | { | 245 | 106 | return (char *)ofpbuf_tail(b) - (char *)b->msg; | 246 | 106 | } |
Unexecuted instantiation: ofp-bundle.c:ofpbuf_msgsize Unexecuted instantiation: ofp-connection.c:ofpbuf_msgsize Line | Count | Source | 244 | 13.1k | { | 245 | 13.1k | return (char *)ofpbuf_tail(b) - (char *)b->msg; | 246 | 13.1k | } |
Unexecuted instantiation: ofp-ed-props.c:ofpbuf_msgsize Unexecuted instantiation: ofp-errors.c:ofpbuf_msgsize Unexecuted instantiation: ofp-flow.c:ofpbuf_msgsize Unexecuted instantiation: ofp-group.c:ofpbuf_msgsize Unexecuted instantiation: ofp-ipfix.c:ofpbuf_msgsize Unexecuted instantiation: ofp-meter.c:ofpbuf_msgsize Unexecuted instantiation: ofp-monitor.c:ofpbuf_msgsize ofp-packet.c:ofpbuf_msgsize Line | Count | Source | 244 | 21.4k | { | 245 | 21.4k | return (char *)ofpbuf_tail(b) - (char *)b->msg; | 246 | 21.4k | } |
Unexecuted instantiation: ofp-parse.c:ofpbuf_msgsize Unexecuted instantiation: ox-stat.c:ofpbuf_msgsize Unexecuted instantiation: pcap-file.c:ofpbuf_msgsize Unexecuted instantiation: stream.c:ofpbuf_msgsize Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_msgsize Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_msgsize Unexecuted instantiation: stream-unix.c:ofpbuf_msgsize Unexecuted instantiation: dpif-netlink.c:ofpbuf_msgsize Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_msgsize Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_msgsize Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_msgsize Unexecuted instantiation: netlink-conntrack.c:ofpbuf_msgsize Unexecuted instantiation: netlink-notifier.c:ofpbuf_msgsize Unexecuted instantiation: stream-ssl.c:ofpbuf_msgsize Unexecuted instantiation: bundle.c:ofpbuf_msgsize Unexecuted instantiation: conntrack.c:ofpbuf_msgsize Unexecuted instantiation: ct-dpif.c:ofpbuf_msgsize Unexecuted instantiation: dpctl.c:ofpbuf_msgsize Unexecuted instantiation: dpif-netdev.c:ofpbuf_msgsize Unexecuted instantiation: ipf.c:ofpbuf_msgsize Unexecuted instantiation: learn.c:ofpbuf_msgsize Unexecuted instantiation: multipath.c:ofpbuf_msgsize Unexecuted instantiation: stream-tcp.c:ofpbuf_msgsize Unexecuted instantiation: conntrack-icmp.c:ofpbuf_msgsize Unexecuted instantiation: conntrack-tcp.c:ofpbuf_msgsize Unexecuted instantiation: conntrack-tp.c:ofpbuf_msgsize Unexecuted instantiation: conntrack-other.c:ofpbuf_msgsize Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_msgsize Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_msgsize Unexecuted instantiation: odp_target.c:ofpbuf_msgsize Unexecuted instantiation: miniflow_target.c:ofpbuf_msgsize Unexecuted instantiation: ofp_print_target.c:ofpbuf_msgsize Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_msgsize |
247 | | |
248 | | /* Clears any data from 'b'. */ |
249 | | static inline void ofpbuf_clear(struct ofpbuf *b) |
250 | 916k | { |
251 | 916k | b->data = b->base; |
252 | 916k | b->size = 0; |
253 | 916k | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_clear Unexecuted instantiation: dp-packet.c:ofpbuf_clear Unexecuted instantiation: flow.c:ofpbuf_clear Unexecuted instantiation: match.c:ofpbuf_clear Unexecuted instantiation: netdev.c:ofpbuf_clear Unexecuted instantiation: ofp-match.c:ofpbuf_clear Unexecuted instantiation: ofp-msgs.c:ofpbuf_clear Unexecuted instantiation: ofp-port.c:ofpbuf_clear Unexecuted instantiation: ofp-print.c:ofpbuf_clear Unexecuted instantiation: ofp-prop.c:ofpbuf_clear Unexecuted instantiation: ofp-protocol.c:ofpbuf_clear Unexecuted instantiation: ofp-queue.c:ofpbuf_clear Unexecuted instantiation: ofp-switch.c:ofpbuf_clear Unexecuted instantiation: ofp-table.c:ofpbuf_clear Unexecuted instantiation: ofp-util.c:ofpbuf_clear Unexecuted instantiation: ofpbuf.c:ofpbuf_clear Unexecuted instantiation: ovs-router.c:ofpbuf_clear Unexecuted instantiation: packets.c:ofpbuf_clear Unexecuted instantiation: smap.c:ofpbuf_clear Unexecuted instantiation: socket-util.c:ofpbuf_clear Unexecuted instantiation: tnl-ports.c:ofpbuf_clear Unexecuted instantiation: tun-metadata.c:ofpbuf_clear Unexecuted instantiation: vlog.c:ofpbuf_clear Unexecuted instantiation: netdev-linux.c:ofpbuf_clear Unexecuted instantiation: netlink-socket.c:ofpbuf_clear Unexecuted instantiation: rtnetlink.c:ofpbuf_clear Unexecuted instantiation: route-table.c:ofpbuf_clear Unexecuted instantiation: tc.c:ofpbuf_clear Unexecuted instantiation: classifier.c:ofpbuf_clear Unexecuted instantiation: dp-packet-gso.c:ofpbuf_clear Unexecuted instantiation: dpif-offload.c:ofpbuf_clear Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_clear Unexecuted instantiation: dpif.c:ofpbuf_clear Unexecuted instantiation: jsonrpc.c:ofpbuf_clear Unexecuted instantiation: meta-flow.c:ofpbuf_clear Unexecuted instantiation: netdev-dummy.c:ofpbuf_clear Unexecuted instantiation: netdev-vport.c:ofpbuf_clear Unexecuted instantiation: netlink.c:ofpbuf_clear Unexecuted instantiation: nx-match.c:ofpbuf_clear Unexecuted instantiation: odp-execute.c:ofpbuf_clear Line | Count | Source | 250 | 545k | { | 251 | 545k | b->data = b->base; | 252 | 545k | b->size = 0; | 253 | 545k | } |
ofp-actions.c:ofpbuf_clear Line | Count | Source | 250 | 172k | { | 251 | 172k | b->data = b->base; | 252 | 172k | b->size = 0; | 253 | 172k | } |
Unexecuted instantiation: ofp-bundle.c:ofpbuf_clear Unexecuted instantiation: ofp-connection.c:ofpbuf_clear Unexecuted instantiation: ofp-ct.c:ofpbuf_clear Unexecuted instantiation: ofp-ed-props.c:ofpbuf_clear Unexecuted instantiation: ofp-errors.c:ofpbuf_clear Unexecuted instantiation: ofp-flow.c:ofpbuf_clear Unexecuted instantiation: ofp-group.c:ofpbuf_clear Unexecuted instantiation: ofp-ipfix.c:ofpbuf_clear Line | Count | Source | 250 | 3.29k | { | 251 | 3.29k | b->data = b->base; | 252 | 3.29k | b->size = 0; | 253 | 3.29k | } |
ofp-monitor.c:ofpbuf_clear Line | Count | Source | 250 | 24.1k | { | 251 | 24.1k | b->data = b->base; | 252 | 24.1k | b->size = 0; | 253 | 24.1k | } |
ofp-packet.c:ofpbuf_clear Line | Count | Source | 250 | 171k | { | 251 | 171k | b->data = b->base; | 252 | 171k | b->size = 0; | 253 | 171k | } |
Unexecuted instantiation: ofp-parse.c:ofpbuf_clear Unexecuted instantiation: ox-stat.c:ofpbuf_clear Unexecuted instantiation: pcap-file.c:ofpbuf_clear Unexecuted instantiation: stream.c:ofpbuf_clear Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_clear Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_clear Unexecuted instantiation: stream-unix.c:ofpbuf_clear Unexecuted instantiation: dpif-netlink.c:ofpbuf_clear Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_clear Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_clear Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_clear Unexecuted instantiation: netlink-conntrack.c:ofpbuf_clear Unexecuted instantiation: netlink-notifier.c:ofpbuf_clear Unexecuted instantiation: stream-ssl.c:ofpbuf_clear Unexecuted instantiation: bundle.c:ofpbuf_clear Unexecuted instantiation: conntrack.c:ofpbuf_clear Unexecuted instantiation: ct-dpif.c:ofpbuf_clear Unexecuted instantiation: dpctl.c:ofpbuf_clear Unexecuted instantiation: dpif-netdev.c:ofpbuf_clear Unexecuted instantiation: ipf.c:ofpbuf_clear Unexecuted instantiation: learn.c:ofpbuf_clear Unexecuted instantiation: multipath.c:ofpbuf_clear Unexecuted instantiation: stream-tcp.c:ofpbuf_clear Unexecuted instantiation: conntrack-icmp.c:ofpbuf_clear Unexecuted instantiation: conntrack-tcp.c:ofpbuf_clear Unexecuted instantiation: conntrack-tp.c:ofpbuf_clear Unexecuted instantiation: conntrack-other.c:ofpbuf_clear Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_clear Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_clear Unexecuted instantiation: odp_target.c:ofpbuf_clear Unexecuted instantiation: miniflow_target.c:ofpbuf_clear Unexecuted instantiation: ofp_print_target.c:ofpbuf_clear Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_clear |
254 | | |
255 | | /* Removes 'size' bytes from the head end of 'b', which must contain at least |
256 | | * 'size' bytes of data. Returns the first byte of data removed. */ |
257 | | static inline void *ofpbuf_pull(struct ofpbuf *b, size_t size) |
258 | 8.04M | { |
259 | 8.04M | ovs_assert(b->size >= size); |
260 | 8.04M | void *data = b->data; |
261 | | |
262 | 8.04M | if (!size) { |
263 | 248k | return data; |
264 | 248k | } |
265 | | |
266 | 7.79M | b->data = (char*)b->data + size; |
267 | 7.79M | b->size = b->size - size; |
268 | 7.79M | return data; |
269 | 8.04M | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_pull Unexecuted instantiation: dp-packet.c:ofpbuf_pull Unexecuted instantiation: flow.c:ofpbuf_pull Unexecuted instantiation: match.c:ofpbuf_pull Unexecuted instantiation: netdev.c:ofpbuf_pull Line | Count | Source | 258 | 20.7k | { | 259 | 20.7k | ovs_assert(b->size >= size); | 260 | 20.7k | void *data = b->data; | 261 | | | 262 | 20.7k | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 20.7k | b->data = (char*)b->data + size; | 267 | 20.7k | b->size = b->size - size; | 268 | 20.7k | return data; | 269 | 20.7k | } |
Line | Count | Source | 258 | 2.74M | { | 259 | 2.74M | ovs_assert(b->size >= size); | 260 | 2.74M | void *data = b->data; | 261 | | | 262 | 2.74M | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 2.74M | b->data = (char*)b->data + size; | 267 | 2.74M | b->size = b->size - size; | 268 | 2.74M | return data; | 269 | 2.74M | } |
Line | Count | Source | 258 | 171k | { | 259 | 171k | ovs_assert(b->size >= size); | 260 | 171k | void *data = b->data; | 261 | | | 262 | 171k | if (!size) { | 263 | 12.5k | return data; | 264 | 12.5k | } | 265 | | | 266 | 159k | b->data = (char*)b->data + size; | 267 | 159k | b->size = b->size - size; | 268 | 159k | return data; | 269 | 171k | } |
Unexecuted instantiation: ofp-print.c:ofpbuf_pull Line | Count | Source | 258 | 168k | { | 259 | 168k | ovs_assert(b->size >= size); | 260 | 168k | void *data = b->data; | 261 | | | 262 | 168k | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 168k | b->data = (char*)b->data + size; | 267 | 168k | b->size = b->size - size; | 268 | 168k | return data; | 269 | 168k | } |
ofp-protocol.c:ofpbuf_pull Line | Count | Source | 258 | 491 | { | 259 | 491 | ovs_assert(b->size >= size); | 260 | 491 | void *data = b->data; | 261 | | | 262 | 491 | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 491 | b->data = (char*)b->data + size; | 267 | 491 | b->size = b->size - size; | 268 | 491 | return data; | 269 | 491 | } |
Line | Count | Source | 258 | 93.7k | { | 259 | 93.7k | ovs_assert(b->size >= size); | 260 | 93.7k | void *data = b->data; | 261 | | | 262 | 93.7k | if (!size) { | 263 | 11.2k | return data; | 264 | 11.2k | } | 265 | | | 266 | 82.4k | b->data = (char*)b->data + size; | 267 | 82.4k | b->size = b->size - size; | 268 | 82.4k | return data; | 269 | 93.7k | } |
Line | Count | Source | 258 | 9.44k | { | 259 | 9.44k | ovs_assert(b->size >= size); | 260 | 9.44k | void *data = b->data; | 261 | | | 262 | 9.44k | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 9.44k | b->data = (char*)b->data + size; | 267 | 9.44k | b->size = b->size - size; | 268 | 9.44k | return data; | 269 | 9.44k | } |
Line | Count | Source | 258 | 86.1k | { | 259 | 86.1k | ovs_assert(b->size >= size); | 260 | 86.1k | void *data = b->data; | 261 | | | 262 | 86.1k | if (!size) { | 263 | 1.62k | return data; | 264 | 1.62k | } | 265 | | | 266 | 84.5k | b->data = (char*)b->data + size; | 267 | 84.5k | b->size = b->size - size; | 268 | 84.5k | return data; | 269 | 86.1k | } |
Line | Count | Source | 258 | 42.0k | { | 259 | 42.0k | ovs_assert(b->size >= size); | 260 | 42.0k | void *data = b->data; | 261 | | | 262 | 42.0k | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 42.0k | b->data = (char*)b->data + size; | 267 | 42.0k | b->size = b->size - size; | 268 | 42.0k | return data; | 269 | 42.0k | } |
Unexecuted instantiation: ofpbuf.c:ofpbuf_pull Unexecuted instantiation: ovs-router.c:ofpbuf_pull Unexecuted instantiation: packets.c:ofpbuf_pull Unexecuted instantiation: smap.c:ofpbuf_pull Unexecuted instantiation: socket-util.c:ofpbuf_pull Unexecuted instantiation: tnl-ports.c:ofpbuf_pull Unexecuted instantiation: tun-metadata.c:ofpbuf_pull Unexecuted instantiation: vlog.c:ofpbuf_pull Unexecuted instantiation: netdev-linux.c:ofpbuf_pull Unexecuted instantiation: netlink-socket.c:ofpbuf_pull Unexecuted instantiation: rtnetlink.c:ofpbuf_pull Unexecuted instantiation: route-table.c:ofpbuf_pull Unexecuted instantiation: tc.c:ofpbuf_pull Unexecuted instantiation: classifier.c:ofpbuf_pull Unexecuted instantiation: dp-packet-gso.c:ofpbuf_pull Unexecuted instantiation: dpif-offload.c:ofpbuf_pull Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_pull Unexecuted instantiation: dpif.c:ofpbuf_pull Unexecuted instantiation: jsonrpc.c:ofpbuf_pull Unexecuted instantiation: meta-flow.c:ofpbuf_pull Unexecuted instantiation: netdev-dummy.c:ofpbuf_pull Unexecuted instantiation: netdev-vport.c:ofpbuf_pull Unexecuted instantiation: netlink.c:ofpbuf_pull Line | Count | Source | 258 | 822k | { | 259 | 822k | ovs_assert(b->size >= size); | 260 | 822k | void *data = b->data; | 261 | | | 262 | 822k | if (!size) { | 263 | 155k | return data; | 264 | 155k | } | 265 | | | 266 | 666k | b->data = (char*)b->data + size; | 267 | 666k | b->size = b->size - size; | 268 | 666k | return data; | 269 | 822k | } |
Unexecuted instantiation: odp-execute.c:ofpbuf_pull Unexecuted instantiation: odp-util.c:ofpbuf_pull ofp-actions.c:ofpbuf_pull Line | Count | Source | 258 | 632k | { | 259 | 632k | ovs_assert(b->size >= size); | 260 | 632k | void *data = b->data; | 261 | | | 262 | 632k | if (!size) { | 263 | 47.1k | return data; | 264 | 47.1k | } | 265 | | | 266 | 585k | b->data = (char*)b->data + size; | 267 | 585k | b->size = b->size - size; | 268 | 585k | return data; | 269 | 632k | } |
Line | Count | Source | 258 | 5.81k | { | 259 | 5.81k | ovs_assert(b->size >= size); | 260 | 5.81k | void *data = b->data; | 261 | | | 262 | 5.81k | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 5.81k | b->data = (char*)b->data + size; | 267 | 5.81k | b->size = b->size - size; | 268 | 5.81k | return data; | 269 | 5.81k | } |
Unexecuted instantiation: ofp-connection.c:ofpbuf_pull Line | Count | Source | 258 | 13.0k | { | 259 | 13.0k | ovs_assert(b->size >= size); | 260 | 13.0k | void *data = b->data; | 261 | | | 262 | 13.0k | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 13.0k | b->data = (char*)b->data + size; | 267 | 13.0k | b->size = b->size - size; | 268 | 13.0k | return data; | 269 | 13.0k | } |
Unexecuted instantiation: ofp-ed-props.c:ofpbuf_pull Line | Count | Source | 258 | 797k | { | 259 | 797k | ovs_assert(b->size >= size); | 260 | 797k | void *data = b->data; | 261 | | | 262 | 797k | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 797k | b->data = (char*)b->data + size; | 267 | 797k | b->size = b->size - size; | 268 | 797k | return data; | 269 | 797k | } |
Line | Count | Source | 258 | 100k | { | 259 | 100k | ovs_assert(b->size >= size); | 260 | 100k | void *data = b->data; | 261 | | | 262 | 100k | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 100k | b->data = (char*)b->data + size; | 267 | 100k | b->size = b->size - size; | 268 | 100k | return data; | 269 | 100k | } |
Line | Count | Source | 258 | 102k | { | 259 | 102k | ovs_assert(b->size >= size); | 260 | 102k | void *data = b->data; | 261 | | | 262 | 102k | if (!size) { | 263 | 15.9k | return data; | 264 | 15.9k | } | 265 | | | 266 | 87.0k | b->data = (char*)b->data + size; | 267 | 87.0k | b->size = b->size - size; | 268 | 87.0k | return data; | 269 | 102k | } |
Line | Count | Source | 258 | 8.41k | { | 259 | 8.41k | ovs_assert(b->size >= size); | 260 | 8.41k | void *data = b->data; | 261 | | | 262 | 8.41k | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 8.41k | b->data = (char*)b->data + size; | 267 | 8.41k | b->size = b->size - size; | 268 | 8.41k | return data; | 269 | 8.41k | } |
Line | Count | Source | 258 | 17.1k | { | 259 | 17.1k | ovs_assert(b->size >= size); | 260 | 17.1k | void *data = b->data; | 261 | | | 262 | 17.1k | if (!size) { | 263 | 3.03k | return data; | 264 | 3.03k | } | 265 | | | 266 | 14.0k | b->data = (char*)b->data + size; | 267 | 14.0k | b->size = b->size - size; | 268 | 14.0k | return data; | 269 | 17.1k | } |
ofp-monitor.c:ofpbuf_pull Line | Count | Source | 258 | 28.8k | { | 259 | 28.8k | ovs_assert(b->size >= size); | 260 | 28.8k | void *data = b->data; | 261 | | | 262 | 28.8k | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 28.8k | b->data = (char*)b->data + size; | 267 | 28.8k | b->size = b->size - size; | 268 | 28.8k | return data; | 269 | 28.8k | } |
Line | Count | Source | 258 | 294k | { | 259 | 294k | ovs_assert(b->size >= size); | 260 | 294k | void *data = b->data; | 261 | | | 262 | 294k | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 294k | b->data = (char*)b->data + size; | 267 | 294k | b->size = b->size - size; | 268 | 294k | return data; | 269 | 294k | } |
Unexecuted instantiation: ofp-parse.c:ofpbuf_pull Line | Count | Source | 258 | 14.6k | { | 259 | 14.6k | ovs_assert(b->size >= size); | 260 | 14.6k | void *data = b->data; | 261 | | | 262 | 14.6k | if (!size) { | 263 | 1.56k | return data; | 264 | 1.56k | } | 265 | | | 266 | 13.1k | b->data = (char*)b->data + size; | 267 | 13.1k | b->size = b->size - size; | 268 | 13.1k | return data; | 269 | 14.6k | } |
Unexecuted instantiation: pcap-file.c:ofpbuf_pull Unexecuted instantiation: stream.c:ofpbuf_pull Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_pull Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_pull Unexecuted instantiation: stream-unix.c:ofpbuf_pull Unexecuted instantiation: dpif-netlink.c:ofpbuf_pull Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_pull Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_pull Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_pull Unexecuted instantiation: netlink-conntrack.c:ofpbuf_pull Unexecuted instantiation: netlink-notifier.c:ofpbuf_pull Unexecuted instantiation: stream-ssl.c:ofpbuf_pull Unexecuted instantiation: bundle.c:ofpbuf_pull Unexecuted instantiation: conntrack.c:ofpbuf_pull Unexecuted instantiation: ct-dpif.c:ofpbuf_pull Unexecuted instantiation: dpctl.c:ofpbuf_pull Unexecuted instantiation: dpif-netdev.c:ofpbuf_pull Unexecuted instantiation: ipf.c:ofpbuf_pull Unexecuted instantiation: learn.c:ofpbuf_pull Unexecuted instantiation: multipath.c:ofpbuf_pull Unexecuted instantiation: stream-tcp.c:ofpbuf_pull Unexecuted instantiation: conntrack-icmp.c:ofpbuf_pull Unexecuted instantiation: conntrack-tcp.c:ofpbuf_pull Unexecuted instantiation: conntrack-tp.c:ofpbuf_pull Unexecuted instantiation: conntrack-other.c:ofpbuf_pull Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_pull Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_pull Unexecuted instantiation: odp_target.c:ofpbuf_pull Unexecuted instantiation: miniflow_target.c:ofpbuf_pull ofp_print_target.c:ofpbuf_pull Line | Count | Source | 258 | 1.86M | { | 259 | 1.86M | ovs_assert(b->size >= size); | 260 | 1.86M | void *data = b->data; | 261 | | | 262 | 1.86M | if (!size) { | 263 | 0 | return data; | 264 | 0 | } | 265 | | | 266 | 1.86M | b->data = (char*)b->data + size; | 267 | 1.86M | b->size = b->size - size; | 268 | 1.86M | return data; | 269 | 1.86M | } |
Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_pull |
270 | | |
271 | | /* If 'b' has at least 'size' bytes of data, removes that many bytes from the |
272 | | * head end of 'b' and returns the first byte removed. Otherwise, returns a |
273 | | * null pointer without modifying 'b'. */ |
274 | | static inline void *ofpbuf_try_pull(struct ofpbuf *b, size_t size) |
275 | 1.26M | { |
276 | 1.26M | return b->size >= size ? ofpbuf_pull(b, size) : NULL; |
277 | 1.26M | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_try_pull Unexecuted instantiation: dp-packet.c:ofpbuf_try_pull Unexecuted instantiation: flow.c:ofpbuf_try_pull Unexecuted instantiation: match.c:ofpbuf_try_pull Unexecuted instantiation: netdev.c:ofpbuf_try_pull Unexecuted instantiation: ofp-match.c:ofpbuf_try_pull Unexecuted instantiation: ofp-msgs.c:ofpbuf_try_pull ofp-port.c:ofpbuf_try_pull Line | Count | Source | 275 | 162k | { | 276 | 162k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 162k | } |
Unexecuted instantiation: ofp-print.c:ofpbuf_try_pull Unexecuted instantiation: ofp-prop.c:ofpbuf_try_pull Unexecuted instantiation: ofp-protocol.c:ofpbuf_try_pull ofp-queue.c:ofpbuf_try_pull Line | Count | Source | 275 | 65.3k | { | 276 | 65.3k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 65.3k | } |
Unexecuted instantiation: ofp-switch.c:ofpbuf_try_pull ofp-table.c:ofpbuf_try_pull Line | Count | Source | 275 | 41.2k | { | 276 | 41.2k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 41.2k | } |
ofp-util.c:ofpbuf_try_pull Line | Count | Source | 275 | 25.7k | { | 276 | 25.7k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 25.7k | } |
Unexecuted instantiation: ofpbuf.c:ofpbuf_try_pull Unexecuted instantiation: ovs-router.c:ofpbuf_try_pull Unexecuted instantiation: packets.c:ofpbuf_try_pull Unexecuted instantiation: smap.c:ofpbuf_try_pull Unexecuted instantiation: socket-util.c:ofpbuf_try_pull Unexecuted instantiation: tnl-ports.c:ofpbuf_try_pull Unexecuted instantiation: tun-metadata.c:ofpbuf_try_pull Unexecuted instantiation: vlog.c:ofpbuf_try_pull Unexecuted instantiation: netdev-linux.c:ofpbuf_try_pull Unexecuted instantiation: netlink-socket.c:ofpbuf_try_pull Unexecuted instantiation: rtnetlink.c:ofpbuf_try_pull Unexecuted instantiation: route-table.c:ofpbuf_try_pull Unexecuted instantiation: tc.c:ofpbuf_try_pull Unexecuted instantiation: classifier.c:ofpbuf_try_pull Unexecuted instantiation: dp-packet-gso.c:ofpbuf_try_pull Unexecuted instantiation: dpif-offload.c:ofpbuf_try_pull Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_try_pull Unexecuted instantiation: dpif.c:ofpbuf_try_pull Unexecuted instantiation: jsonrpc.c:ofpbuf_try_pull Unexecuted instantiation: meta-flow.c:ofpbuf_try_pull Unexecuted instantiation: netdev-dummy.c:ofpbuf_try_pull Unexecuted instantiation: netdev-vport.c:ofpbuf_try_pull Unexecuted instantiation: netlink.c:ofpbuf_try_pull nx-match.c:ofpbuf_try_pull Line | Count | Source | 275 | 476k | { | 276 | 476k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 476k | } |
Unexecuted instantiation: odp-execute.c:ofpbuf_try_pull Unexecuted instantiation: odp-util.c:ofpbuf_try_pull ofp-actions.c:ofpbuf_try_pull Line | Count | Source | 275 | 205k | { | 276 | 205k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 205k | } |
Unexecuted instantiation: ofp-bundle.c:ofpbuf_try_pull Unexecuted instantiation: ofp-connection.c:ofpbuf_try_pull Unexecuted instantiation: ofp-ct.c:ofpbuf_try_pull Unexecuted instantiation: ofp-ed-props.c:ofpbuf_try_pull ofp-errors.c:ofpbuf_try_pull Line | Count | Source | 275 | 147k | { | 276 | 147k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 147k | } |
ofp-flow.c:ofpbuf_try_pull Line | Count | Source | 275 | 21.0k | { | 276 | 21.0k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 21.0k | } |
ofp-group.c:ofpbuf_try_pull Line | Count | Source | 275 | 39.7k | { | 276 | 39.7k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 39.7k | } |
ofp-ipfix.c:ofpbuf_try_pull Line | Count | Source | 275 | 8.41k | { | 276 | 8.41k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 8.41k | } |
ofp-meter.c:ofpbuf_try_pull Line | Count | Source | 275 | 10.8k | { | 276 | 10.8k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 10.8k | } |
ofp-monitor.c:ofpbuf_try_pull Line | Count | Source | 275 | 8.68k | { | 276 | 8.68k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 8.68k | } |
ofp-packet.c:ofpbuf_try_pull Line | Count | Source | 275 | 37.6k | { | 276 | 37.6k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 37.6k | } |
Unexecuted instantiation: ofp-parse.c:ofpbuf_try_pull ox-stat.c:ofpbuf_try_pull Line | Count | Source | 275 | 13.2k | { | 276 | 13.2k | return b->size >= size ? ofpbuf_pull(b, size) : NULL; | 277 | 13.2k | } |
Unexecuted instantiation: pcap-file.c:ofpbuf_try_pull Unexecuted instantiation: stream.c:ofpbuf_try_pull Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_try_pull Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_try_pull Unexecuted instantiation: stream-unix.c:ofpbuf_try_pull Unexecuted instantiation: dpif-netlink.c:ofpbuf_try_pull Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_try_pull Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_try_pull Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_try_pull Unexecuted instantiation: netlink-conntrack.c:ofpbuf_try_pull Unexecuted instantiation: netlink-notifier.c:ofpbuf_try_pull Unexecuted instantiation: stream-ssl.c:ofpbuf_try_pull Unexecuted instantiation: bundle.c:ofpbuf_try_pull Unexecuted instantiation: conntrack.c:ofpbuf_try_pull Unexecuted instantiation: ct-dpif.c:ofpbuf_try_pull Unexecuted instantiation: dpctl.c:ofpbuf_try_pull Unexecuted instantiation: dpif-netdev.c:ofpbuf_try_pull Unexecuted instantiation: ipf.c:ofpbuf_try_pull Unexecuted instantiation: learn.c:ofpbuf_try_pull Unexecuted instantiation: multipath.c:ofpbuf_try_pull Unexecuted instantiation: stream-tcp.c:ofpbuf_try_pull Unexecuted instantiation: conntrack-icmp.c:ofpbuf_try_pull Unexecuted instantiation: conntrack-tcp.c:ofpbuf_try_pull Unexecuted instantiation: conntrack-tp.c:ofpbuf_try_pull Unexecuted instantiation: conntrack-other.c:ofpbuf_try_pull Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_try_pull Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_try_pull Unexecuted instantiation: odp_target.c:ofpbuf_try_pull Unexecuted instantiation: miniflow_target.c:ofpbuf_try_pull Unexecuted instantiation: ofp_print_target.c:ofpbuf_try_pull Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_try_pull |
278 | | |
279 | | static inline struct ofpbuf *ofpbuf_from_list(const struct ovs_list *list) |
280 | 0 | { |
281 | 0 | return CONTAINER_OF(list, struct ofpbuf, list_node); |
282 | 0 | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_from_list Unexecuted instantiation: dp-packet.c:ofpbuf_from_list Unexecuted instantiation: flow.c:ofpbuf_from_list Unexecuted instantiation: match.c:ofpbuf_from_list Unexecuted instantiation: netdev.c:ofpbuf_from_list Unexecuted instantiation: ofp-match.c:ofpbuf_from_list Unexecuted instantiation: ofp-msgs.c:ofpbuf_from_list Unexecuted instantiation: ofp-port.c:ofpbuf_from_list Unexecuted instantiation: ofp-print.c:ofpbuf_from_list Unexecuted instantiation: ofp-prop.c:ofpbuf_from_list Unexecuted instantiation: ofp-protocol.c:ofpbuf_from_list Unexecuted instantiation: ofp-queue.c:ofpbuf_from_list Unexecuted instantiation: ofp-switch.c:ofpbuf_from_list Unexecuted instantiation: ofp-table.c:ofpbuf_from_list Unexecuted instantiation: ofp-util.c:ofpbuf_from_list Unexecuted instantiation: ofpbuf.c:ofpbuf_from_list Unexecuted instantiation: ovs-router.c:ofpbuf_from_list Unexecuted instantiation: packets.c:ofpbuf_from_list Unexecuted instantiation: smap.c:ofpbuf_from_list Unexecuted instantiation: socket-util.c:ofpbuf_from_list Unexecuted instantiation: tnl-ports.c:ofpbuf_from_list Unexecuted instantiation: tun-metadata.c:ofpbuf_from_list Unexecuted instantiation: vlog.c:ofpbuf_from_list Unexecuted instantiation: netdev-linux.c:ofpbuf_from_list Unexecuted instantiation: netlink-socket.c:ofpbuf_from_list Unexecuted instantiation: rtnetlink.c:ofpbuf_from_list Unexecuted instantiation: route-table.c:ofpbuf_from_list Unexecuted instantiation: tc.c:ofpbuf_from_list Unexecuted instantiation: classifier.c:ofpbuf_from_list Unexecuted instantiation: dp-packet-gso.c:ofpbuf_from_list Unexecuted instantiation: dpif-offload.c:ofpbuf_from_list Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_from_list Unexecuted instantiation: dpif.c:ofpbuf_from_list Unexecuted instantiation: jsonrpc.c:ofpbuf_from_list Unexecuted instantiation: meta-flow.c:ofpbuf_from_list Unexecuted instantiation: netdev-dummy.c:ofpbuf_from_list Unexecuted instantiation: netdev-vport.c:ofpbuf_from_list Unexecuted instantiation: netlink.c:ofpbuf_from_list Unexecuted instantiation: nx-match.c:ofpbuf_from_list Unexecuted instantiation: odp-execute.c:ofpbuf_from_list Unexecuted instantiation: odp-util.c:ofpbuf_from_list Unexecuted instantiation: ofp-actions.c:ofpbuf_from_list Unexecuted instantiation: ofp-bundle.c:ofpbuf_from_list Unexecuted instantiation: ofp-connection.c:ofpbuf_from_list Unexecuted instantiation: ofp-ct.c:ofpbuf_from_list Unexecuted instantiation: ofp-ed-props.c:ofpbuf_from_list Unexecuted instantiation: ofp-errors.c:ofpbuf_from_list Unexecuted instantiation: ofp-flow.c:ofpbuf_from_list Unexecuted instantiation: ofp-group.c:ofpbuf_from_list Unexecuted instantiation: ofp-ipfix.c:ofpbuf_from_list Unexecuted instantiation: ofp-meter.c:ofpbuf_from_list Unexecuted instantiation: ofp-monitor.c:ofpbuf_from_list Unexecuted instantiation: ofp-packet.c:ofpbuf_from_list Unexecuted instantiation: ofp-parse.c:ofpbuf_from_list Unexecuted instantiation: ox-stat.c:ofpbuf_from_list Unexecuted instantiation: pcap-file.c:ofpbuf_from_list Unexecuted instantiation: stream.c:ofpbuf_from_list Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_from_list Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_from_list Unexecuted instantiation: stream-unix.c:ofpbuf_from_list Unexecuted instantiation: dpif-netlink.c:ofpbuf_from_list Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_from_list Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_from_list Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_from_list Unexecuted instantiation: netlink-conntrack.c:ofpbuf_from_list Unexecuted instantiation: netlink-notifier.c:ofpbuf_from_list Unexecuted instantiation: stream-ssl.c:ofpbuf_from_list Unexecuted instantiation: bundle.c:ofpbuf_from_list Unexecuted instantiation: conntrack.c:ofpbuf_from_list Unexecuted instantiation: ct-dpif.c:ofpbuf_from_list Unexecuted instantiation: dpctl.c:ofpbuf_from_list Unexecuted instantiation: dpif-netdev.c:ofpbuf_from_list Unexecuted instantiation: ipf.c:ofpbuf_from_list Unexecuted instantiation: learn.c:ofpbuf_from_list Unexecuted instantiation: multipath.c:ofpbuf_from_list Unexecuted instantiation: stream-tcp.c:ofpbuf_from_list Unexecuted instantiation: conntrack-icmp.c:ofpbuf_from_list Unexecuted instantiation: conntrack-tcp.c:ofpbuf_from_list Unexecuted instantiation: conntrack-tp.c:ofpbuf_from_list Unexecuted instantiation: conntrack-other.c:ofpbuf_from_list Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_from_list Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_from_list Unexecuted instantiation: odp_target.c:ofpbuf_from_list Unexecuted instantiation: miniflow_target.c:ofpbuf_from_list Unexecuted instantiation: ofp_print_target.c:ofpbuf_from_list Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_from_list |
283 | | |
284 | | static inline bool ofpbuf_equal(const struct ofpbuf *a, const struct ofpbuf *b) |
285 | 0 | { |
286 | 0 | return a->size == b->size && |
287 | 0 | (a->size == 0 || memcmp(a->data, b->data, a->size) == 0); |
288 | 0 | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_equal Unexecuted instantiation: dp-packet.c:ofpbuf_equal Unexecuted instantiation: flow.c:ofpbuf_equal Unexecuted instantiation: match.c:ofpbuf_equal Unexecuted instantiation: netdev.c:ofpbuf_equal Unexecuted instantiation: ofp-match.c:ofpbuf_equal Unexecuted instantiation: ofp-msgs.c:ofpbuf_equal Unexecuted instantiation: ofp-port.c:ofpbuf_equal Unexecuted instantiation: ofp-print.c:ofpbuf_equal Unexecuted instantiation: ofp-prop.c:ofpbuf_equal Unexecuted instantiation: ofp-protocol.c:ofpbuf_equal Unexecuted instantiation: ofp-queue.c:ofpbuf_equal Unexecuted instantiation: ofp-switch.c:ofpbuf_equal Unexecuted instantiation: ofp-table.c:ofpbuf_equal Unexecuted instantiation: ofp-util.c:ofpbuf_equal Unexecuted instantiation: ofpbuf.c:ofpbuf_equal Unexecuted instantiation: ovs-router.c:ofpbuf_equal Unexecuted instantiation: packets.c:ofpbuf_equal Unexecuted instantiation: smap.c:ofpbuf_equal Unexecuted instantiation: socket-util.c:ofpbuf_equal Unexecuted instantiation: tnl-ports.c:ofpbuf_equal Unexecuted instantiation: tun-metadata.c:ofpbuf_equal Unexecuted instantiation: vlog.c:ofpbuf_equal Unexecuted instantiation: netdev-linux.c:ofpbuf_equal Unexecuted instantiation: netlink-socket.c:ofpbuf_equal Unexecuted instantiation: rtnetlink.c:ofpbuf_equal Unexecuted instantiation: route-table.c:ofpbuf_equal Unexecuted instantiation: tc.c:ofpbuf_equal Unexecuted instantiation: classifier.c:ofpbuf_equal Unexecuted instantiation: dp-packet-gso.c:ofpbuf_equal Unexecuted instantiation: dpif-offload.c:ofpbuf_equal Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_equal Unexecuted instantiation: dpif.c:ofpbuf_equal Unexecuted instantiation: jsonrpc.c:ofpbuf_equal Unexecuted instantiation: meta-flow.c:ofpbuf_equal Unexecuted instantiation: netdev-dummy.c:ofpbuf_equal Unexecuted instantiation: netdev-vport.c:ofpbuf_equal Unexecuted instantiation: netlink.c:ofpbuf_equal Unexecuted instantiation: nx-match.c:ofpbuf_equal Unexecuted instantiation: odp-execute.c:ofpbuf_equal Unexecuted instantiation: odp-util.c:ofpbuf_equal Unexecuted instantiation: ofp-actions.c:ofpbuf_equal Unexecuted instantiation: ofp-bundle.c:ofpbuf_equal Unexecuted instantiation: ofp-connection.c:ofpbuf_equal Unexecuted instantiation: ofp-ct.c:ofpbuf_equal Unexecuted instantiation: ofp-ed-props.c:ofpbuf_equal Unexecuted instantiation: ofp-errors.c:ofpbuf_equal Unexecuted instantiation: ofp-flow.c:ofpbuf_equal Unexecuted instantiation: ofp-group.c:ofpbuf_equal Unexecuted instantiation: ofp-ipfix.c:ofpbuf_equal Unexecuted instantiation: ofp-meter.c:ofpbuf_equal Unexecuted instantiation: ofp-monitor.c:ofpbuf_equal Unexecuted instantiation: ofp-packet.c:ofpbuf_equal Unexecuted instantiation: ofp-parse.c:ofpbuf_equal Unexecuted instantiation: ox-stat.c:ofpbuf_equal Unexecuted instantiation: pcap-file.c:ofpbuf_equal Unexecuted instantiation: stream.c:ofpbuf_equal Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_equal Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_equal Unexecuted instantiation: stream-unix.c:ofpbuf_equal Unexecuted instantiation: dpif-netlink.c:ofpbuf_equal Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_equal Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_equal Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_equal Unexecuted instantiation: netlink-conntrack.c:ofpbuf_equal Unexecuted instantiation: netlink-notifier.c:ofpbuf_equal Unexecuted instantiation: stream-ssl.c:ofpbuf_equal Unexecuted instantiation: bundle.c:ofpbuf_equal Unexecuted instantiation: conntrack.c:ofpbuf_equal Unexecuted instantiation: ct-dpif.c:ofpbuf_equal Unexecuted instantiation: dpctl.c:ofpbuf_equal Unexecuted instantiation: dpif-netdev.c:ofpbuf_equal Unexecuted instantiation: ipf.c:ofpbuf_equal Unexecuted instantiation: learn.c:ofpbuf_equal Unexecuted instantiation: multipath.c:ofpbuf_equal Unexecuted instantiation: stream-tcp.c:ofpbuf_equal Unexecuted instantiation: conntrack-icmp.c:ofpbuf_equal Unexecuted instantiation: conntrack-tcp.c:ofpbuf_equal Unexecuted instantiation: conntrack-tp.c:ofpbuf_equal Unexecuted instantiation: conntrack-other.c:ofpbuf_equal Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_equal Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_equal Unexecuted instantiation: odp_target.c:ofpbuf_equal Unexecuted instantiation: miniflow_target.c:ofpbuf_equal Unexecuted instantiation: ofp_print_target.c:ofpbuf_equal Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_equal |
289 | | |
290 | | static inline bool ofpbuf_oversized(const struct ofpbuf *ofpacts) |
291 | 74.5k | { |
292 | 74.5k | return (char *)ofpbuf_tail(ofpacts) - (char *)ofpacts->header > UINT16_MAX; |
293 | 74.5k | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_oversized Unexecuted instantiation: dp-packet.c:ofpbuf_oversized Unexecuted instantiation: flow.c:ofpbuf_oversized Unexecuted instantiation: match.c:ofpbuf_oversized Unexecuted instantiation: netdev.c:ofpbuf_oversized Unexecuted instantiation: ofp-match.c:ofpbuf_oversized Unexecuted instantiation: ofp-msgs.c:ofpbuf_oversized Unexecuted instantiation: ofp-port.c:ofpbuf_oversized Unexecuted instantiation: ofp-print.c:ofpbuf_oversized Unexecuted instantiation: ofp-prop.c:ofpbuf_oversized Unexecuted instantiation: ofp-protocol.c:ofpbuf_oversized Unexecuted instantiation: ofp-queue.c:ofpbuf_oversized Unexecuted instantiation: ofp-switch.c:ofpbuf_oversized Unexecuted instantiation: ofp-table.c:ofpbuf_oversized Unexecuted instantiation: ofp-util.c:ofpbuf_oversized Unexecuted instantiation: ofpbuf.c:ofpbuf_oversized Unexecuted instantiation: ovs-router.c:ofpbuf_oversized Unexecuted instantiation: packets.c:ofpbuf_oversized Unexecuted instantiation: smap.c:ofpbuf_oversized Unexecuted instantiation: socket-util.c:ofpbuf_oversized Unexecuted instantiation: tnl-ports.c:ofpbuf_oversized Unexecuted instantiation: tun-metadata.c:ofpbuf_oversized Unexecuted instantiation: vlog.c:ofpbuf_oversized Unexecuted instantiation: netdev-linux.c:ofpbuf_oversized Unexecuted instantiation: netlink-socket.c:ofpbuf_oversized Unexecuted instantiation: rtnetlink.c:ofpbuf_oversized Unexecuted instantiation: route-table.c:ofpbuf_oversized Unexecuted instantiation: tc.c:ofpbuf_oversized Unexecuted instantiation: classifier.c:ofpbuf_oversized Unexecuted instantiation: dp-packet-gso.c:ofpbuf_oversized Unexecuted instantiation: dpif-offload.c:ofpbuf_oversized Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_oversized Unexecuted instantiation: dpif.c:ofpbuf_oversized Unexecuted instantiation: jsonrpc.c:ofpbuf_oversized Unexecuted instantiation: meta-flow.c:ofpbuf_oversized Unexecuted instantiation: netdev-dummy.c:ofpbuf_oversized Unexecuted instantiation: netdev-vport.c:ofpbuf_oversized Unexecuted instantiation: netlink.c:ofpbuf_oversized Unexecuted instantiation: nx-match.c:ofpbuf_oversized Unexecuted instantiation: odp-execute.c:ofpbuf_oversized Unexecuted instantiation: odp-util.c:ofpbuf_oversized ofp-actions.c:ofpbuf_oversized Line | Count | Source | 291 | 40.1k | { | 292 | | return (char *)ofpbuf_tail(ofpacts) - (char *)ofpacts->header > UINT16_MAX; | 293 | 40.1k | } |
Unexecuted instantiation: ofp-bundle.c:ofpbuf_oversized Unexecuted instantiation: ofp-connection.c:ofpbuf_oversized Unexecuted instantiation: ofp-ct.c:ofpbuf_oversized Unexecuted instantiation: ofp-ed-props.c:ofpbuf_oversized Unexecuted instantiation: ofp-errors.c:ofpbuf_oversized Unexecuted instantiation: ofp-flow.c:ofpbuf_oversized Unexecuted instantiation: ofp-group.c:ofpbuf_oversized Unexecuted instantiation: ofp-ipfix.c:ofpbuf_oversized Unexecuted instantiation: ofp-meter.c:ofpbuf_oversized Unexecuted instantiation: ofp-monitor.c:ofpbuf_oversized Unexecuted instantiation: ofp-packet.c:ofpbuf_oversized Unexecuted instantiation: ofp-parse.c:ofpbuf_oversized Unexecuted instantiation: ox-stat.c:ofpbuf_oversized Unexecuted instantiation: pcap-file.c:ofpbuf_oversized Unexecuted instantiation: stream.c:ofpbuf_oversized Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_oversized Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_oversized Unexecuted instantiation: stream-unix.c:ofpbuf_oversized Unexecuted instantiation: dpif-netlink.c:ofpbuf_oversized Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_oversized Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_oversized Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_oversized Unexecuted instantiation: netlink-conntrack.c:ofpbuf_oversized Unexecuted instantiation: netlink-notifier.c:ofpbuf_oversized Unexecuted instantiation: stream-ssl.c:ofpbuf_oversized bundle.c:ofpbuf_oversized Line | Count | Source | 291 | 3.04k | { | 292 | | return (char *)ofpbuf_tail(ofpacts) - (char *)ofpacts->header > UINT16_MAX; | 293 | 3.04k | } |
Unexecuted instantiation: conntrack.c:ofpbuf_oversized Unexecuted instantiation: ct-dpif.c:ofpbuf_oversized Unexecuted instantiation: dpctl.c:ofpbuf_oversized Unexecuted instantiation: dpif-netdev.c:ofpbuf_oversized Unexecuted instantiation: ipf.c:ofpbuf_oversized Line | Count | Source | 291 | 31.3k | { | 292 | | return (char *)ofpbuf_tail(ofpacts) - (char *)ofpacts->header > UINT16_MAX; | 293 | 31.3k | } |
Unexecuted instantiation: multipath.c:ofpbuf_oversized Unexecuted instantiation: stream-tcp.c:ofpbuf_oversized Unexecuted instantiation: conntrack-icmp.c:ofpbuf_oversized Unexecuted instantiation: conntrack-tcp.c:ofpbuf_oversized Unexecuted instantiation: conntrack-tp.c:ofpbuf_oversized Unexecuted instantiation: conntrack-other.c:ofpbuf_oversized Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_oversized Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_oversized Unexecuted instantiation: odp_target.c:ofpbuf_oversized Unexecuted instantiation: miniflow_target.c:ofpbuf_oversized Unexecuted instantiation: ofp_print_target.c:ofpbuf_oversized Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_oversized |
294 | | |
295 | | /* Truncates the buffer to 'new_size' bytes from the tail end of 'b'. */ |
296 | | static inline void ofpbuf_truncate(struct ofpbuf *b, size_t new_size) |
297 | 9.94k | { |
298 | 9.94k | ovs_assert(b->size >= new_size); |
299 | 9.94k | b->size = new_size; |
300 | 9.94k | } Unexecuted instantiation: flow_extract_target.c:ofpbuf_truncate Unexecuted instantiation: dp-packet.c:ofpbuf_truncate Unexecuted instantiation: flow.c:ofpbuf_truncate Unexecuted instantiation: match.c:ofpbuf_truncate Unexecuted instantiation: netdev.c:ofpbuf_truncate Unexecuted instantiation: ofp-match.c:ofpbuf_truncate Unexecuted instantiation: ofp-msgs.c:ofpbuf_truncate Unexecuted instantiation: ofp-port.c:ofpbuf_truncate Unexecuted instantiation: ofp-print.c:ofpbuf_truncate Unexecuted instantiation: ofp-prop.c:ofpbuf_truncate Unexecuted instantiation: ofp-protocol.c:ofpbuf_truncate Unexecuted instantiation: ofp-queue.c:ofpbuf_truncate Unexecuted instantiation: ofp-switch.c:ofpbuf_truncate Unexecuted instantiation: ofp-table.c:ofpbuf_truncate Unexecuted instantiation: ofp-util.c:ofpbuf_truncate Unexecuted instantiation: ofpbuf.c:ofpbuf_truncate Unexecuted instantiation: ovs-router.c:ofpbuf_truncate Unexecuted instantiation: packets.c:ofpbuf_truncate Unexecuted instantiation: smap.c:ofpbuf_truncate Unexecuted instantiation: socket-util.c:ofpbuf_truncate Unexecuted instantiation: tnl-ports.c:ofpbuf_truncate Unexecuted instantiation: tun-metadata.c:ofpbuf_truncate Unexecuted instantiation: vlog.c:ofpbuf_truncate Unexecuted instantiation: netdev-linux.c:ofpbuf_truncate Unexecuted instantiation: netlink-socket.c:ofpbuf_truncate Unexecuted instantiation: rtnetlink.c:ofpbuf_truncate Unexecuted instantiation: route-table.c:ofpbuf_truncate Unexecuted instantiation: tc.c:ofpbuf_truncate Unexecuted instantiation: classifier.c:ofpbuf_truncate Unexecuted instantiation: dp-packet-gso.c:ofpbuf_truncate Unexecuted instantiation: dpif-offload.c:ofpbuf_truncate Unexecuted instantiation: dpif-offload-dummy.c:ofpbuf_truncate Unexecuted instantiation: dpif.c:ofpbuf_truncate Unexecuted instantiation: jsonrpc.c:ofpbuf_truncate Unexecuted instantiation: meta-flow.c:ofpbuf_truncate Unexecuted instantiation: netdev-dummy.c:ofpbuf_truncate Unexecuted instantiation: netdev-vport.c:ofpbuf_truncate Unexecuted instantiation: netlink.c:ofpbuf_truncate Unexecuted instantiation: nx-match.c:ofpbuf_truncate Unexecuted instantiation: odp-execute.c:ofpbuf_truncate Unexecuted instantiation: odp-util.c:ofpbuf_truncate ofp-actions.c:ofpbuf_truncate Line | Count | Source | 297 | 9.94k | { | 298 | 9.94k | ovs_assert(b->size >= new_size); | 299 | 9.94k | b->size = new_size; | 300 | 9.94k | } |
Unexecuted instantiation: ofp-bundle.c:ofpbuf_truncate Unexecuted instantiation: ofp-connection.c:ofpbuf_truncate Unexecuted instantiation: ofp-ct.c:ofpbuf_truncate Unexecuted instantiation: ofp-ed-props.c:ofpbuf_truncate Unexecuted instantiation: ofp-errors.c:ofpbuf_truncate Unexecuted instantiation: ofp-flow.c:ofpbuf_truncate Unexecuted instantiation: ofp-group.c:ofpbuf_truncate Unexecuted instantiation: ofp-ipfix.c:ofpbuf_truncate Unexecuted instantiation: ofp-meter.c:ofpbuf_truncate Unexecuted instantiation: ofp-monitor.c:ofpbuf_truncate Unexecuted instantiation: ofp-packet.c:ofpbuf_truncate Unexecuted instantiation: ofp-parse.c:ofpbuf_truncate Unexecuted instantiation: ox-stat.c:ofpbuf_truncate Unexecuted instantiation: pcap-file.c:ofpbuf_truncate Unexecuted instantiation: stream.c:ofpbuf_truncate Unexecuted instantiation: tnl-neigh-cache.c:ofpbuf_truncate Unexecuted instantiation: netdev-native-tnl.c:ofpbuf_truncate Unexecuted instantiation: stream-unix.c:ofpbuf_truncate Unexecuted instantiation: dpif-netlink.c:ofpbuf_truncate Unexecuted instantiation: dpif-netlink-rtnl.c:ofpbuf_truncate Unexecuted instantiation: dpif-offload-tc.c:ofpbuf_truncate Unexecuted instantiation: dpif-offload-tc-netdev.c:ofpbuf_truncate Unexecuted instantiation: netlink-conntrack.c:ofpbuf_truncate Unexecuted instantiation: netlink-notifier.c:ofpbuf_truncate Unexecuted instantiation: stream-ssl.c:ofpbuf_truncate Unexecuted instantiation: bundle.c:ofpbuf_truncate Unexecuted instantiation: conntrack.c:ofpbuf_truncate Unexecuted instantiation: ct-dpif.c:ofpbuf_truncate Unexecuted instantiation: dpctl.c:ofpbuf_truncate Unexecuted instantiation: dpif-netdev.c:ofpbuf_truncate Unexecuted instantiation: ipf.c:ofpbuf_truncate Unexecuted instantiation: learn.c:ofpbuf_truncate Unexecuted instantiation: multipath.c:ofpbuf_truncate Unexecuted instantiation: stream-tcp.c:ofpbuf_truncate Unexecuted instantiation: conntrack-icmp.c:ofpbuf_truncate Unexecuted instantiation: conntrack-tcp.c:ofpbuf_truncate Unexecuted instantiation: conntrack-tp.c:ofpbuf_truncate Unexecuted instantiation: conntrack-other.c:ofpbuf_truncate Unexecuted instantiation: dpif-netdev-dfc.c:ofpbuf_truncate Unexecuted instantiation: dpif-netdev-dpcls.c:ofpbuf_truncate Unexecuted instantiation: odp_target.c:ofpbuf_truncate Unexecuted instantiation: miniflow_target.c:ofpbuf_truncate Unexecuted instantiation: ofp_print_target.c:ofpbuf_truncate Unexecuted instantiation: ofctl_parse_target.c:ofpbuf_truncate |
301 | | |
302 | | #ifdef __cplusplus |
303 | | } |
304 | | #endif |
305 | | |
306 | | #endif /* ofpbuf.h */ |