forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
odp-util: Correctly generate wildcards when formating nested attributes.
When formatting netlink attributes if no mask is present a wildcarded attribute is synthesized for the purposes of later processing. In the case of nested attributes this must be done recursively, filling in the correct attributes at each level rather than just generating a set of zeros of the correct size. This is done already but it always uses the attribute type for the top level keys - this corresponds to nested ENCAP attributes. However, we have several levels of potentially nested attributes for tunnels that each have their own types. This uses an approach similar to the kernel where we have sets of tables for the type of each attribute linked together by pointers. This allows the mask generation function to automatically traverse the nested attributes and always get the right types. Signed-off-by: Jesse Gross <[email protected]> Acked-by: Andy Zhou <[email protected]>
- Loading branch information
1 parent
58b1192
commit 6b8da9e
Showing
1 changed file
with
99 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters