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>
This commit is contained in:
committed by
Jesse Gross
parent
3cdb35b074
commit
df23e9f642
@ -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 &&
|
||||
|
Reference in New Issue
Block a user