[ovs-git] [openvswitch/ovs] 7827ed: Add dl_type to flow metadata for correct interpret...
GitHub
noreply at github.com
Thu Oct 26 17:20:05 UTC 2017
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 7827edcaebd8a2098ea8b5165130eb9aa7a1d674
https://github.com/openvswitch/ovs/commit/7827edcaebd8a2098ea8b5165130eb9aa7a1d674
Author: Daniel Alvarez <dalvarez at redhat.com>
Date: 2017-10-26 (Thu, 26 Oct 2017)
Changed paths:
M lib/flow.c
M tests/ofproto-dpif.at
Log Message:
-----------
Add dl_type to flow metadata for correct interpretation of conntrack metadata
When a packet is sent to the controller, dl_type is not stored in the
'ofputil_packet_in_private'. When the packet is resumed, the flow's
dl_type is 0 and this leads to invalid value in ct_orig_tuple in the
pkt_metadata.
This patch adds the dl_type to the metadata so that conntrack
information can be interpreted correctly when packets are resumed.
This is a change from the ordinary practice, since flow_get_metadata() is
only supposed to deal with metadata and dl_type is not metadata. It is
necessary when ct_state is involved, though, because ct_state only applies
in the case of particular Ethertypes (IPv4 and IPv6 currently), so we need
to add it as a kind of prerequisite. (This isn't ideal; maybe we didn't
think through the ct_state mechanism carefully enough.)
Reported-by: Daniel Alvarez Sanchez <dalvarez at redhat.com>
Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2017-October/339868.html
Signed-off-by: Daniel Alvarez <dalvarez at redhat.com>
Signed-off-by: Numan Siddique <nusiddiq at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
More information about the git
mailing list