Flow expiry: Populate idle_timeout field of ofp_flow_expire
Copy value from the nx_flow_end struct passed into the function.
This commit is contained in:
1 parent
0947229ada
commit
11dab620bd
1 file changed
+1
@@ -207,6 +207,7 @@ send_ofp_expired(const struct nx_flow_end *nfe, const struct flow_end_data *fe)
|
||||
}
|
||||
/* 'duration' is in seconds, but we keeping track of milliseconds. */
|
||||
ofe->duration = htonl((ntohll(nfe->end_time)-ntohll(nfe->init_time))/1000);
|
||||
ofe->idle_timeout = nfe->idle_timeout;
|
||||
ofe->packet_count = nfe->packet_count;
|
||||
ofe->byte_count = nfe->byte_count;
|
||||
|
||||
|
||||
Reference in new issue
Block a user