From: Jesse Gross Date: Sat, 29 Jan 2011 17:41:59 +0000 (-0800) Subject: dpif-linux: Read flow used time. X-Git-Tag: v1.1.0~368 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9e980142f482f44020f27e5acb7c29e9a8aba9b0;p=sliver-openvswitch.git 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 --- 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; }