Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ze Gan <ganze718@gmail.com>
  • Loading branch information
Pterosaur committed Oct 31, 2024
1 parent e77e917 commit 06a86bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions doc/TAM/SAI-Proposal-TAM-stream-telemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ struct genl_multicast_group stel_mcgrps[] = {
};

// Family definition
static struct genl_family nl_bench_family = {
static struct genl_family stel_family = {
.name = "sonic_stel",
.version = 1,
// ...
Expand All @@ -299,7 +299,7 @@ void send_msgs_to_user(/* ... */)
nla_append(skb_out, msg->data, msg->len);
}

genlmsg_multicast(&genl_family, skb_out, 0, 0/* group_id to ipfix group */, GFP_KERNEL);
genlmsg_multicast(&stel_family, skb_out, 0, 0/* group_id to ipfix group */, GFP_KERNEL);
}

```
Expand Down Expand Up @@ -443,6 +443,7 @@ typedef enum _sai_switch_attr_t
*
* If the collector isn't ready to receive the report, this value indicates how many
* reports that can be cached. 0 means no cache which is the default behavior.
* If the cache is full, new incoming data will be dropped.
*
* @type sai_uint32_t
* @flags CREATE_ONLY
Expand Down Expand Up @@ -580,7 +581,7 @@ sai_attr_list[3].id = SAI_TAM_REPORT_ATTR_TEMPLATE_REPORT_INTERVAL;
sai_attr_list[3].value.s32 = 0; // Don't push the template, Because we hope the template can be proactively queried by orchagent
sai_attr_list[4].id = SAI_TAM_REPORT_ATTR_REPORT_INTERVAL_UNIT;
sai_attr_list[4].value.s32 = SAI_TAM_REPORT_INTERVAL_UNIT_MSEC;
sai_attr_list[4].value.s32 = SAI_TAM_REPORT_INTERVAL_UNIT_USEC;
attr_count = 5;
sai_create_tam_report_fn(&sai_tam_report_obj, switch_id, attr_count, sai_attr_list);
Expand Down Expand Up @@ -892,7 +893,7 @@ typedef struct _sai_stat_st_capability_t
*
* If polling interval is less than this value, it will be unacceptable.
*/
uint32_t minimal_polling_interval;
uint64_t minimal_polling_interval;

} sai_stat_st_capability_t;

Expand Down
1 change: 1 addition & 0 deletions inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -3075,6 +3075,7 @@ typedef enum _sai_switch_attr_t
*
* If the collector isn't ready to receive the report, this value indicates how many
* reports that can be cached. 0 means no cache which is the default behavior.
* If the cache is full, new incoming data will be dropped.
*
* @type sai_uint32_t
* @flags CREATE_ONLY
Expand Down
2 changes: 1 addition & 1 deletion inc/saitypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,7 @@ typedef struct _sai_stat_st_capability_t
*
* If polling interval is less than this value, it will be unacceptable.
*/
uint32_t minimal_polling_interval;
uint64_t minimal_polling_interval;

} sai_stat_st_capability_t;

Expand Down

0 comments on commit 06a86bd

Please sign in to comment.