You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refer: https://github.com/opencomputeproject/SAI/blob/master/inc/saitypes.h#L1725
sai_bulk_object_create_fn
- Accepts @param[in] attr_list List of attributes for every object.
sai_bulk_object_set_attribute_fn
- Accepts @param[in] attr_list List of attributes for every object, one per object.
sai_bulk_object_get_attribute_fn
- Accepts @param[in] attr_count List of attr_count. Caller passes the
number of attribute for each object to get.
In other words bulk set and get accept "list of attributes" for "list
of objects", while the bulk set only accepts "one attribute per object".
Thus, today, there is no mechanism to "set a list of attributes on one
or more objects". This PR addresses that. It keeps the old set method
for backward compatibility but marks ti as deprecated.
It also introduces bulk get/set for switches and leverages this new
method.
Signed-off-by: Shrikrishna (Shri) Khare <[email protected]>
0 commit comments