2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

odp-util: Fix generating ct_orig_tuple in odp_key_to_dp_packet()

Previously, odp_key_to_dp_packet() may fail to get ct_orig_tuple
from ODP flow key. This patch fixes the issue.

VMWare-BZ: #1920903
Fixes: daf4d3c18d ("odp: Support conntrack orig tuple key.")
Suggested-by: Joe Stringer <joe@ovn.org>
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Joe Stringer <joe@ovn.org>
This commit is contained in:
Yi-Hung Wei
2017-07-31 13:35:37 -07:00
committed by Joe Stringer
parent 686beac8d4
commit 7cc23d90af

View File

@@ -4854,7 +4854,8 @@ odp_key_to_dp_packet(const struct nlattr *key, size_t key_len,
1u << OVS_KEY_ATTR_IN_PORT | 1u << OVS_KEY_ATTR_ETHERTYPE |
1u << OVS_KEY_ATTR_ETHERNET | 1u << OVS_KEY_ATTR_CT_STATE |
1u << OVS_KEY_ATTR_CT_ZONE | 1u << OVS_KEY_ATTR_CT_MARK |
1u << OVS_KEY_ATTR_CT_LABELS;
1u << OVS_KEY_ATTR_CT_LABELS | 1u << OVS_KEY_ATTR_CT_ORIG_TUPLE_IPV4 |
1u << OVS_KEY_ATTR_CT_ORIG_TUPLE_IPV6;
pkt_metadata_init(md, ODPP_NONE);