mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
Introduce 128-bit xxregs.
These are needed to handle IPv6 addresses. Signed-off-by: Justin Pettit <jpettit@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -1578,6 +1578,15 @@ flow_wildcards_set_xreg_mask(struct flow_wildcards *wc, int idx, uint64_t mask)
|
||||
flow_set_xreg(&wc->masks, idx, mask);
|
||||
}
|
||||
|
||||
/* Sets the wildcard mask for register 'idx' in 'wc' to 'mask'.
|
||||
* (A 0-bit indicates a wildcard bit.) */
|
||||
void
|
||||
flow_wildcards_set_xxreg_mask(struct flow_wildcards *wc, int idx,
|
||||
ovs_u128 mask)
|
||||
{
|
||||
flow_set_xxreg(&wc->masks, idx, mask);
|
||||
}
|
||||
|
||||
/* Calculates the 5-tuple hash from the given miniflow.
|
||||
* This returns the same value as flow_hash_5tuple for the corresponding
|
||||
* flow. */
|
||||
|
Reference in New Issue
Block a user