2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

lib: Use tcp_flags from flow.

TCP flags are already extracted from the flow, no need to parse them
again.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Jarno Rajahalme
2014-03-19 16:13:32 -07:00
parent 855dd13c9a
commit e0eecb1ca1
4 changed files with 5 additions and 7 deletions

View File

@@ -1713,7 +1713,7 @@ dp_netdev_flow_used(struct dp_netdev_flow *netdev_flow,
const struct ofpbuf *packet,
const struct flow *key)
{
uint16_t tcp_flags = packet_get_tcp_flags(packet, key);
uint16_t tcp_flags = ntohs(key->tcp_flags);
long long int now = time_msec();
struct dp_netdev_flow_stats *bucket;