mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
meta-flow: Add 64-bit registers.
These 64-bit registers are intended to conform with the OpenFlow 1.5 draft specification. EXT-244. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
This commit is contained in:
@@ -898,6 +898,14 @@ flow_wildcards_set_reg_mask(struct flow_wildcards *wc, int idx, uint32_t mask)
|
||||
wc->masks.regs[idx] = mask;
|
||||
}
|
||||
|
||||
/* Sets the wildcard mask for register 'idx' in 'wc' to 'mask'.
|
||||
* (A 0-bit indicates a wildcard bit.) */
|
||||
void
|
||||
flow_wildcards_set_xreg_mask(struct flow_wildcards *wc, int idx, uint64_t mask)
|
||||
{
|
||||
flow_set_xreg(&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