From 9e980142f482f44020f27e5acb7c29e9a8aba9b0 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Sat, 29 Jan 2011 09:41:59 -0800 Subject: [PATCH] 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 --- lib/dpif-linux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index c35ad62e6..9b84145e2 100644 --- a/lib/dpif-linux.c +++ b/lib/dpif-linux.c @@ -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; } -- 2.43.0