mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
lib/flow: Retain ODPP_NONE on flow_extract().
We used to map ODPP_NONE to port number 0, which is wrong, as ODPP_NONE is a valid value of the flow's in_port. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -393,9 +393,7 @@ flow_extract(struct ofpbuf *packet, const struct pkt_metadata *md,
|
||||
|
||||
if (md) {
|
||||
flow->tunnel = md->tunnel;
|
||||
if (md->in_port.odp_port != ODPP_NONE) {
|
||||
flow->in_port = md->in_port;
|
||||
};
|
||||
flow->in_port = md->in_port;
|
||||
flow->skb_priority = md->skb_priority;
|
||||
flow->pkt_mark = md->pkt_mark;
|
||||
}
|
||||
|
Reference in New Issue
Block a user