Skip to content

[sai-ptf][cherry-pick]Add thr missing API into saithriftv2 missing for syncd (#1484)#1659

Merged
richardyu-ms merged 1 commit intoopencomputeproject:v1.7from
richardyu-ms:cherry-pick-api-fix
Nov 20, 2022
Merged

[sai-ptf][cherry-pick]Add thr missing API into saithriftv2 missing for syncd (#1484)#1659
richardyu-ms merged 1 commit intoopencomputeproject:v1.7from
richardyu-ms:cherry-pick-api-fix

Conversation

@richardyu-ms
Copy link
Copy Markdown
Collaborator

saithriftv1 offers start_sai_thrift_rpc_server API to start the saithrift server and syncd is currently using that API https://github.com/Azure/sonic-sairedis/blob/master/syncd/syncd_main.cpp#L60

But this API is missing from the for saithriftv2.

Made the relevant changes to provide a similar API for saithriftv2 library

The start_sai_thrift_rpc_server API currently resides in saiserver.cpp which is not included in librpcserver.a and is not available for the users of the static library. Thus moved the function definition into sai_rpc_frontend.cpp for including it in the static library.

Signed-off-by: Vivek Reddy Karri [email protected]

…oject#1484)

saithriftv1 offers start_sai_thrift_rpc_server API to start the saithrift server and syncd is currently using that API https://github.com/Azure/sonic-sairedis/blob/master/syncd/syncd_main.cpp#L60

But this API is missing from the for saithriftv2.

Made the relevant changes to provide a similar API for saithriftv2 library

The start_sai_thrift_rpc_server API currently resides in saiserver.cpp which is not included in librpcserver.a and is not available for the users of the static library. Thus moved the function definition into sai_rpc_frontend.cpp for including it in the static library.

Signed-off-by: Vivek Reddy Karri <[email protected]>
@richardyu-ms richardyu-ms changed the title Add thr missing API into saithriftv2 missing for syncd (#1484) [sai-ptf][cherry-pick]Add thr missing API into saithriftv2 missing for syncd (#1484) Nov 20, 2022
@richardyu-ms richardyu-ms merged commit e8463be into opencomputeproject:v1.7 Nov 20, 2022
@richardyu-ms richardyu-ms deleted the cherry-pick-api-fix branch January 1, 2023 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants