mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 22:35:15 +00:00
dpif-linux: Read flow used time.
We were never storing the flow used time from the Netlink message into our local struct, which caused flows to timeout prematurely. Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -1437,6 +1437,9 @@ dpif_linux_flow_from_ofpbuf(struct dpif_linux_flow *flow,
|
||||
if (a[ODP_FLOW_ATTR_TCP_FLAGS]) {
|
||||
flow->tcp_flags = nl_attr_get(a[ODP_FLOW_ATTR_TCP_FLAGS]);
|
||||
}
|
||||
if (a[ODP_FLOW_ATTR_USED]) {
|
||||
flow->used = nl_attr_get(a[ODP_FLOW_ATTR_USED]);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user