Opens a new window with list of versions in this module.
Published: Sep 11, 2023
Opens a new window with license information.
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Package cookie implements a cookie allocator.
The preallocated cookies are used to classify flows in the vSwitch, which simplifies management of these flows.
CookieMaskForRound returns a cookie and mask value that can be used to select
all flows belonging to the provided round.
Allocator defines operations of a cookie ID allocator.
NewAllocator creates a cookie ID allocator by using the given round number.
Only last 16 bits of the round number would be used.
Category represents the flow entry category.
Default Category = iota
ID defines segments a cookie ID contains. An ID is composed like:
|------------------------- ID --------------------------|
|- round 16bits -|- category 8bits -|- reserved 8bits -|- objectID 32bits -|
The round segment represents the round id.
The category segment represents the category of flow this ID belongs.
Category returns the category of the ID.
Raw returns the unit64 type value of the ID.
Round returns the round number of the ID.
String returns the string representation of the ID.
Click to show internal directories.
Click to hide internal directories.