Commit Graph

2 Commits

Author SHA1 Message Date
Dmitry Vyukov
2d0ec24625 sys/linux: improve team descriptions
1. Create ifindex_team, because TEAM_ATTR_TEAM_IFINDEX must
   always point to a team device.

2. Remove output only attributes like team_attr_item_port, TEAM_ATTR_LIST_PORT,
   TEAM_ATTR_OPTION_CHANGED.

3. Restructure team_nl_option_policy: we always want TEAM_ATTR_OPTION_NAME/TYPE/DATA
   + optionally TEAM_ATTR_OPTION_ARRAY_INDEX and TEAM_ATTR_OPTION_PORT_IFINDEX.

4. Provide specialized team_nl_option_policy_per_port and team_nl_option_policy_array.

5. Make team_attr_option varlen.

6. Remove unnecessary indirection via team_attr_list_option/team_attr_list_port.

7. Fix data type for bpf_hash_func and lb_tx_hash_to_port_mapping.
2018-04-06 17:29:15 +02:00
Hangbin Liu
4f1152d4db sys/linux: add netlink generic team descriptions
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
2018-04-06 11:30:36 +02:00