mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
util: Pass 128-bit arguments directly instead of using pointers.
Commit f2d105b5 (ofproto-dpif-xlate: xlate ct_{mark, label} correctly.)
introduced the ovs_u128_and() function. It directly takes ovs_u128
values as arguments instead of pointers to them. As this is a bit more
direct way to deal with 128-bit values, modify the other utility
functions to do the same.
Signed-off-by: Justin Pettit <jpettit@ovn.org>
Acked-by: Joe Stringer <joe@ovn.org>
This commit is contained in:
@@ -232,7 +232,7 @@ mf_is_all_wild(const struct mf_field *mf, const struct flow_wildcards *wc)
|
||||
case MFF_CT_MARK:
|
||||
return !wc->masks.ct_mark;
|
||||
case MFF_CT_LABEL:
|
||||
return ovs_u128_is_zero(&wc->masks.ct_label);
|
||||
return ovs_u128_is_zero(wc->masks.ct_label);
|
||||
CASE_MFF_REGS:
|
||||
return !wc->masks.regs[mf->id - MFF_REG0];
|
||||
CASE_MFF_XREGS:
|
||||
|
||||
Reference in New Issue
Block a user