diff options
author | Jarno Rajahalme <jrajahalme@nicira.com> | 2015-09-29 14:21:33 -0700 |
---|---|---|
committer | Jarno Rajahalme <jrajahalme@nicira.com> | 2015-09-29 14:21:33 -0700 |
commit | 6448a693fc66cd466249a323d903d77b1f279085 (patch) | |
tree | d34ca5a53710bb3f668aa9ba282feb001963e12c /lib/tnl-ports.c | |
parent | 6375650aa2b77887e6174a477e0716448096a759 (diff) | |
download | openvswitch-6448a693fc66cd466249a323d903d77b1f279085.tar.gz |
ofproto-dpif-upcall: Use flow_wildcards_has_extra().
Update the comment in ukey_revalidate() to reflect the fact that the
mask in ukey is not the datapath mask, but the originally translated
flow wildcards.
Use flow_wildcards_has_extra() instead of open coding equivalent (but
different) functionality. The old form and the code in
flow_wildcards_has_extra() ((dp | wc != dp) and (dp & wc != wc),
respecively) give the same result:
dp wc (dp | wc != dp) (dp & wc != wc)
-------------------------------------------------------
0 0 (0 | 0 != 0) (false) (0 & 0 != 0) (false)
0 1 (0 | 1 != 0) (true) (0 & 1 != 1) (true)
1 0 (1 | 0 != 1) (false) (1 & 0 != 0) (false)
1 1 (1 | 1 != 1) (false) (1 & 1 != 1) (false)
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/tnl-ports.c')
0 files changed, 0 insertions, 0 deletions