2
0
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:
Jesse Gross
2011-01-29 09:41:59 -08:00
parent ec58547a81
commit 9e980142f4

View File

@@ -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;
}