diff options
author | Jarno Rajahalme <jrajahalme@nicira.com> | 2013-10-23 01:40:44 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2013-11-01 18:43:45 -0700 |
commit | df23e9f642830f10c505c8a3d57772ad1238c701 (patch) | |
tree | 5b20e4e91e2a66381931bf1a35e3533274f91767 /net/openvswitch/datapath.c | |
parent | 3cdb35b074142c915a463c535839886ae08fdfd4 (diff) | |
download | op-kernel-dev-df23e9f642830f10c505c8a3d57772ad1238c701.zip op-kernel-dev-df23e9f642830f10c505c8a3d57772ad1238c701.tar.gz |
openvswitch: Widen TCP flags handling.
Widen TCP flags handling from 7 bits (uint8_t) to 12 bits (uint16_t).
The kernel interface remains at 8 bits, which makes no functional
difference now, as none of the higher bits is currently of interest
to the userspace.
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch/datapath.c')
-rw-r--r-- | net/openvswitch/datapath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 5bc5a4e..1408adc 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c @@ -671,7 +671,7 @@ static int ovs_flow_cmd_fill_info(struct sw_flow *flow, struct datapath *dp, used = flow->used; stats.n_packets = flow->packet_count; stats.n_bytes = flow->byte_count; - tcp_flags = flow->tcp_flags; + tcp_flags = (u8)ntohs(flow->tcp_flags); spin_unlock_bh(&flow->lock); if (used && |