mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +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:
@@ -1819,7 +1819,7 @@ dp_netdev_pmd_find_flow(const struct dp_netdev_pmd_thread *pmd,
|
||||
if (ufidp) {
|
||||
CMAP_FOR_EACH_WITH_HASH (netdev_flow, node, dp_netdev_flow_hash(ufidp),
|
||||
&pmd->flow_table) {
|
||||
if (ovs_u128_equals(&netdev_flow->ufid, ufidp)) {
|
||||
if (ovs_u128_equals(netdev_flow->ufid, *ufidp)) {
|
||||
return netdev_flow;
|
||||
}
|
||||
}
|
||||
@@ -1965,7 +1965,7 @@ dpif_netdev_flow_from_nlattrs(const struct nlattr *key, uint32_t key_len,
|
||||
|
||||
/* Userspace datapath doesn't support conntrack. */
|
||||
if (flow->ct_state || flow->ct_zone || flow->ct_mark
|
||||
|| !ovs_u128_is_zero(&flow->ct_label)) {
|
||||
|| !ovs_u128_is_zero(flow->ct_label)) {
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user