diff options
author | Justin Pettit <jpettit@nicira.com> | 2013-06-13 16:46:33 -0700 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2013-06-13 17:06:00 -0700 |
commit | d4f4a9b25251d8279f5287142bc84f637101ee77 (patch) | |
tree | 14bfae5977f36cb326095307ae44721172fcaae8 /ofproto/tunnel.h | |
parent | 32383c3bd064fb87ec2b366569ba1185698c2e6d (diff) | |
download | openvswitch-d4f4a9b25251d8279f5287142bc84f637101ee77.tar.gz |
tunnel: Don't wildcard TTL and TOS in some circumstances.
For tunnels, we need to handle the facet's wildcards specially in a
couple of cases:
- Don't wildcard TTL for facets if "ttl" option is "inherit".
- Never wildcard the ECN bits, since they are always inherited.
- Wildcard the rest of the TOS field if the "tos" option is "inherit".
Issue #17911
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Diffstat (limited to 'ofproto/tunnel.h')
-rw-r--r-- | ofproto/tunnel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ofproto/tunnel.h b/ofproto/tunnel.h index 34c113368..803e2d94d 100644 --- a/ofproto/tunnel.h +++ b/ofproto/tunnel.h @@ -38,7 +38,8 @@ struct tnl_port *tnl_port_add(const struct ofport *, uint32_t odp_port); void tnl_port_del(struct tnl_port *); const struct ofport *tnl_port_receive(const struct flow *); -uint32_t tnl_port_send(const struct tnl_port *, struct flow *); +uint32_t tnl_port_send(const struct tnl_port *, struct flow *, + struct flow_wildcards *wc); /* Returns true if 'flow' should be submitted to tnl_port_receive(). */ static inline bool |