Commit 8f262b4
Shrikrishna (Shri) Khare
Bulk get/set for switches
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 <skhare@meta.com>1 parent 754ca66 commit 8f262b4
2 files changed
+27
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4061 | 4061 | | |
4062 | 4062 | | |
4063 | 4063 | | |
| 4064 | + | |
| 4065 | + | |
4064 | 4066 | | |
4065 | 4067 | | |
4066 | 4068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1767 | 1767 | | |
1768 | 1768 | | |
1769 | 1769 | | |
1770 | | - | |
| 1770 | + | |
1771 | 1771 | | |
1772 | 1772 | | |
1773 | 1773 | | |
| |||
1787 | 1787 | | |
1788 | 1788 | | |
1789 | 1789 | | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
1790 | 1814 | | |
1791 | 1815 | | |
1792 | 1816 | | |
| |||
0 commit comments