/src/openvswitch/include/openvswitch/nsh.h
Line | Count | Source |
1 | | #ifndef __OPENVSWITCH_NSH_H |
2 | | #define __OPENVSWITCH_NSH_H 1 |
3 | | |
4 | | #include "openvswitch/types.h" |
5 | | |
6 | | /* |
7 | | * Network Service Header: |
8 | | * 0 1 2 3 |
9 | | * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 |
10 | | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
11 | | * |Ver|O|U| TTL | Length |U|U|U|U|MD Type| Next Protocol | |
12 | | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
13 | | * | Service Path Identifier (SPI) | Service Index | |
14 | | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
15 | | * | | |
16 | | * ~ Mandatory/Optional Context Headers ~ |
17 | | * | | |
18 | | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
19 | | * |
20 | | * Version: The version field is used to ensure backward compatibility |
21 | | * going forward with future NSH specification updates. It MUST be set |
22 | | * to 0x0 by the sender, in this first revision of NSH. Given the |
23 | | * widespread implementation of existing hardware that uses the first |
24 | | * nibble after an MPLS label stack for ECMP decision processing, this |
25 | | * document reserves version 01b and this value MUST NOT be used in |
26 | | * future versions of the protocol. Please see [RFC7325] for further |
27 | | * discussion of MPLS-related forwarding requirements. |
28 | | * |
29 | | * O bit: Setting this bit indicates an Operations, Administration, and |
30 | | * Maintenance (OAM) packet. The actual format and processing of SFC |
31 | | * OAM packets is outside the scope of this specification (see for |
32 | | * example [I-D.ietf-sfc-oam-framework] for one approach). |
33 | | * |
34 | | * The O bit MUST be set for OAM packets and MUST NOT be set for non-OAM |
35 | | * packets. The O bit MUST NOT be modified along the SFP. |
36 | | * |
37 | | * SF/SFF/SFC Proxy/Classifier implementations that do not support SFC |
38 | | * OAM procedures SHOULD discard packets with O bit set, but MAY support |
39 | | * a configurable parameter to enable forwarding received SFC OAM |
40 | | * packets unmodified to the next element in the chain. Forwarding OAM |
41 | | * packets unmodified by SFC elements that do not support SFC OAM |
42 | | * procedures may be acceptable for a subset of OAM functions, but can |
43 | | * result in unexpected outcomes for others, thus it is recommended to |
44 | | * analyze the impact of forwarding an OAM packet for all OAM functions |
45 | | * prior to enabling this behavior. The configurable parameter MUST be |
46 | | * disabled by default. |
47 | | * |
48 | | * TTL: Indicates the maximum SFF hops for an SFP. This field is used |
49 | | * for service plane loop detection. The initial TTL value SHOULD be |
50 | | * configurable via the control plane; the configured initial value can |
51 | | * be specific to one or more SFPs. If no initial value is explicitly |
52 | | * provided, the default initial TTL value of 63 MUST be used. Each SFF |
53 | | * involved in forwarding an NSH packet MUST decrement the TTL value by |
54 | | * 1 prior to NSH forwarding lookup. Decrementing by 1 from an incoming |
55 | | * value of 0 shall result in a TTL value of 63. The packet MUST NOT be |
56 | | * forwarded if TTL is, after decrement, 0. |
57 | | * |
58 | | * All other flag fields, marked U, are unassigned and available for |
59 | | * future use, see Section 11.2.1. Unassigned bits MUST be set to zero |
60 | | * upon origination, and MUST be ignored and preserved unmodified by |
61 | | * other NSH supporting elements. Elements which do not understand the |
62 | | * meaning of any of these bits MUST NOT modify their actions based on |
63 | | * those unknown bits. |
64 | | * |
65 | | * Length: The total length, in 4-byte words, of NSH including the Base |
66 | | * Header, the Service Path Header, the Fixed Length Context Header or |
67 | | * Variable Length Context Header(s). The length MUST be 0x6 for MD |
68 | | * Type equal to 0x1, and MUST be 0x2 or greater for MD Type equal to |
69 | | * 0x2. The length of the NSH header MUST be an integer multiple of 4 |
70 | | * bytes, thus variable length metadata is always padded out to a |
71 | | * multiple of 4 bytes. |
72 | | * |
73 | | * MD Type: Indicates the format of NSH beyond the mandatory Base Header |
74 | | * and the Service Path Header. MD Type defines the format of the |
75 | | * metadata being carried. |
76 | | * |
77 | | * 0x0 - This is a reserved value. Implementations SHOULD silently |
78 | | * discard packets with MD Type 0x0. |
79 | | * |
80 | | * 0x1 - This indicates that the format of the header includes a fixed |
81 | | * length Context Header (see Figure 4 below). |
82 | | * |
83 | | * 0x2 - This does not mandate any headers beyond the Base Header and |
84 | | * Service Path Header, but may contain optional variable length Context |
85 | | * Header(s). The semantics of the variable length Context Header(s) |
86 | | * are not defined in this document. The format of the optional |
87 | | * variable length Context Headers is provided in Section 2.5.1. |
88 | | * |
89 | | * 0xF - This value is reserved for experimentation and testing, as per |
90 | | * [RFC3692]. Implementations not explicitly configured to be part of |
91 | | * an experiment SHOULD silently discard packets with MD Type 0xF. |
92 | | * |
93 | | * Next Protocol: indicates the protocol type of the encapsulated data. |
94 | | * NSH does not alter the inner payload, and the semantics on the inner |
95 | | * protocol remain unchanged due to NSH service function chaining. |
96 | | * Please see the IANA Considerations section below, Section 11.2.5. |
97 | | * |
98 | | * This document defines the following Next Protocol values: |
99 | | * |
100 | | * 0x1: IPv4 |
101 | | * 0x2: IPv6 |
102 | | * 0x3: Ethernet |
103 | | * 0x4: NSH |
104 | | * 0x5: MPLS |
105 | | * 0xFE: Experiment 1 |
106 | | * 0xFF: Experiment 2 |
107 | | * |
108 | | * Packets with Next Protocol values not supported SHOULD be silently |
109 | | * dropped by default, although an implementation MAY provide a |
110 | | * configuration parameter to forward them. Additionally, an |
111 | | * implementation not explicitly configured for a specific experiment |
112 | | * [RFC3692] SHOULD silently drop packets with Next Protocol values 0xFE |
113 | | * and 0xFF. |
114 | | * |
115 | | * Service Path Identifier (SPI): Identifies a service path. |
116 | | * Participating nodes MUST use this identifier for Service Function |
117 | | * Path selection. The initial classifier MUST set the appropriate SPI |
118 | | * for a given classification result. |
119 | | * |
120 | | * Service Index (SI): Provides location within the SFP. The initial |
121 | | * classifier for a given SFP SHOULD set the SI to 255, however the |
122 | | * control plane MAY configure the initial value of SI as appropriate |
123 | | * (i.e., taking into account the length of the service function path). |
124 | | * The Service Index MUST be decremented by a value of 1 by Service |
125 | | * Functions or by SFC Proxy nodes after performing required services |
126 | | * and the new decremented SI value MUST be used in the egress packet's |
127 | | * NSH. The initial Classifier MUST send the packet to the first SFF in |
128 | | * the identified SFP for forwarding along an SFP. If re-classification |
129 | | * occurs, and that re-classification results in a new SPI, the |
130 | | * (re)classifier is, in effect, the initial classifier for the |
131 | | * resultant SPI. |
132 | | * |
133 | | * The SI is used in conjunction the with Service Path Identifier for |
134 | | * Service Function Path Selection and for determining the next SFF/SF |
135 | | * in the path. The SI is also valuable when troubleshooting or |
136 | | * reporting service paths. Additionally, while the TTL field is the |
137 | | * main mechanism for service plane loop detection, the SI can also be |
138 | | * used for detecting service plane loops. |
139 | | * |
140 | | * When the Base Header specifies MD Type = 0x1, a Fixed Length Context |
141 | | * Header (16-bytes) MUST be present immediately following the Service |
142 | | * Path Header. The value of a Fixed Length Context |
143 | | * Header that carries no metadata MUST be set to zero. |
144 | | * |
145 | | * When the base header specifies MD Type = 0x2, zero or more Variable |
146 | | * Length Context Headers MAY be added, immediately following the |
147 | | * Service Path Header (see Figure 5). Therefore, Length = 0x2, |
148 | | * indicates that only the Base Header followed by the Service Path |
149 | | * Header are present. The optional Variable Length Context Headers |
150 | | * MUST be of an integer number of 4-bytes. The base header Length |
151 | | * field MUST be used to determine the offset to locate the original |
152 | | * packet or frame for SFC nodes that require access to that |
153 | | * information. |
154 | | * |
155 | | * The format of the optional variable length Context Headers |
156 | | * |
157 | | * 0 1 2 3 |
158 | | * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 |
159 | | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
160 | | * | Metadata Class | Type |U| Length | |
161 | | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
162 | | * | Variable Metadata | |
163 | | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
164 | | * |
165 | | * Metadata Class (MD Class): Defines the scope of the 'Type' field to |
166 | | * provide a hierarchical namespace. The IANA Considerations |
167 | | * Section 11.2.4 defines how the MD Class values can be allocated to |
168 | | * standards bodies, vendors, and others. |
169 | | * |
170 | | * Type: Indicates the explicit type of metadata being carried. The |
171 | | * definition of the Type is the responsibility of the MD Class owner. |
172 | | * |
173 | | * Unassigned bit: One unassigned bit is available for future use. This |
174 | | * bit MUST NOT be set, and MUST be ignored on receipt. |
175 | | * |
176 | | * Length: Indicates the length of the variable metadata, in bytes. In |
177 | | * case the metadata length is not an integer number of 4-byte words, |
178 | | * the sender MUST add pad bytes immediately following the last metadata |
179 | | * byte to extend the metadata to an integer number of 4-byte words. |
180 | | * The receiver MUST round up the length field to the nearest 4-byte |
181 | | * word boundary, to locate and process the next field in the packet. |
182 | | * The receiver MUST access only those bytes in the metadata indicated |
183 | | * by the length field (i.e., actual number of bytes) and MUST ignore |
184 | | * the remaining bytes up to the nearest 4-byte word boundary. The |
185 | | * Length may be 0 or greater. |
186 | | * |
187 | | * A value of 0 denotes a Context Header without a Variable Metadata |
188 | | * field. |
189 | | * |
190 | | * [0] https://www.ietf.org/id/draft-ietf-sfc-nsh-19.txt |
191 | | */ |
192 | | |
193 | | #ifdef __cplusplus |
194 | | extern "C" { |
195 | | #endif |
196 | | |
197 | | /** |
198 | | * struct nsh_md1_ctx - Keeps track of NSH context data |
199 | | * @nshc<1-4>: NSH Contexts. |
200 | | */ |
201 | | struct nsh_md1_ctx { |
202 | | ovs_16aligned_be32 context[4]; |
203 | | }; |
204 | | |
205 | | struct nsh_md2_tlv { |
206 | | ovs_be16 md_class; |
207 | | uint8_t type; |
208 | | uint8_t length; |
209 | | /* Followed by variable-length data. */ |
210 | | }; |
211 | | |
212 | | struct nsh_hdr { |
213 | | ovs_be16 ver_flags_ttl_len; |
214 | | uint8_t md_type; |
215 | | uint8_t next_proto; |
216 | | ovs_16aligned_be32 path_hdr; |
217 | | union { |
218 | | struct nsh_md1_ctx md1; |
219 | | struct nsh_md2_tlv md2; /* This represents the first element of |
220 | | a list of zero or more md2_tlv structs. |
221 | | It may not be present. */ |
222 | | }; |
223 | | }; |
224 | | |
225 | | /* Masking NSH header fields. */ |
226 | 51 | #define NSH_VER_MASK 0xc000 |
227 | 51 | #define NSH_VER_SHIFT 14 |
228 | 51 | #define NSH_FLAGS_MASK 0x3000 |
229 | 51 | #define NSH_FLAGS_SHIFT 12 |
230 | 51 | #define NSH_TTL_MASK 0x0fc0 |
231 | 51 | #define NSH_TTL_SHIFT 6 |
232 | 51 | #define NSH_LEN_MASK 0x003f |
233 | 51 | #define NSH_LEN_SHIFT 0 |
234 | | |
235 | 0 | #define NSH_MDTYPE_MASK 0x0f |
236 | 0 | #define NSH_MDTYPE_SHIFT 0 |
237 | | |
238 | 0 | #define NSH_SPI_MASK 0xffffff00 |
239 | 0 | #define NSH_SPI_SHIFT 8 |
240 | 0 | #define NSH_SI_MASK 0x000000ff |
241 | 0 | #define NSH_SI_SHIFT 0 |
242 | | |
243 | | /* NSH Base Header Next Protocol. */ |
244 | 0 | #define NSH_P_IPV4 0x01 |
245 | 0 | #define NSH_P_IPV6 0x02 |
246 | 0 | #define NSH_P_ETHERNET 0x03 |
247 | 0 | #define NSH_P_NSH 0x04 |
248 | | #define NSH_P_MPLS 0x05 |
249 | | |
250 | | /* MD Type Registry. */ |
251 | 12 | #define NSH_M_TYPE1 0x01 |
252 | 15 | #define NSH_M_TYPE2 0x02 |
253 | | #define NSH_M_EXP1 0xFE |
254 | | #define NSH_M_EXP2 0xFF |
255 | | |
256 | | /* NSH Metadata Length. */ |
257 | 0 | #define NSH_M_TYPE1_MDLEN 16 |
258 | | |
259 | | /* NSH Base Header Length */ |
260 | 15 | #define NSH_BASE_HDR_LEN 8 |
261 | | |
262 | | /* NSH MD Type 1 header Length. */ |
263 | 12 | #define NSH_M_TYPE1_LEN 24 |
264 | | |
265 | | /* NSH header maximum Length. */ |
266 | 0 | #define NSH_HDR_MAX_LEN 252 |
267 | | |
268 | | /* NSH context headers maximum Length. */ |
269 | 0 | #define NSH_CTX_HDRS_MAX_LEN 244 |
270 | | |
271 | | static inline uint16_t |
272 | | nsh_hdr_len(const struct nsh_hdr *nsh) |
273 | 51 | { |
274 | 51 | return ((ntohs(nsh->ver_flags_ttl_len) & NSH_LEN_MASK) |
275 | 51 | >> NSH_LEN_SHIFT) << 2; |
276 | 51 | } Unexecuted instantiation: miniflow_target.c:nsh_hdr_len Unexecuted instantiation: dp-packet.c:nsh_hdr_len Line | Count | Source | 273 | 51 | { | 274 | 51 | return ((ntohs(nsh->ver_flags_ttl_len) & NSH_LEN_MASK) | 275 | 51 | >> NSH_LEN_SHIFT) << 2; | 276 | 51 | } |
Unexecuted instantiation: match.c:nsh_hdr_len Unexecuted instantiation: netdev.c:nsh_hdr_len Unexecuted instantiation: ofp-port.c:nsh_hdr_len Unexecuted instantiation: ofp-print.c:nsh_hdr_len Unexecuted instantiation: ofp-queue.c:nsh_hdr_len Unexecuted instantiation: ofp-table.c:nsh_hdr_len Unexecuted instantiation: ofp-util.c:nsh_hdr_len Unexecuted instantiation: ovs-router.c:nsh_hdr_len Unexecuted instantiation: packets.c:nsh_hdr_len Unexecuted instantiation: smap.c:nsh_hdr_len Unexecuted instantiation: socket-util.c:nsh_hdr_len Unexecuted instantiation: tnl-ports.c:nsh_hdr_len Unexecuted instantiation: tun-metadata.c:nsh_hdr_len Unexecuted instantiation: netdev-linux.c:nsh_hdr_len Unexecuted instantiation: netdev-offload-tc.c:nsh_hdr_len Unexecuted instantiation: rtnetlink.c:nsh_hdr_len Unexecuted instantiation: route-table.c:nsh_hdr_len Unexecuted instantiation: tc.c:nsh_hdr_len Unexecuted instantiation: classifier.c:nsh_hdr_len Unexecuted instantiation: dp-packet-gso.c:nsh_hdr_len Unexecuted instantiation: dpif.c:nsh_hdr_len Unexecuted instantiation: meta-flow.c:nsh_hdr_len Unexecuted instantiation: netdev-offload.c:nsh_hdr_len Unexecuted instantiation: netdev-vport.c:nsh_hdr_len Unexecuted instantiation: netlink.c:nsh_hdr_len Unexecuted instantiation: nx-match.c:nsh_hdr_len Unexecuted instantiation: odp-execute.c:nsh_hdr_len Unexecuted instantiation: odp-execute-private.c:nsh_hdr_len Unexecuted instantiation: odp-util.c:nsh_hdr_len Unexecuted instantiation: ofp-actions.c:nsh_hdr_len Unexecuted instantiation: ofp-ct.c:nsh_hdr_len Unexecuted instantiation: ofp-ed-props.c:nsh_hdr_len Unexecuted instantiation: ofp-flow.c:nsh_hdr_len Unexecuted instantiation: ofp-group.c:nsh_hdr_len Unexecuted instantiation: ofp-match.c:nsh_hdr_len Unexecuted instantiation: ofp-meter.c:nsh_hdr_len Unexecuted instantiation: ofp-monitor.c:nsh_hdr_len Unexecuted instantiation: ofp-packet.c:nsh_hdr_len Unexecuted instantiation: ofp-parse.c:nsh_hdr_len Unexecuted instantiation: stream.c:nsh_hdr_len Unexecuted instantiation: tnl-neigh-cache.c:nsh_hdr_len Unexecuted instantiation: netdev-native-tnl.c:nsh_hdr_len Unexecuted instantiation: stream-unix.c:nsh_hdr_len Unexecuted instantiation: dpif-netlink.c:nsh_hdr_len Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_hdr_len Unexecuted instantiation: netlink-conntrack.c:nsh_hdr_len Unexecuted instantiation: stream-ssl.c:nsh_hdr_len Unexecuted instantiation: bundle.c:nsh_hdr_len Unexecuted instantiation: conntrack.c:nsh_hdr_len Unexecuted instantiation: ct-dpif.c:nsh_hdr_len Unexecuted instantiation: dpctl.c:nsh_hdr_len Unexecuted instantiation: dpif-netdev.c:nsh_hdr_len Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_hdr_len Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_hdr_len Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_hdr_len Unexecuted instantiation: ipf.c:nsh_hdr_len Unexecuted instantiation: learn.c:nsh_hdr_len Unexecuted instantiation: multipath.c:nsh_hdr_len Unexecuted instantiation: stream-tcp.c:nsh_hdr_len Unexecuted instantiation: conntrack-icmp.c:nsh_hdr_len Unexecuted instantiation: conntrack-tcp.c:nsh_hdr_len Unexecuted instantiation: conntrack-tp.c:nsh_hdr_len Unexecuted instantiation: conntrack-other.c:nsh_hdr_len Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_hdr_len Unexecuted instantiation: dpif-netdev-lookup.c:nsh_hdr_len Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_hdr_len Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_hdr_len |
277 | | |
278 | | static inline uint8_t |
279 | | nsh_md_type(const struct nsh_hdr *nsh) |
280 | 0 | { |
281 | 0 | return (nsh->md_type & NSH_MDTYPE_MASK) >> NSH_MDTYPE_SHIFT; |
282 | 0 | } Unexecuted instantiation: miniflow_target.c:nsh_md_type Unexecuted instantiation: dp-packet.c:nsh_md_type Unexecuted instantiation: flow.c:nsh_md_type Unexecuted instantiation: match.c:nsh_md_type Unexecuted instantiation: netdev.c:nsh_md_type Unexecuted instantiation: ofp-port.c:nsh_md_type Unexecuted instantiation: ofp-print.c:nsh_md_type Unexecuted instantiation: ofp-queue.c:nsh_md_type Unexecuted instantiation: ofp-table.c:nsh_md_type Unexecuted instantiation: ofp-util.c:nsh_md_type Unexecuted instantiation: ovs-router.c:nsh_md_type Unexecuted instantiation: packets.c:nsh_md_type Unexecuted instantiation: smap.c:nsh_md_type Unexecuted instantiation: socket-util.c:nsh_md_type Unexecuted instantiation: tnl-ports.c:nsh_md_type Unexecuted instantiation: tun-metadata.c:nsh_md_type Unexecuted instantiation: netdev-linux.c:nsh_md_type Unexecuted instantiation: netdev-offload-tc.c:nsh_md_type Unexecuted instantiation: rtnetlink.c:nsh_md_type Unexecuted instantiation: route-table.c:nsh_md_type Unexecuted instantiation: tc.c:nsh_md_type Unexecuted instantiation: classifier.c:nsh_md_type Unexecuted instantiation: dp-packet-gso.c:nsh_md_type Unexecuted instantiation: dpif.c:nsh_md_type Unexecuted instantiation: meta-flow.c:nsh_md_type Unexecuted instantiation: netdev-offload.c:nsh_md_type Unexecuted instantiation: netdev-vport.c:nsh_md_type Unexecuted instantiation: netlink.c:nsh_md_type Unexecuted instantiation: nx-match.c:nsh_md_type Unexecuted instantiation: odp-execute.c:nsh_md_type Unexecuted instantiation: odp-execute-private.c:nsh_md_type Unexecuted instantiation: odp-util.c:nsh_md_type Unexecuted instantiation: ofp-actions.c:nsh_md_type Unexecuted instantiation: ofp-ct.c:nsh_md_type Unexecuted instantiation: ofp-ed-props.c:nsh_md_type Unexecuted instantiation: ofp-flow.c:nsh_md_type Unexecuted instantiation: ofp-group.c:nsh_md_type Unexecuted instantiation: ofp-match.c:nsh_md_type Unexecuted instantiation: ofp-meter.c:nsh_md_type Unexecuted instantiation: ofp-monitor.c:nsh_md_type Unexecuted instantiation: ofp-packet.c:nsh_md_type Unexecuted instantiation: ofp-parse.c:nsh_md_type Unexecuted instantiation: stream.c:nsh_md_type Unexecuted instantiation: tnl-neigh-cache.c:nsh_md_type Unexecuted instantiation: netdev-native-tnl.c:nsh_md_type Unexecuted instantiation: stream-unix.c:nsh_md_type Unexecuted instantiation: dpif-netlink.c:nsh_md_type Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_md_type Unexecuted instantiation: netlink-conntrack.c:nsh_md_type Unexecuted instantiation: stream-ssl.c:nsh_md_type Unexecuted instantiation: bundle.c:nsh_md_type Unexecuted instantiation: conntrack.c:nsh_md_type Unexecuted instantiation: ct-dpif.c:nsh_md_type Unexecuted instantiation: dpctl.c:nsh_md_type Unexecuted instantiation: dpif-netdev.c:nsh_md_type Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_md_type Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_md_type Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_md_type Unexecuted instantiation: ipf.c:nsh_md_type Unexecuted instantiation: learn.c:nsh_md_type Unexecuted instantiation: multipath.c:nsh_md_type Unexecuted instantiation: stream-tcp.c:nsh_md_type Unexecuted instantiation: conntrack-icmp.c:nsh_md_type Unexecuted instantiation: conntrack-tcp.c:nsh_md_type Unexecuted instantiation: conntrack-tp.c:nsh_md_type Unexecuted instantiation: conntrack-other.c:nsh_md_type Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_md_type Unexecuted instantiation: dpif-netdev-lookup.c:nsh_md_type Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_md_type Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_md_type |
283 | | |
284 | | static inline uint8_t |
285 | | nsh_get_ver(const struct nsh_hdr *nsh) |
286 | 51 | { |
287 | 51 | return (ntohs(nsh->ver_flags_ttl_len) & NSH_VER_MASK) >> NSH_VER_SHIFT; |
288 | 51 | } Unexecuted instantiation: miniflow_target.c:nsh_get_ver Unexecuted instantiation: dp-packet.c:nsh_get_ver Line | Count | Source | 286 | 51 | { | 287 | 51 | return (ntohs(nsh->ver_flags_ttl_len) & NSH_VER_MASK) >> NSH_VER_SHIFT; | 288 | 51 | } |
Unexecuted instantiation: match.c:nsh_get_ver Unexecuted instantiation: netdev.c:nsh_get_ver Unexecuted instantiation: ofp-port.c:nsh_get_ver Unexecuted instantiation: ofp-print.c:nsh_get_ver Unexecuted instantiation: ofp-queue.c:nsh_get_ver Unexecuted instantiation: ofp-table.c:nsh_get_ver Unexecuted instantiation: ofp-util.c:nsh_get_ver Unexecuted instantiation: ovs-router.c:nsh_get_ver Unexecuted instantiation: packets.c:nsh_get_ver Unexecuted instantiation: smap.c:nsh_get_ver Unexecuted instantiation: socket-util.c:nsh_get_ver Unexecuted instantiation: tnl-ports.c:nsh_get_ver Unexecuted instantiation: tun-metadata.c:nsh_get_ver Unexecuted instantiation: netdev-linux.c:nsh_get_ver Unexecuted instantiation: netdev-offload-tc.c:nsh_get_ver Unexecuted instantiation: rtnetlink.c:nsh_get_ver Unexecuted instantiation: route-table.c:nsh_get_ver Unexecuted instantiation: tc.c:nsh_get_ver Unexecuted instantiation: classifier.c:nsh_get_ver Unexecuted instantiation: dp-packet-gso.c:nsh_get_ver Unexecuted instantiation: dpif.c:nsh_get_ver Unexecuted instantiation: meta-flow.c:nsh_get_ver Unexecuted instantiation: netdev-offload.c:nsh_get_ver Unexecuted instantiation: netdev-vport.c:nsh_get_ver Unexecuted instantiation: netlink.c:nsh_get_ver Unexecuted instantiation: nx-match.c:nsh_get_ver Unexecuted instantiation: odp-execute.c:nsh_get_ver Unexecuted instantiation: odp-execute-private.c:nsh_get_ver Unexecuted instantiation: odp-util.c:nsh_get_ver Unexecuted instantiation: ofp-actions.c:nsh_get_ver Unexecuted instantiation: ofp-ct.c:nsh_get_ver Unexecuted instantiation: ofp-ed-props.c:nsh_get_ver Unexecuted instantiation: ofp-flow.c:nsh_get_ver Unexecuted instantiation: ofp-group.c:nsh_get_ver Unexecuted instantiation: ofp-match.c:nsh_get_ver Unexecuted instantiation: ofp-meter.c:nsh_get_ver Unexecuted instantiation: ofp-monitor.c:nsh_get_ver Unexecuted instantiation: ofp-packet.c:nsh_get_ver Unexecuted instantiation: ofp-parse.c:nsh_get_ver Unexecuted instantiation: stream.c:nsh_get_ver Unexecuted instantiation: tnl-neigh-cache.c:nsh_get_ver Unexecuted instantiation: netdev-native-tnl.c:nsh_get_ver Unexecuted instantiation: stream-unix.c:nsh_get_ver Unexecuted instantiation: dpif-netlink.c:nsh_get_ver Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_get_ver Unexecuted instantiation: netlink-conntrack.c:nsh_get_ver Unexecuted instantiation: stream-ssl.c:nsh_get_ver Unexecuted instantiation: bundle.c:nsh_get_ver Unexecuted instantiation: conntrack.c:nsh_get_ver Unexecuted instantiation: ct-dpif.c:nsh_get_ver Unexecuted instantiation: dpctl.c:nsh_get_ver Unexecuted instantiation: dpif-netdev.c:nsh_get_ver Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_get_ver Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_get_ver Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_get_ver Unexecuted instantiation: ipf.c:nsh_get_ver Unexecuted instantiation: learn.c:nsh_get_ver Unexecuted instantiation: multipath.c:nsh_get_ver Unexecuted instantiation: stream-tcp.c:nsh_get_ver Unexecuted instantiation: conntrack-icmp.c:nsh_get_ver Unexecuted instantiation: conntrack-tcp.c:nsh_get_ver Unexecuted instantiation: conntrack-tp.c:nsh_get_ver Unexecuted instantiation: conntrack-other.c:nsh_get_ver Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_get_ver Unexecuted instantiation: dpif-netdev-lookup.c:nsh_get_ver Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_get_ver Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_get_ver |
289 | | |
290 | | static inline uint8_t |
291 | | nsh_get_flags(const struct nsh_hdr *nsh) |
292 | 51 | { |
293 | 51 | return (ntohs(nsh->ver_flags_ttl_len) & NSH_FLAGS_MASK) >> NSH_FLAGS_SHIFT; |
294 | 51 | } Unexecuted instantiation: miniflow_target.c:nsh_get_flags Unexecuted instantiation: dp-packet.c:nsh_get_flags Line | Count | Source | 292 | 51 | { | 293 | 51 | return (ntohs(nsh->ver_flags_ttl_len) & NSH_FLAGS_MASK) >> NSH_FLAGS_SHIFT; | 294 | 51 | } |
Unexecuted instantiation: match.c:nsh_get_flags Unexecuted instantiation: netdev.c:nsh_get_flags Unexecuted instantiation: ofp-port.c:nsh_get_flags Unexecuted instantiation: ofp-print.c:nsh_get_flags Unexecuted instantiation: ofp-queue.c:nsh_get_flags Unexecuted instantiation: ofp-table.c:nsh_get_flags Unexecuted instantiation: ofp-util.c:nsh_get_flags Unexecuted instantiation: ovs-router.c:nsh_get_flags Unexecuted instantiation: packets.c:nsh_get_flags Unexecuted instantiation: smap.c:nsh_get_flags Unexecuted instantiation: socket-util.c:nsh_get_flags Unexecuted instantiation: tnl-ports.c:nsh_get_flags Unexecuted instantiation: tun-metadata.c:nsh_get_flags Unexecuted instantiation: netdev-linux.c:nsh_get_flags Unexecuted instantiation: netdev-offload-tc.c:nsh_get_flags Unexecuted instantiation: rtnetlink.c:nsh_get_flags Unexecuted instantiation: route-table.c:nsh_get_flags Unexecuted instantiation: tc.c:nsh_get_flags Unexecuted instantiation: classifier.c:nsh_get_flags Unexecuted instantiation: dp-packet-gso.c:nsh_get_flags Unexecuted instantiation: dpif.c:nsh_get_flags Unexecuted instantiation: meta-flow.c:nsh_get_flags Unexecuted instantiation: netdev-offload.c:nsh_get_flags Unexecuted instantiation: netdev-vport.c:nsh_get_flags Unexecuted instantiation: netlink.c:nsh_get_flags Unexecuted instantiation: nx-match.c:nsh_get_flags Unexecuted instantiation: odp-execute.c:nsh_get_flags Unexecuted instantiation: odp-execute-private.c:nsh_get_flags Unexecuted instantiation: odp-util.c:nsh_get_flags Unexecuted instantiation: ofp-actions.c:nsh_get_flags Unexecuted instantiation: ofp-ct.c:nsh_get_flags Unexecuted instantiation: ofp-ed-props.c:nsh_get_flags Unexecuted instantiation: ofp-flow.c:nsh_get_flags Unexecuted instantiation: ofp-group.c:nsh_get_flags Unexecuted instantiation: ofp-match.c:nsh_get_flags Unexecuted instantiation: ofp-meter.c:nsh_get_flags Unexecuted instantiation: ofp-monitor.c:nsh_get_flags Unexecuted instantiation: ofp-packet.c:nsh_get_flags Unexecuted instantiation: ofp-parse.c:nsh_get_flags Unexecuted instantiation: stream.c:nsh_get_flags Unexecuted instantiation: tnl-neigh-cache.c:nsh_get_flags Unexecuted instantiation: netdev-native-tnl.c:nsh_get_flags Unexecuted instantiation: stream-unix.c:nsh_get_flags Unexecuted instantiation: dpif-netlink.c:nsh_get_flags Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_get_flags Unexecuted instantiation: netlink-conntrack.c:nsh_get_flags Unexecuted instantiation: stream-ssl.c:nsh_get_flags Unexecuted instantiation: bundle.c:nsh_get_flags Unexecuted instantiation: conntrack.c:nsh_get_flags Unexecuted instantiation: ct-dpif.c:nsh_get_flags Unexecuted instantiation: dpctl.c:nsh_get_flags Unexecuted instantiation: dpif-netdev.c:nsh_get_flags Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_get_flags Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_get_flags Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_get_flags Unexecuted instantiation: ipf.c:nsh_get_flags Unexecuted instantiation: learn.c:nsh_get_flags Unexecuted instantiation: multipath.c:nsh_get_flags Unexecuted instantiation: stream-tcp.c:nsh_get_flags Unexecuted instantiation: conntrack-icmp.c:nsh_get_flags Unexecuted instantiation: conntrack-tcp.c:nsh_get_flags Unexecuted instantiation: conntrack-tp.c:nsh_get_flags Unexecuted instantiation: conntrack-other.c:nsh_get_flags Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_get_flags Unexecuted instantiation: dpif-netdev-lookup.c:nsh_get_flags Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_get_flags Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_get_flags |
295 | | |
296 | | static inline void |
297 | | nsh_reset_ver_flags_ttl_len(struct nsh_hdr *nsh) |
298 | 0 | { |
299 | 0 | nsh->ver_flags_ttl_len = 0; |
300 | 0 | } Unexecuted instantiation: miniflow_target.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dp-packet.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: flow.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: match.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: netdev.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-port.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-print.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-queue.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-table.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-util.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ovs-router.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: packets.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: smap.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: socket-util.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: tnl-ports.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: tun-metadata.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: netdev-linux.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: netdev-offload-tc.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: rtnetlink.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: route-table.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: tc.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: classifier.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dp-packet-gso.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dpif.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: meta-flow.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: netdev-offload.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: netdev-vport.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: netlink.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: nx-match.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: odp-execute.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: odp-execute-private.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: odp-util.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-actions.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-ct.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-ed-props.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-flow.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-group.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-match.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-meter.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-monitor.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-packet.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ofp-parse.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: stream.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: tnl-neigh-cache.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: netdev-native-tnl.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: stream-unix.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dpif-netlink.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: netlink-conntrack.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: stream-ssl.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: bundle.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: conntrack.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ct-dpif.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dpctl.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dpif-netdev.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: ipf.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: learn.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: multipath.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: stream-tcp.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: conntrack-icmp.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: conntrack-tcp.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: conntrack-tp.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: conntrack-other.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dpif-netdev-lookup.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_reset_ver_flags_ttl_len Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_reset_ver_flags_ttl_len |
301 | | |
302 | | static inline uint8_t |
303 | | nsh_get_ttl(const struct nsh_hdr *nsh) |
304 | 51 | { |
305 | 51 | return (ntohs(nsh->ver_flags_ttl_len) & NSH_TTL_MASK) >> NSH_TTL_SHIFT; |
306 | 51 | } Unexecuted instantiation: miniflow_target.c:nsh_get_ttl Unexecuted instantiation: dp-packet.c:nsh_get_ttl Line | Count | Source | 304 | 51 | { | 305 | 51 | return (ntohs(nsh->ver_flags_ttl_len) & NSH_TTL_MASK) >> NSH_TTL_SHIFT; | 306 | 51 | } |
Unexecuted instantiation: match.c:nsh_get_ttl Unexecuted instantiation: netdev.c:nsh_get_ttl Unexecuted instantiation: ofp-port.c:nsh_get_ttl Unexecuted instantiation: ofp-print.c:nsh_get_ttl Unexecuted instantiation: ofp-queue.c:nsh_get_ttl Unexecuted instantiation: ofp-table.c:nsh_get_ttl Unexecuted instantiation: ofp-util.c:nsh_get_ttl Unexecuted instantiation: ovs-router.c:nsh_get_ttl Unexecuted instantiation: packets.c:nsh_get_ttl Unexecuted instantiation: smap.c:nsh_get_ttl Unexecuted instantiation: socket-util.c:nsh_get_ttl Unexecuted instantiation: tnl-ports.c:nsh_get_ttl Unexecuted instantiation: tun-metadata.c:nsh_get_ttl Unexecuted instantiation: netdev-linux.c:nsh_get_ttl Unexecuted instantiation: netdev-offload-tc.c:nsh_get_ttl Unexecuted instantiation: rtnetlink.c:nsh_get_ttl Unexecuted instantiation: route-table.c:nsh_get_ttl Unexecuted instantiation: tc.c:nsh_get_ttl Unexecuted instantiation: classifier.c:nsh_get_ttl Unexecuted instantiation: dp-packet-gso.c:nsh_get_ttl Unexecuted instantiation: dpif.c:nsh_get_ttl Unexecuted instantiation: meta-flow.c:nsh_get_ttl Unexecuted instantiation: netdev-offload.c:nsh_get_ttl Unexecuted instantiation: netdev-vport.c:nsh_get_ttl Unexecuted instantiation: netlink.c:nsh_get_ttl Unexecuted instantiation: nx-match.c:nsh_get_ttl Unexecuted instantiation: odp-execute.c:nsh_get_ttl Unexecuted instantiation: odp-execute-private.c:nsh_get_ttl Unexecuted instantiation: odp-util.c:nsh_get_ttl Unexecuted instantiation: ofp-actions.c:nsh_get_ttl Unexecuted instantiation: ofp-ct.c:nsh_get_ttl Unexecuted instantiation: ofp-ed-props.c:nsh_get_ttl Unexecuted instantiation: ofp-flow.c:nsh_get_ttl Unexecuted instantiation: ofp-group.c:nsh_get_ttl Unexecuted instantiation: ofp-match.c:nsh_get_ttl Unexecuted instantiation: ofp-meter.c:nsh_get_ttl Unexecuted instantiation: ofp-monitor.c:nsh_get_ttl Unexecuted instantiation: ofp-packet.c:nsh_get_ttl Unexecuted instantiation: ofp-parse.c:nsh_get_ttl Unexecuted instantiation: stream.c:nsh_get_ttl Unexecuted instantiation: tnl-neigh-cache.c:nsh_get_ttl Unexecuted instantiation: netdev-native-tnl.c:nsh_get_ttl Unexecuted instantiation: stream-unix.c:nsh_get_ttl Unexecuted instantiation: dpif-netlink.c:nsh_get_ttl Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_get_ttl Unexecuted instantiation: netlink-conntrack.c:nsh_get_ttl Unexecuted instantiation: stream-ssl.c:nsh_get_ttl Unexecuted instantiation: bundle.c:nsh_get_ttl Unexecuted instantiation: conntrack.c:nsh_get_ttl Unexecuted instantiation: ct-dpif.c:nsh_get_ttl Unexecuted instantiation: dpctl.c:nsh_get_ttl Unexecuted instantiation: dpif-netdev.c:nsh_get_ttl Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_get_ttl Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_get_ttl Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_get_ttl Unexecuted instantiation: ipf.c:nsh_get_ttl Unexecuted instantiation: learn.c:nsh_get_ttl Unexecuted instantiation: multipath.c:nsh_get_ttl Unexecuted instantiation: stream-tcp.c:nsh_get_ttl Unexecuted instantiation: conntrack-icmp.c:nsh_get_ttl Unexecuted instantiation: conntrack-tcp.c:nsh_get_ttl Unexecuted instantiation: conntrack-tp.c:nsh_get_ttl Unexecuted instantiation: conntrack-other.c:nsh_get_ttl Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_get_ttl Unexecuted instantiation: dpif-netdev-lookup.c:nsh_get_ttl Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_get_ttl Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_get_ttl |
307 | | |
308 | | #ifndef __CHECKER__ |
309 | | static inline ovs_be32 |
310 | | nsh_16aligned_be32(const ovs_16aligned_be32 *x) |
311 | 37 | { |
312 | | #ifdef WORDS_BIGENDIAN |
313 | | return ((ovs_be32) x->hi << 16) | (ovs_be32) x->lo; |
314 | | #else |
315 | 37 | return ((ovs_be32) x->lo << 16) | (ovs_be32) x->hi; |
316 | 37 | #endif |
317 | 37 | } Unexecuted instantiation: miniflow_target.c:nsh_16aligned_be32 Unexecuted instantiation: dp-packet.c:nsh_16aligned_be32 flow.c:nsh_16aligned_be32 Line | Count | Source | 311 | 37 | { | 312 | | #ifdef WORDS_BIGENDIAN | 313 | | return ((ovs_be32) x->hi << 16) | (ovs_be32) x->lo; | 314 | | #else | 315 | 37 | return ((ovs_be32) x->lo << 16) | (ovs_be32) x->hi; | 316 | 37 | #endif | 317 | 37 | } |
Unexecuted instantiation: match.c:nsh_16aligned_be32 Unexecuted instantiation: netdev.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-port.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-print.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-queue.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-table.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-util.c:nsh_16aligned_be32 Unexecuted instantiation: ovs-router.c:nsh_16aligned_be32 Unexecuted instantiation: packets.c:nsh_16aligned_be32 Unexecuted instantiation: smap.c:nsh_16aligned_be32 Unexecuted instantiation: socket-util.c:nsh_16aligned_be32 Unexecuted instantiation: tnl-ports.c:nsh_16aligned_be32 Unexecuted instantiation: tun-metadata.c:nsh_16aligned_be32 Unexecuted instantiation: netdev-linux.c:nsh_16aligned_be32 Unexecuted instantiation: netdev-offload-tc.c:nsh_16aligned_be32 Unexecuted instantiation: rtnetlink.c:nsh_16aligned_be32 Unexecuted instantiation: route-table.c:nsh_16aligned_be32 Unexecuted instantiation: tc.c:nsh_16aligned_be32 Unexecuted instantiation: classifier.c:nsh_16aligned_be32 Unexecuted instantiation: dp-packet-gso.c:nsh_16aligned_be32 Unexecuted instantiation: dpif.c:nsh_16aligned_be32 Unexecuted instantiation: meta-flow.c:nsh_16aligned_be32 Unexecuted instantiation: netdev-offload.c:nsh_16aligned_be32 Unexecuted instantiation: netdev-vport.c:nsh_16aligned_be32 Unexecuted instantiation: netlink.c:nsh_16aligned_be32 Unexecuted instantiation: nx-match.c:nsh_16aligned_be32 Unexecuted instantiation: odp-execute.c:nsh_16aligned_be32 Unexecuted instantiation: odp-execute-private.c:nsh_16aligned_be32 Unexecuted instantiation: odp-util.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-actions.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-ct.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-ed-props.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-flow.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-group.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-match.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-meter.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-monitor.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-packet.c:nsh_16aligned_be32 Unexecuted instantiation: ofp-parse.c:nsh_16aligned_be32 Unexecuted instantiation: stream.c:nsh_16aligned_be32 Unexecuted instantiation: tnl-neigh-cache.c:nsh_16aligned_be32 Unexecuted instantiation: netdev-native-tnl.c:nsh_16aligned_be32 Unexecuted instantiation: stream-unix.c:nsh_16aligned_be32 Unexecuted instantiation: dpif-netlink.c:nsh_16aligned_be32 Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_16aligned_be32 Unexecuted instantiation: netlink-conntrack.c:nsh_16aligned_be32 Unexecuted instantiation: stream-ssl.c:nsh_16aligned_be32 Unexecuted instantiation: bundle.c:nsh_16aligned_be32 Unexecuted instantiation: conntrack.c:nsh_16aligned_be32 Unexecuted instantiation: ct-dpif.c:nsh_16aligned_be32 Unexecuted instantiation: dpctl.c:nsh_16aligned_be32 Unexecuted instantiation: dpif-netdev.c:nsh_16aligned_be32 Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_16aligned_be32 Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_16aligned_be32 Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_16aligned_be32 Unexecuted instantiation: ipf.c:nsh_16aligned_be32 Unexecuted instantiation: learn.c:nsh_16aligned_be32 Unexecuted instantiation: multipath.c:nsh_16aligned_be32 Unexecuted instantiation: stream-tcp.c:nsh_16aligned_be32 Unexecuted instantiation: conntrack-icmp.c:nsh_16aligned_be32 Unexecuted instantiation: conntrack-tcp.c:nsh_16aligned_be32 Unexecuted instantiation: conntrack-tp.c:nsh_16aligned_be32 Unexecuted instantiation: conntrack-other.c:nsh_16aligned_be32 Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_16aligned_be32 Unexecuted instantiation: dpif-netdev-lookup.c:nsh_16aligned_be32 Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_16aligned_be32 Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_16aligned_be32 |
318 | | #else /* __CHECKER__ */ |
319 | | /* Making sparse happy with these functions also makes them unreadable, so |
320 | | * don't bother to show it their implementations. */ |
321 | | ovs_be32 nsh_16aligned_be32(const ovs_16aligned_be32 *x); |
322 | | #endif |
323 | | |
324 | | static inline ovs_be32 |
325 | | nsh_get_path_hdr(const struct nsh_hdr *nsh) |
326 | 37 | { |
327 | 37 | return nsh_16aligned_be32(&nsh->path_hdr); |
328 | 37 | } Unexecuted instantiation: miniflow_target.c:nsh_get_path_hdr Unexecuted instantiation: dp-packet.c:nsh_get_path_hdr Line | Count | Source | 326 | 37 | { | 327 | 37 | return nsh_16aligned_be32(&nsh->path_hdr); | 328 | 37 | } |
Unexecuted instantiation: match.c:nsh_get_path_hdr Unexecuted instantiation: netdev.c:nsh_get_path_hdr Unexecuted instantiation: ofp-port.c:nsh_get_path_hdr Unexecuted instantiation: ofp-print.c:nsh_get_path_hdr Unexecuted instantiation: ofp-queue.c:nsh_get_path_hdr Unexecuted instantiation: ofp-table.c:nsh_get_path_hdr Unexecuted instantiation: ofp-util.c:nsh_get_path_hdr Unexecuted instantiation: ovs-router.c:nsh_get_path_hdr Unexecuted instantiation: packets.c:nsh_get_path_hdr Unexecuted instantiation: smap.c:nsh_get_path_hdr Unexecuted instantiation: socket-util.c:nsh_get_path_hdr Unexecuted instantiation: tnl-ports.c:nsh_get_path_hdr Unexecuted instantiation: tun-metadata.c:nsh_get_path_hdr Unexecuted instantiation: netdev-linux.c:nsh_get_path_hdr Unexecuted instantiation: netdev-offload-tc.c:nsh_get_path_hdr Unexecuted instantiation: rtnetlink.c:nsh_get_path_hdr Unexecuted instantiation: route-table.c:nsh_get_path_hdr Unexecuted instantiation: tc.c:nsh_get_path_hdr Unexecuted instantiation: classifier.c:nsh_get_path_hdr Unexecuted instantiation: dp-packet-gso.c:nsh_get_path_hdr Unexecuted instantiation: dpif.c:nsh_get_path_hdr Unexecuted instantiation: meta-flow.c:nsh_get_path_hdr Unexecuted instantiation: netdev-offload.c:nsh_get_path_hdr Unexecuted instantiation: netdev-vport.c:nsh_get_path_hdr Unexecuted instantiation: netlink.c:nsh_get_path_hdr Unexecuted instantiation: nx-match.c:nsh_get_path_hdr Unexecuted instantiation: odp-execute.c:nsh_get_path_hdr Unexecuted instantiation: odp-execute-private.c:nsh_get_path_hdr Unexecuted instantiation: odp-util.c:nsh_get_path_hdr Unexecuted instantiation: ofp-actions.c:nsh_get_path_hdr Unexecuted instantiation: ofp-ct.c:nsh_get_path_hdr Unexecuted instantiation: ofp-ed-props.c:nsh_get_path_hdr Unexecuted instantiation: ofp-flow.c:nsh_get_path_hdr Unexecuted instantiation: ofp-group.c:nsh_get_path_hdr Unexecuted instantiation: ofp-match.c:nsh_get_path_hdr Unexecuted instantiation: ofp-meter.c:nsh_get_path_hdr Unexecuted instantiation: ofp-monitor.c:nsh_get_path_hdr Unexecuted instantiation: ofp-packet.c:nsh_get_path_hdr Unexecuted instantiation: ofp-parse.c:nsh_get_path_hdr Unexecuted instantiation: stream.c:nsh_get_path_hdr Unexecuted instantiation: tnl-neigh-cache.c:nsh_get_path_hdr Unexecuted instantiation: netdev-native-tnl.c:nsh_get_path_hdr Unexecuted instantiation: stream-unix.c:nsh_get_path_hdr Unexecuted instantiation: dpif-netlink.c:nsh_get_path_hdr Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_get_path_hdr Unexecuted instantiation: netlink-conntrack.c:nsh_get_path_hdr Unexecuted instantiation: stream-ssl.c:nsh_get_path_hdr Unexecuted instantiation: bundle.c:nsh_get_path_hdr Unexecuted instantiation: conntrack.c:nsh_get_path_hdr Unexecuted instantiation: ct-dpif.c:nsh_get_path_hdr Unexecuted instantiation: dpctl.c:nsh_get_path_hdr Unexecuted instantiation: dpif-netdev.c:nsh_get_path_hdr Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_get_path_hdr Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_get_path_hdr Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_get_path_hdr Unexecuted instantiation: ipf.c:nsh_get_path_hdr Unexecuted instantiation: learn.c:nsh_get_path_hdr Unexecuted instantiation: multipath.c:nsh_get_path_hdr Unexecuted instantiation: stream-tcp.c:nsh_get_path_hdr Unexecuted instantiation: conntrack-icmp.c:nsh_get_path_hdr Unexecuted instantiation: conntrack-tcp.c:nsh_get_path_hdr Unexecuted instantiation: conntrack-tp.c:nsh_get_path_hdr Unexecuted instantiation: conntrack-other.c:nsh_get_path_hdr Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_get_path_hdr Unexecuted instantiation: dpif-netdev-lookup.c:nsh_get_path_hdr Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_get_path_hdr Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_get_path_hdr |
329 | | |
330 | | static inline ovs_be32 |
331 | | nsh_get_spi(const struct nsh_hdr *nsh) |
332 | 0 | { |
333 | 0 | uint32_t path_hdr = ntohl(nsh_get_path_hdr(nsh)); |
334 | 0 | return htonl((path_hdr & NSH_SPI_MASK) >> NSH_SPI_SHIFT); |
335 | 0 | } Unexecuted instantiation: miniflow_target.c:nsh_get_spi Unexecuted instantiation: dp-packet.c:nsh_get_spi Unexecuted instantiation: flow.c:nsh_get_spi Unexecuted instantiation: match.c:nsh_get_spi Unexecuted instantiation: netdev.c:nsh_get_spi Unexecuted instantiation: ofp-port.c:nsh_get_spi Unexecuted instantiation: ofp-print.c:nsh_get_spi Unexecuted instantiation: ofp-queue.c:nsh_get_spi Unexecuted instantiation: ofp-table.c:nsh_get_spi Unexecuted instantiation: ofp-util.c:nsh_get_spi Unexecuted instantiation: ovs-router.c:nsh_get_spi Unexecuted instantiation: packets.c:nsh_get_spi Unexecuted instantiation: smap.c:nsh_get_spi Unexecuted instantiation: socket-util.c:nsh_get_spi Unexecuted instantiation: tnl-ports.c:nsh_get_spi Unexecuted instantiation: tun-metadata.c:nsh_get_spi Unexecuted instantiation: netdev-linux.c:nsh_get_spi Unexecuted instantiation: netdev-offload-tc.c:nsh_get_spi Unexecuted instantiation: rtnetlink.c:nsh_get_spi Unexecuted instantiation: route-table.c:nsh_get_spi Unexecuted instantiation: tc.c:nsh_get_spi Unexecuted instantiation: classifier.c:nsh_get_spi Unexecuted instantiation: dp-packet-gso.c:nsh_get_spi Unexecuted instantiation: dpif.c:nsh_get_spi Unexecuted instantiation: meta-flow.c:nsh_get_spi Unexecuted instantiation: netdev-offload.c:nsh_get_spi Unexecuted instantiation: netdev-vport.c:nsh_get_spi Unexecuted instantiation: netlink.c:nsh_get_spi Unexecuted instantiation: nx-match.c:nsh_get_spi Unexecuted instantiation: odp-execute.c:nsh_get_spi Unexecuted instantiation: odp-execute-private.c:nsh_get_spi Unexecuted instantiation: odp-util.c:nsh_get_spi Unexecuted instantiation: ofp-actions.c:nsh_get_spi Unexecuted instantiation: ofp-ct.c:nsh_get_spi Unexecuted instantiation: ofp-ed-props.c:nsh_get_spi Unexecuted instantiation: ofp-flow.c:nsh_get_spi Unexecuted instantiation: ofp-group.c:nsh_get_spi Unexecuted instantiation: ofp-match.c:nsh_get_spi Unexecuted instantiation: ofp-meter.c:nsh_get_spi Unexecuted instantiation: ofp-monitor.c:nsh_get_spi Unexecuted instantiation: ofp-packet.c:nsh_get_spi Unexecuted instantiation: ofp-parse.c:nsh_get_spi Unexecuted instantiation: stream.c:nsh_get_spi Unexecuted instantiation: tnl-neigh-cache.c:nsh_get_spi Unexecuted instantiation: netdev-native-tnl.c:nsh_get_spi Unexecuted instantiation: stream-unix.c:nsh_get_spi Unexecuted instantiation: dpif-netlink.c:nsh_get_spi Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_get_spi Unexecuted instantiation: netlink-conntrack.c:nsh_get_spi Unexecuted instantiation: stream-ssl.c:nsh_get_spi Unexecuted instantiation: bundle.c:nsh_get_spi Unexecuted instantiation: conntrack.c:nsh_get_spi Unexecuted instantiation: ct-dpif.c:nsh_get_spi Unexecuted instantiation: dpctl.c:nsh_get_spi Unexecuted instantiation: dpif-netdev.c:nsh_get_spi Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_get_spi Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_get_spi Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_get_spi Unexecuted instantiation: ipf.c:nsh_get_spi Unexecuted instantiation: learn.c:nsh_get_spi Unexecuted instantiation: multipath.c:nsh_get_spi Unexecuted instantiation: stream-tcp.c:nsh_get_spi Unexecuted instantiation: conntrack-icmp.c:nsh_get_spi Unexecuted instantiation: conntrack-tcp.c:nsh_get_spi Unexecuted instantiation: conntrack-tp.c:nsh_get_spi Unexecuted instantiation: conntrack-other.c:nsh_get_spi Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_get_spi Unexecuted instantiation: dpif-netdev-lookup.c:nsh_get_spi Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_get_spi Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_get_spi |
336 | | |
337 | | static inline uint8_t |
338 | | nsh_get_si(const struct nsh_hdr *nsh) |
339 | 0 | { |
340 | 0 | uint32_t path_hdr = ntohl(nsh_get_path_hdr(nsh)); |
341 | 0 | return (path_hdr & NSH_SI_MASK) >> NSH_SI_SHIFT; |
342 | 0 | } Unexecuted instantiation: miniflow_target.c:nsh_get_si Unexecuted instantiation: dp-packet.c:nsh_get_si Unexecuted instantiation: flow.c:nsh_get_si Unexecuted instantiation: match.c:nsh_get_si Unexecuted instantiation: netdev.c:nsh_get_si Unexecuted instantiation: ofp-port.c:nsh_get_si Unexecuted instantiation: ofp-print.c:nsh_get_si Unexecuted instantiation: ofp-queue.c:nsh_get_si Unexecuted instantiation: ofp-table.c:nsh_get_si Unexecuted instantiation: ofp-util.c:nsh_get_si Unexecuted instantiation: ovs-router.c:nsh_get_si Unexecuted instantiation: packets.c:nsh_get_si Unexecuted instantiation: smap.c:nsh_get_si Unexecuted instantiation: socket-util.c:nsh_get_si Unexecuted instantiation: tnl-ports.c:nsh_get_si Unexecuted instantiation: tun-metadata.c:nsh_get_si Unexecuted instantiation: netdev-linux.c:nsh_get_si Unexecuted instantiation: netdev-offload-tc.c:nsh_get_si Unexecuted instantiation: rtnetlink.c:nsh_get_si Unexecuted instantiation: route-table.c:nsh_get_si Unexecuted instantiation: tc.c:nsh_get_si Unexecuted instantiation: classifier.c:nsh_get_si Unexecuted instantiation: dp-packet-gso.c:nsh_get_si Unexecuted instantiation: dpif.c:nsh_get_si Unexecuted instantiation: meta-flow.c:nsh_get_si Unexecuted instantiation: netdev-offload.c:nsh_get_si Unexecuted instantiation: netdev-vport.c:nsh_get_si Unexecuted instantiation: netlink.c:nsh_get_si Unexecuted instantiation: nx-match.c:nsh_get_si Unexecuted instantiation: odp-execute.c:nsh_get_si Unexecuted instantiation: odp-execute-private.c:nsh_get_si Unexecuted instantiation: odp-util.c:nsh_get_si Unexecuted instantiation: ofp-actions.c:nsh_get_si Unexecuted instantiation: ofp-ct.c:nsh_get_si Unexecuted instantiation: ofp-ed-props.c:nsh_get_si Unexecuted instantiation: ofp-flow.c:nsh_get_si Unexecuted instantiation: ofp-group.c:nsh_get_si Unexecuted instantiation: ofp-match.c:nsh_get_si Unexecuted instantiation: ofp-meter.c:nsh_get_si Unexecuted instantiation: ofp-monitor.c:nsh_get_si Unexecuted instantiation: ofp-packet.c:nsh_get_si Unexecuted instantiation: ofp-parse.c:nsh_get_si Unexecuted instantiation: stream.c:nsh_get_si Unexecuted instantiation: tnl-neigh-cache.c:nsh_get_si Unexecuted instantiation: netdev-native-tnl.c:nsh_get_si Unexecuted instantiation: stream-unix.c:nsh_get_si Unexecuted instantiation: dpif-netlink.c:nsh_get_si Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_get_si Unexecuted instantiation: netlink-conntrack.c:nsh_get_si Unexecuted instantiation: stream-ssl.c:nsh_get_si Unexecuted instantiation: bundle.c:nsh_get_si Unexecuted instantiation: conntrack.c:nsh_get_si Unexecuted instantiation: ct-dpif.c:nsh_get_si Unexecuted instantiation: dpctl.c:nsh_get_si Unexecuted instantiation: dpif-netdev.c:nsh_get_si Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_get_si Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_get_si Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_get_si Unexecuted instantiation: ipf.c:nsh_get_si Unexecuted instantiation: learn.c:nsh_get_si Unexecuted instantiation: multipath.c:nsh_get_si Unexecuted instantiation: stream-tcp.c:nsh_get_si Unexecuted instantiation: conntrack-icmp.c:nsh_get_si Unexecuted instantiation: conntrack-tcp.c:nsh_get_si Unexecuted instantiation: conntrack-tp.c:nsh_get_si Unexecuted instantiation: conntrack-other.c:nsh_get_si Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_get_si Unexecuted instantiation: dpif-netdev-lookup.c:nsh_get_si Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_get_si Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_get_si |
343 | | |
344 | | static inline ovs_be32 |
345 | | nsh_path_hdr_to_spi(ovs_be32 path_hdr) |
346 | 0 | { |
347 | 0 | uint32_t hv = (ntohl(path_hdr) & NSH_SPI_MASK) >> NSH_SPI_SHIFT; |
348 | 0 | return htonl(hv); |
349 | 0 | } Unexecuted instantiation: miniflow_target.c:nsh_path_hdr_to_spi Unexecuted instantiation: dp-packet.c:nsh_path_hdr_to_spi Unexecuted instantiation: flow.c:nsh_path_hdr_to_spi Unexecuted instantiation: match.c:nsh_path_hdr_to_spi Unexecuted instantiation: netdev.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-port.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-print.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-queue.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-table.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-util.c:nsh_path_hdr_to_spi Unexecuted instantiation: ovs-router.c:nsh_path_hdr_to_spi Unexecuted instantiation: packets.c:nsh_path_hdr_to_spi Unexecuted instantiation: smap.c:nsh_path_hdr_to_spi Unexecuted instantiation: socket-util.c:nsh_path_hdr_to_spi Unexecuted instantiation: tnl-ports.c:nsh_path_hdr_to_spi Unexecuted instantiation: tun-metadata.c:nsh_path_hdr_to_spi Unexecuted instantiation: netdev-linux.c:nsh_path_hdr_to_spi Unexecuted instantiation: netdev-offload-tc.c:nsh_path_hdr_to_spi Unexecuted instantiation: rtnetlink.c:nsh_path_hdr_to_spi Unexecuted instantiation: route-table.c:nsh_path_hdr_to_spi Unexecuted instantiation: tc.c:nsh_path_hdr_to_spi Unexecuted instantiation: classifier.c:nsh_path_hdr_to_spi Unexecuted instantiation: dp-packet-gso.c:nsh_path_hdr_to_spi Unexecuted instantiation: dpif.c:nsh_path_hdr_to_spi Unexecuted instantiation: meta-flow.c:nsh_path_hdr_to_spi Unexecuted instantiation: netdev-offload.c:nsh_path_hdr_to_spi Unexecuted instantiation: netdev-vport.c:nsh_path_hdr_to_spi Unexecuted instantiation: netlink.c:nsh_path_hdr_to_spi Unexecuted instantiation: nx-match.c:nsh_path_hdr_to_spi Unexecuted instantiation: odp-execute.c:nsh_path_hdr_to_spi Unexecuted instantiation: odp-execute-private.c:nsh_path_hdr_to_spi Unexecuted instantiation: odp-util.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-actions.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-ct.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-ed-props.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-flow.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-group.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-match.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-meter.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-monitor.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-packet.c:nsh_path_hdr_to_spi Unexecuted instantiation: ofp-parse.c:nsh_path_hdr_to_spi Unexecuted instantiation: stream.c:nsh_path_hdr_to_spi Unexecuted instantiation: tnl-neigh-cache.c:nsh_path_hdr_to_spi Unexecuted instantiation: netdev-native-tnl.c:nsh_path_hdr_to_spi Unexecuted instantiation: stream-unix.c:nsh_path_hdr_to_spi Unexecuted instantiation: dpif-netlink.c:nsh_path_hdr_to_spi Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_path_hdr_to_spi Unexecuted instantiation: netlink-conntrack.c:nsh_path_hdr_to_spi Unexecuted instantiation: stream-ssl.c:nsh_path_hdr_to_spi Unexecuted instantiation: bundle.c:nsh_path_hdr_to_spi Unexecuted instantiation: conntrack.c:nsh_path_hdr_to_spi Unexecuted instantiation: ct-dpif.c:nsh_path_hdr_to_spi Unexecuted instantiation: dpctl.c:nsh_path_hdr_to_spi Unexecuted instantiation: dpif-netdev.c:nsh_path_hdr_to_spi Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_path_hdr_to_spi Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_path_hdr_to_spi Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_path_hdr_to_spi Unexecuted instantiation: ipf.c:nsh_path_hdr_to_spi Unexecuted instantiation: learn.c:nsh_path_hdr_to_spi Unexecuted instantiation: multipath.c:nsh_path_hdr_to_spi Unexecuted instantiation: stream-tcp.c:nsh_path_hdr_to_spi Unexecuted instantiation: conntrack-icmp.c:nsh_path_hdr_to_spi Unexecuted instantiation: conntrack-tcp.c:nsh_path_hdr_to_spi Unexecuted instantiation: conntrack-tp.c:nsh_path_hdr_to_spi Unexecuted instantiation: conntrack-other.c:nsh_path_hdr_to_spi Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_path_hdr_to_spi Unexecuted instantiation: dpif-netdev-lookup.c:nsh_path_hdr_to_spi Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_path_hdr_to_spi Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_path_hdr_to_spi |
350 | | |
351 | | static inline uint32_t |
352 | | nsh_path_hdr_to_spi_uint32(ovs_be32 path_hdr) |
353 | 0 | { |
354 | 0 | return (ntohl(path_hdr) & NSH_SPI_MASK) >> NSH_SPI_SHIFT; |
355 | 0 | } Unexecuted instantiation: miniflow_target.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dp-packet.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: flow.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: match.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: netdev.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-port.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-print.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-queue.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-table.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-util.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ovs-router.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: packets.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: smap.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: socket-util.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: tnl-ports.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: tun-metadata.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: netdev-linux.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: netdev-offload-tc.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: rtnetlink.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: route-table.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: tc.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: classifier.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dp-packet-gso.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dpif.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: meta-flow.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: netdev-offload.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: netdev-vport.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: netlink.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: nx-match.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: odp-execute.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: odp-execute-private.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: odp-util.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-actions.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-ct.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-ed-props.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-flow.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-group.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-match.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-meter.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-monitor.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-packet.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ofp-parse.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: stream.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: tnl-neigh-cache.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: netdev-native-tnl.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: stream-unix.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dpif-netlink.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: netlink-conntrack.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: stream-ssl.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: bundle.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: conntrack.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ct-dpif.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dpctl.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dpif-netdev.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: ipf.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: learn.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: multipath.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: stream-tcp.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: conntrack-icmp.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: conntrack-tcp.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: conntrack-tp.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: conntrack-other.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dpif-netdev-lookup.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_path_hdr_to_spi_uint32 Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_path_hdr_to_spi_uint32 |
356 | | |
357 | | static inline uint8_t |
358 | | nsh_path_hdr_to_si(ovs_be32 path_hdr) |
359 | 0 | { |
360 | 0 | return (ntohl(path_hdr) & NSH_SI_MASK) >> NSH_SI_SHIFT; |
361 | 0 | } Unexecuted instantiation: miniflow_target.c:nsh_path_hdr_to_si Unexecuted instantiation: dp-packet.c:nsh_path_hdr_to_si Unexecuted instantiation: flow.c:nsh_path_hdr_to_si Unexecuted instantiation: match.c:nsh_path_hdr_to_si Unexecuted instantiation: netdev.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-port.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-print.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-queue.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-table.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-util.c:nsh_path_hdr_to_si Unexecuted instantiation: ovs-router.c:nsh_path_hdr_to_si Unexecuted instantiation: packets.c:nsh_path_hdr_to_si Unexecuted instantiation: smap.c:nsh_path_hdr_to_si Unexecuted instantiation: socket-util.c:nsh_path_hdr_to_si Unexecuted instantiation: tnl-ports.c:nsh_path_hdr_to_si Unexecuted instantiation: tun-metadata.c:nsh_path_hdr_to_si Unexecuted instantiation: netdev-linux.c:nsh_path_hdr_to_si Unexecuted instantiation: netdev-offload-tc.c:nsh_path_hdr_to_si Unexecuted instantiation: rtnetlink.c:nsh_path_hdr_to_si Unexecuted instantiation: route-table.c:nsh_path_hdr_to_si Unexecuted instantiation: tc.c:nsh_path_hdr_to_si Unexecuted instantiation: classifier.c:nsh_path_hdr_to_si Unexecuted instantiation: dp-packet-gso.c:nsh_path_hdr_to_si Unexecuted instantiation: dpif.c:nsh_path_hdr_to_si Unexecuted instantiation: meta-flow.c:nsh_path_hdr_to_si Unexecuted instantiation: netdev-offload.c:nsh_path_hdr_to_si Unexecuted instantiation: netdev-vport.c:nsh_path_hdr_to_si Unexecuted instantiation: netlink.c:nsh_path_hdr_to_si Unexecuted instantiation: nx-match.c:nsh_path_hdr_to_si Unexecuted instantiation: odp-execute.c:nsh_path_hdr_to_si Unexecuted instantiation: odp-execute-private.c:nsh_path_hdr_to_si Unexecuted instantiation: odp-util.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-actions.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-ct.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-ed-props.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-flow.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-group.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-match.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-meter.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-monitor.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-packet.c:nsh_path_hdr_to_si Unexecuted instantiation: ofp-parse.c:nsh_path_hdr_to_si Unexecuted instantiation: stream.c:nsh_path_hdr_to_si Unexecuted instantiation: tnl-neigh-cache.c:nsh_path_hdr_to_si Unexecuted instantiation: netdev-native-tnl.c:nsh_path_hdr_to_si Unexecuted instantiation: stream-unix.c:nsh_path_hdr_to_si Unexecuted instantiation: dpif-netlink.c:nsh_path_hdr_to_si Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_path_hdr_to_si Unexecuted instantiation: netlink-conntrack.c:nsh_path_hdr_to_si Unexecuted instantiation: stream-ssl.c:nsh_path_hdr_to_si Unexecuted instantiation: bundle.c:nsh_path_hdr_to_si Unexecuted instantiation: conntrack.c:nsh_path_hdr_to_si Unexecuted instantiation: ct-dpif.c:nsh_path_hdr_to_si Unexecuted instantiation: dpctl.c:nsh_path_hdr_to_si Unexecuted instantiation: dpif-netdev.c:nsh_path_hdr_to_si Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_path_hdr_to_si Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_path_hdr_to_si Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_path_hdr_to_si Unexecuted instantiation: ipf.c:nsh_path_hdr_to_si Unexecuted instantiation: learn.c:nsh_path_hdr_to_si Unexecuted instantiation: multipath.c:nsh_path_hdr_to_si Unexecuted instantiation: stream-tcp.c:nsh_path_hdr_to_si Unexecuted instantiation: conntrack-icmp.c:nsh_path_hdr_to_si Unexecuted instantiation: conntrack-tcp.c:nsh_path_hdr_to_si Unexecuted instantiation: conntrack-tp.c:nsh_path_hdr_to_si Unexecuted instantiation: conntrack-other.c:nsh_path_hdr_to_si Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_path_hdr_to_si Unexecuted instantiation: dpif-netdev-lookup.c:nsh_path_hdr_to_si Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_path_hdr_to_si Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_path_hdr_to_si |
362 | | |
363 | | static inline ovs_be32 |
364 | | nsh_spi_si_to_path_hdr(uint32_t spi, uint8_t si) |
365 | 0 | { |
366 | 0 | return htonl((spi << NSH_SPI_SHIFT) | si); |
367 | 0 | } Unexecuted instantiation: miniflow_target.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dp-packet.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: flow.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: match.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: netdev.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-port.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-print.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-queue.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-table.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-util.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ovs-router.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: packets.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: smap.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: socket-util.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: tnl-ports.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: tun-metadata.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: netdev-linux.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: netdev-offload-tc.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: rtnetlink.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: route-table.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: tc.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: classifier.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dp-packet-gso.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dpif.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: meta-flow.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: netdev-offload.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: netdev-vport.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: netlink.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: nx-match.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: odp-execute.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: odp-execute-private.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: odp-util.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-actions.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-ct.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-ed-props.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-flow.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-group.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-match.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-meter.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-monitor.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-packet.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ofp-parse.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: stream.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: tnl-neigh-cache.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: netdev-native-tnl.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: stream-unix.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dpif-netlink.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: netlink-conntrack.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: stream-ssl.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: bundle.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: conntrack.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ct-dpif.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dpctl.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dpif-netdev.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: ipf.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: learn.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: multipath.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: stream-tcp.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: conntrack-icmp.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: conntrack-tcp.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: conntrack-tp.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: conntrack-other.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dpif-netdev-lookup.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_spi_si_to_path_hdr Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_spi_si_to_path_hdr |
368 | | |
369 | | static inline void |
370 | | nsh_set_flags_and_ttl(struct nsh_hdr *nsh, uint8_t flags, uint8_t ttl) |
371 | 0 | { |
372 | 0 | uint32_t hv = ntohs(nsh->ver_flags_ttl_len); |
373 | 0 | nsh->ver_flags_ttl_len |
374 | 0 | = htons((hv |
375 | 0 | & ~(NSH_FLAGS_MASK | NSH_TTL_MASK)) |
376 | 0 | | ((flags << NSH_FLAGS_SHIFT)& NSH_FLAGS_MASK) |
377 | 0 | | ((ttl << NSH_TTL_SHIFT) & NSH_TTL_MASK)); |
378 | 0 | } Unexecuted instantiation: miniflow_target.c:nsh_set_flags_and_ttl Unexecuted instantiation: dp-packet.c:nsh_set_flags_and_ttl Unexecuted instantiation: flow.c:nsh_set_flags_and_ttl Unexecuted instantiation: match.c:nsh_set_flags_and_ttl Unexecuted instantiation: netdev.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-port.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-print.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-queue.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-table.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-util.c:nsh_set_flags_and_ttl Unexecuted instantiation: ovs-router.c:nsh_set_flags_and_ttl Unexecuted instantiation: packets.c:nsh_set_flags_and_ttl Unexecuted instantiation: smap.c:nsh_set_flags_and_ttl Unexecuted instantiation: socket-util.c:nsh_set_flags_and_ttl Unexecuted instantiation: tnl-ports.c:nsh_set_flags_and_ttl Unexecuted instantiation: tun-metadata.c:nsh_set_flags_and_ttl Unexecuted instantiation: netdev-linux.c:nsh_set_flags_and_ttl Unexecuted instantiation: netdev-offload-tc.c:nsh_set_flags_and_ttl Unexecuted instantiation: rtnetlink.c:nsh_set_flags_and_ttl Unexecuted instantiation: route-table.c:nsh_set_flags_and_ttl Unexecuted instantiation: tc.c:nsh_set_flags_and_ttl Unexecuted instantiation: classifier.c:nsh_set_flags_and_ttl Unexecuted instantiation: dp-packet-gso.c:nsh_set_flags_and_ttl Unexecuted instantiation: dpif.c:nsh_set_flags_and_ttl Unexecuted instantiation: meta-flow.c:nsh_set_flags_and_ttl Unexecuted instantiation: netdev-offload.c:nsh_set_flags_and_ttl Unexecuted instantiation: netdev-vport.c:nsh_set_flags_and_ttl Unexecuted instantiation: netlink.c:nsh_set_flags_and_ttl Unexecuted instantiation: nx-match.c:nsh_set_flags_and_ttl Unexecuted instantiation: odp-execute.c:nsh_set_flags_and_ttl Unexecuted instantiation: odp-execute-private.c:nsh_set_flags_and_ttl Unexecuted instantiation: odp-util.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-actions.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-ct.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-ed-props.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-flow.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-group.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-match.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-meter.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-monitor.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-packet.c:nsh_set_flags_and_ttl Unexecuted instantiation: ofp-parse.c:nsh_set_flags_and_ttl Unexecuted instantiation: stream.c:nsh_set_flags_and_ttl Unexecuted instantiation: tnl-neigh-cache.c:nsh_set_flags_and_ttl Unexecuted instantiation: netdev-native-tnl.c:nsh_set_flags_and_ttl Unexecuted instantiation: stream-unix.c:nsh_set_flags_and_ttl Unexecuted instantiation: dpif-netlink.c:nsh_set_flags_and_ttl Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_set_flags_and_ttl Unexecuted instantiation: netlink-conntrack.c:nsh_set_flags_and_ttl Unexecuted instantiation: stream-ssl.c:nsh_set_flags_and_ttl Unexecuted instantiation: bundle.c:nsh_set_flags_and_ttl Unexecuted instantiation: conntrack.c:nsh_set_flags_and_ttl Unexecuted instantiation: ct-dpif.c:nsh_set_flags_and_ttl Unexecuted instantiation: dpctl.c:nsh_set_flags_and_ttl Unexecuted instantiation: dpif-netdev.c:nsh_set_flags_and_ttl Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_set_flags_and_ttl Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_set_flags_and_ttl Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_set_flags_and_ttl Unexecuted instantiation: ipf.c:nsh_set_flags_and_ttl Unexecuted instantiation: learn.c:nsh_set_flags_and_ttl Unexecuted instantiation: multipath.c:nsh_set_flags_and_ttl Unexecuted instantiation: stream-tcp.c:nsh_set_flags_and_ttl Unexecuted instantiation: conntrack-icmp.c:nsh_set_flags_and_ttl Unexecuted instantiation: conntrack-tcp.c:nsh_set_flags_and_ttl Unexecuted instantiation: conntrack-tp.c:nsh_set_flags_and_ttl Unexecuted instantiation: conntrack-other.c:nsh_set_flags_and_ttl Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_set_flags_and_ttl Unexecuted instantiation: dpif-netdev-lookup.c:nsh_set_flags_and_ttl Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_set_flags_and_ttl Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_set_flags_and_ttl |
379 | | |
380 | | static inline void |
381 | | nsh_set_flags_ttl_len(struct nsh_hdr *nsh, uint8_t flags, uint8_t ttl, |
382 | | uint16_t len) |
383 | 0 | { |
384 | 0 | uint32_t hv = ntohs(nsh->ver_flags_ttl_len); |
385 | 0 | nsh->ver_flags_ttl_len |
386 | 0 | = htons((hv |
387 | 0 | & ~(NSH_FLAGS_MASK | NSH_TTL_MASK | NSH_LEN_MASK)) |
388 | 0 | | ((flags << NSH_FLAGS_SHIFT)& NSH_FLAGS_MASK) |
389 | 0 | | ((ttl << NSH_TTL_SHIFT) & NSH_TTL_MASK) |
390 | 0 | | (((len >> 2) << NSH_LEN_SHIFT) & NSH_LEN_MASK)); |
391 | 0 | } Unexecuted instantiation: miniflow_target.c:nsh_set_flags_ttl_len Unexecuted instantiation: dp-packet.c:nsh_set_flags_ttl_len Unexecuted instantiation: flow.c:nsh_set_flags_ttl_len Unexecuted instantiation: match.c:nsh_set_flags_ttl_len Unexecuted instantiation: netdev.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-port.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-print.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-queue.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-table.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-util.c:nsh_set_flags_ttl_len Unexecuted instantiation: ovs-router.c:nsh_set_flags_ttl_len Unexecuted instantiation: packets.c:nsh_set_flags_ttl_len Unexecuted instantiation: smap.c:nsh_set_flags_ttl_len Unexecuted instantiation: socket-util.c:nsh_set_flags_ttl_len Unexecuted instantiation: tnl-ports.c:nsh_set_flags_ttl_len Unexecuted instantiation: tun-metadata.c:nsh_set_flags_ttl_len Unexecuted instantiation: netdev-linux.c:nsh_set_flags_ttl_len Unexecuted instantiation: netdev-offload-tc.c:nsh_set_flags_ttl_len Unexecuted instantiation: rtnetlink.c:nsh_set_flags_ttl_len Unexecuted instantiation: route-table.c:nsh_set_flags_ttl_len Unexecuted instantiation: tc.c:nsh_set_flags_ttl_len Unexecuted instantiation: classifier.c:nsh_set_flags_ttl_len Unexecuted instantiation: dp-packet-gso.c:nsh_set_flags_ttl_len Unexecuted instantiation: dpif.c:nsh_set_flags_ttl_len Unexecuted instantiation: meta-flow.c:nsh_set_flags_ttl_len Unexecuted instantiation: netdev-offload.c:nsh_set_flags_ttl_len Unexecuted instantiation: netdev-vport.c:nsh_set_flags_ttl_len Unexecuted instantiation: netlink.c:nsh_set_flags_ttl_len Unexecuted instantiation: nx-match.c:nsh_set_flags_ttl_len Unexecuted instantiation: odp-execute.c:nsh_set_flags_ttl_len Unexecuted instantiation: odp-execute-private.c:nsh_set_flags_ttl_len Unexecuted instantiation: odp-util.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-actions.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-ct.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-ed-props.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-flow.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-group.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-match.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-meter.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-monitor.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-packet.c:nsh_set_flags_ttl_len Unexecuted instantiation: ofp-parse.c:nsh_set_flags_ttl_len Unexecuted instantiation: stream.c:nsh_set_flags_ttl_len Unexecuted instantiation: tnl-neigh-cache.c:nsh_set_flags_ttl_len Unexecuted instantiation: netdev-native-tnl.c:nsh_set_flags_ttl_len Unexecuted instantiation: stream-unix.c:nsh_set_flags_ttl_len Unexecuted instantiation: dpif-netlink.c:nsh_set_flags_ttl_len Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_set_flags_ttl_len Unexecuted instantiation: netlink-conntrack.c:nsh_set_flags_ttl_len Unexecuted instantiation: stream-ssl.c:nsh_set_flags_ttl_len Unexecuted instantiation: bundle.c:nsh_set_flags_ttl_len Unexecuted instantiation: conntrack.c:nsh_set_flags_ttl_len Unexecuted instantiation: ct-dpif.c:nsh_set_flags_ttl_len Unexecuted instantiation: dpctl.c:nsh_set_flags_ttl_len Unexecuted instantiation: dpif-netdev.c:nsh_set_flags_ttl_len Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_set_flags_ttl_len Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_set_flags_ttl_len Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_set_flags_ttl_len Unexecuted instantiation: ipf.c:nsh_set_flags_ttl_len Unexecuted instantiation: learn.c:nsh_set_flags_ttl_len Unexecuted instantiation: multipath.c:nsh_set_flags_ttl_len Unexecuted instantiation: stream-tcp.c:nsh_set_flags_ttl_len Unexecuted instantiation: conntrack-icmp.c:nsh_set_flags_ttl_len Unexecuted instantiation: conntrack-tcp.c:nsh_set_flags_ttl_len Unexecuted instantiation: conntrack-tp.c:nsh_set_flags_ttl_len Unexecuted instantiation: conntrack-other.c:nsh_set_flags_ttl_len Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_set_flags_ttl_len Unexecuted instantiation: dpif-netdev-lookup.c:nsh_set_flags_ttl_len Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_set_flags_ttl_len Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_set_flags_ttl_len |
392 | | |
393 | | static inline void |
394 | | nsh_path_hdr_set_spi(ovs_be32 *path_hdr, ovs_be32 spi) |
395 | 0 | { |
396 | 0 | uint32_t hvph = ntohl(*path_hdr); |
397 | 0 | uint32_t hvspi = ntohl(spi); |
398 | 0 | *path_hdr = htonl(( hvph & ~NSH_SPI_MASK) | |
399 | 0 | ((hvspi << NSH_SPI_SHIFT) & NSH_SPI_MASK)); |
400 | 0 | } Unexecuted instantiation: miniflow_target.c:nsh_path_hdr_set_spi Unexecuted instantiation: dp-packet.c:nsh_path_hdr_set_spi Unexecuted instantiation: flow.c:nsh_path_hdr_set_spi Unexecuted instantiation: match.c:nsh_path_hdr_set_spi Unexecuted instantiation: netdev.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-port.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-print.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-queue.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-table.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-util.c:nsh_path_hdr_set_spi Unexecuted instantiation: ovs-router.c:nsh_path_hdr_set_spi Unexecuted instantiation: packets.c:nsh_path_hdr_set_spi Unexecuted instantiation: smap.c:nsh_path_hdr_set_spi Unexecuted instantiation: socket-util.c:nsh_path_hdr_set_spi Unexecuted instantiation: tnl-ports.c:nsh_path_hdr_set_spi Unexecuted instantiation: tun-metadata.c:nsh_path_hdr_set_spi Unexecuted instantiation: netdev-linux.c:nsh_path_hdr_set_spi Unexecuted instantiation: netdev-offload-tc.c:nsh_path_hdr_set_spi Unexecuted instantiation: rtnetlink.c:nsh_path_hdr_set_spi Unexecuted instantiation: route-table.c:nsh_path_hdr_set_spi Unexecuted instantiation: tc.c:nsh_path_hdr_set_spi Unexecuted instantiation: classifier.c:nsh_path_hdr_set_spi Unexecuted instantiation: dp-packet-gso.c:nsh_path_hdr_set_spi Unexecuted instantiation: dpif.c:nsh_path_hdr_set_spi Unexecuted instantiation: meta-flow.c:nsh_path_hdr_set_spi Unexecuted instantiation: netdev-offload.c:nsh_path_hdr_set_spi Unexecuted instantiation: netdev-vport.c:nsh_path_hdr_set_spi Unexecuted instantiation: netlink.c:nsh_path_hdr_set_spi Unexecuted instantiation: nx-match.c:nsh_path_hdr_set_spi Unexecuted instantiation: odp-execute.c:nsh_path_hdr_set_spi Unexecuted instantiation: odp-execute-private.c:nsh_path_hdr_set_spi Unexecuted instantiation: odp-util.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-actions.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-ct.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-ed-props.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-flow.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-group.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-match.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-meter.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-monitor.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-packet.c:nsh_path_hdr_set_spi Unexecuted instantiation: ofp-parse.c:nsh_path_hdr_set_spi Unexecuted instantiation: stream.c:nsh_path_hdr_set_spi Unexecuted instantiation: tnl-neigh-cache.c:nsh_path_hdr_set_spi Unexecuted instantiation: netdev-native-tnl.c:nsh_path_hdr_set_spi Unexecuted instantiation: stream-unix.c:nsh_path_hdr_set_spi Unexecuted instantiation: dpif-netlink.c:nsh_path_hdr_set_spi Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_path_hdr_set_spi Unexecuted instantiation: netlink-conntrack.c:nsh_path_hdr_set_spi Unexecuted instantiation: stream-ssl.c:nsh_path_hdr_set_spi Unexecuted instantiation: bundle.c:nsh_path_hdr_set_spi Unexecuted instantiation: conntrack.c:nsh_path_hdr_set_spi Unexecuted instantiation: ct-dpif.c:nsh_path_hdr_set_spi Unexecuted instantiation: dpctl.c:nsh_path_hdr_set_spi Unexecuted instantiation: dpif-netdev.c:nsh_path_hdr_set_spi Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_path_hdr_set_spi Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_path_hdr_set_spi Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_path_hdr_set_spi Unexecuted instantiation: ipf.c:nsh_path_hdr_set_spi Unexecuted instantiation: learn.c:nsh_path_hdr_set_spi Unexecuted instantiation: multipath.c:nsh_path_hdr_set_spi Unexecuted instantiation: stream-tcp.c:nsh_path_hdr_set_spi Unexecuted instantiation: conntrack-icmp.c:nsh_path_hdr_set_spi Unexecuted instantiation: conntrack-tcp.c:nsh_path_hdr_set_spi Unexecuted instantiation: conntrack-tp.c:nsh_path_hdr_set_spi Unexecuted instantiation: conntrack-other.c:nsh_path_hdr_set_spi Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_path_hdr_set_spi Unexecuted instantiation: dpif-netdev-lookup.c:nsh_path_hdr_set_spi Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_path_hdr_set_spi Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_path_hdr_set_spi |
401 | | |
402 | | static inline void |
403 | | nsh_path_hdr_set_si(ovs_be32 *path_hdr, uint8_t si) |
404 | 0 | { |
405 | 0 | uint32_t hvph = ntohl(*path_hdr); |
406 | | *path_hdr = htonl((hvph & ~NSH_SI_MASK) | |
407 | 0 | ((si << NSH_SI_SHIFT) & NSH_SI_MASK)); |
408 | 0 | } Unexecuted instantiation: miniflow_target.c:nsh_path_hdr_set_si Unexecuted instantiation: dp-packet.c:nsh_path_hdr_set_si Unexecuted instantiation: flow.c:nsh_path_hdr_set_si Unexecuted instantiation: match.c:nsh_path_hdr_set_si Unexecuted instantiation: netdev.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-port.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-print.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-queue.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-table.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-util.c:nsh_path_hdr_set_si Unexecuted instantiation: ovs-router.c:nsh_path_hdr_set_si Unexecuted instantiation: packets.c:nsh_path_hdr_set_si Unexecuted instantiation: smap.c:nsh_path_hdr_set_si Unexecuted instantiation: socket-util.c:nsh_path_hdr_set_si Unexecuted instantiation: tnl-ports.c:nsh_path_hdr_set_si Unexecuted instantiation: tun-metadata.c:nsh_path_hdr_set_si Unexecuted instantiation: netdev-linux.c:nsh_path_hdr_set_si Unexecuted instantiation: netdev-offload-tc.c:nsh_path_hdr_set_si Unexecuted instantiation: rtnetlink.c:nsh_path_hdr_set_si Unexecuted instantiation: route-table.c:nsh_path_hdr_set_si Unexecuted instantiation: tc.c:nsh_path_hdr_set_si Unexecuted instantiation: classifier.c:nsh_path_hdr_set_si Unexecuted instantiation: dp-packet-gso.c:nsh_path_hdr_set_si Unexecuted instantiation: dpif.c:nsh_path_hdr_set_si Unexecuted instantiation: meta-flow.c:nsh_path_hdr_set_si Unexecuted instantiation: netdev-offload.c:nsh_path_hdr_set_si Unexecuted instantiation: netdev-vport.c:nsh_path_hdr_set_si Unexecuted instantiation: netlink.c:nsh_path_hdr_set_si Unexecuted instantiation: nx-match.c:nsh_path_hdr_set_si Unexecuted instantiation: odp-execute.c:nsh_path_hdr_set_si Unexecuted instantiation: odp-execute-private.c:nsh_path_hdr_set_si Unexecuted instantiation: odp-util.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-actions.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-ct.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-ed-props.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-flow.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-group.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-match.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-meter.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-monitor.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-packet.c:nsh_path_hdr_set_si Unexecuted instantiation: ofp-parse.c:nsh_path_hdr_set_si Unexecuted instantiation: stream.c:nsh_path_hdr_set_si Unexecuted instantiation: tnl-neigh-cache.c:nsh_path_hdr_set_si Unexecuted instantiation: netdev-native-tnl.c:nsh_path_hdr_set_si Unexecuted instantiation: stream-unix.c:nsh_path_hdr_set_si Unexecuted instantiation: dpif-netlink.c:nsh_path_hdr_set_si Unexecuted instantiation: dpif-netlink-rtnl.c:nsh_path_hdr_set_si Unexecuted instantiation: netlink-conntrack.c:nsh_path_hdr_set_si Unexecuted instantiation: stream-ssl.c:nsh_path_hdr_set_si Unexecuted instantiation: bundle.c:nsh_path_hdr_set_si Unexecuted instantiation: conntrack.c:nsh_path_hdr_set_si Unexecuted instantiation: ct-dpif.c:nsh_path_hdr_set_si Unexecuted instantiation: dpctl.c:nsh_path_hdr_set_si Unexecuted instantiation: dpif-netdev.c:nsh_path_hdr_set_si Unexecuted instantiation: dpif-netdev-private-dfc.c:nsh_path_hdr_set_si Unexecuted instantiation: dpif-netdev-private-dpif.c:nsh_path_hdr_set_si Unexecuted instantiation: dpif-netdev-private-extract.c:nsh_path_hdr_set_si Unexecuted instantiation: ipf.c:nsh_path_hdr_set_si Unexecuted instantiation: learn.c:nsh_path_hdr_set_si Unexecuted instantiation: multipath.c:nsh_path_hdr_set_si Unexecuted instantiation: stream-tcp.c:nsh_path_hdr_set_si Unexecuted instantiation: conntrack-icmp.c:nsh_path_hdr_set_si Unexecuted instantiation: conntrack-tcp.c:nsh_path_hdr_set_si Unexecuted instantiation: conntrack-tp.c:nsh_path_hdr_set_si Unexecuted instantiation: conntrack-other.c:nsh_path_hdr_set_si Unexecuted instantiation: dpif-netdev-extract-study.c:nsh_path_hdr_set_si Unexecuted instantiation: dpif-netdev-lookup.c:nsh_path_hdr_set_si Unexecuted instantiation: dpif-netdev-lookup-autovalidator.c:nsh_path_hdr_set_si Unexecuted instantiation: dpif-netdev-lookup-generic.c:nsh_path_hdr_set_si |
409 | | |
410 | | #ifdef __cplusplus |
411 | | } |
412 | | #endif |
413 | | |
414 | | #endif |