aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/datapath.c
diff options
context:
space:
mode:
authorJarno Rajahalme <jrajahalme@nicira.com>2013-10-23 04:40:44 -0400
committerJesse Gross <jesse@nicira.com>2013-11-01 21:43:45 -0400
commitdf23e9f642830f10c505c8a3d57772ad1238c701 (patch)
tree5b20e4e91e2a66381931bf1a35e3533274f91767 /net/openvswitch/datapath.c
parent3cdb35b074142c915a463c535839886ae08fdfd4 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index 5bc5a4e64758..1408adc2a2a7 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,
671 used = flow->used; 671 used = flow->used;
672 stats.n_packets = flow->packet_count; 672 stats.n_packets = flow->packet_count;
673 stats.n_bytes = flow->byte_count; 673 stats.n_bytes = flow->byte_count;
674 tcp_flags = flow->tcp_flags; 674 tcp_flags = (u8)ntohs(flow->tcp_flags);
675 spin_unlock_bh(&flow->lock); 675 spin_unlock_bh(&flow->lock);
676 676
677 if (used && 677 if (used &&