mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
odp-util: Always serialize tunnel mask attributes.
A tunnel value attribute is not allowed to have an empty IP destination address but this is legal for masks. This drops both the checks for serializing masks and also the sanity checks on them. Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com>
This commit is contained in:
@@ -2338,7 +2338,7 @@ odp_flow_key_from_flow__(struct ofpbuf *buf, const struct flow *data,
|
||||
nl_msg_put_u32(buf, OVS_KEY_ATTR_PRIORITY, data->skb_priority);
|
||||
}
|
||||
|
||||
if (flow->tunnel.ip_dst) {
|
||||
if (flow->tunnel.ip_dst || is_mask) {
|
||||
tun_key_to_attr(buf, &data->tunnel);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user