Skip to content

Commit

Permalink
Add bulk api
Browse files Browse the repository at this point in the history
Signed-off-by: Ze Gan <[email protected]>
  • Loading branch information
Pterosaur committed Nov 27, 2024
1 parent 5160f2d commit 0058ec6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/TAM/SAI-Proposal-TAM-stream-telemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,9 @@ attr_count = 5;

create_tam_counter_subscription(&sai_tam_counter_subscription_obj, switch_id, attr_count, sai_attr_lis);
// If this stats of object cannot support this poll frequency, this API should return SAI_STATUS_NOT_SUPPORTED.

// Recommend to use bulk APIs to create/remove the object of tam counter subscription.

```
#### Creating TAM object
Expand Down
2 changes: 2 additions & 0 deletions inc/saitam.h
Original file line number Diff line number Diff line change
Expand Up @@ -2468,6 +2468,8 @@ typedef struct _sai_tam_api_t
sai_remove_tam_counter_subscription_fn remove_tam_counter_subscription;
sai_set_tam_counter_subscription_attribute_fn set_tam_counter_subscription_attribute;
sai_get_tam_counter_subscription_attribute_fn get_tam_counter_subscription_attribute;
sai_bulk_object_create_fn create_tam_counter_subscriptions;
sai_bulk_object_remove_fn remove_tam_counter_subscriptions;
} sai_tam_api_t;

/**
Expand Down

0 comments on commit 0058ec6

Please sign in to comment.