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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user