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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user