2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

userspace: Complete Packet In handling

Send packet_in for non-Ethernet packets.
Include packet_type in Packet In for ptap bridges.

Signed-off-by: Jan Scheurich <jan.scheurich@ericsson.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Jan Scheurich
2017-06-23 16:48:38 +00:00
committed by Ben Pfaff
parent 526cf4e1d6
commit 6a81043e1b
3 changed files with 7 additions and 9 deletions

View File

@@ -994,6 +994,10 @@ flow_get_metadata(const struct flow *flow, struct match *flow_metadata)
}
match_set_in_port(flow_metadata, flow->in_port.ofp_port);
if (flow->packet_type != htonl(PT_ETH)) {
match_set_packet_type(flow_metadata, flow->packet_type);
}
if (flow->ct_state != 0) {
match_set_ct_state(flow_metadata, flow->ct_state);
if (is_ct_valid(flow, NULL, NULL) && flow->ct_nw_proto != 0) {