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
Summary:
While trying to make sure no regression in Sai Replayer refactoring, noticed that a few SAI API calls are interleaving with each other. E.g.
```
memset(s_a,0,ATTR_SIZE*4096);
s_a[0].id=536870926;
rv=switch_api->set_switch_attribute(9840384019236126720U,s_a);
memset(s_a,0,ATTR_SIZE*4096);
s_a[0].id=120;
rv=switch_api->set_switch_attribute(9840384019236126720U,s_a);
rvCheck(rv,0,1952);
rvCheck(rv,0,1953);
```
This is because when we register callbacks, the call directly goes to SDK instead of going through Sai API.
To fix this, also take the SaiAPILock while registering callback.
Reviewed By: daiwei1983
Differential Revision:
D85834616
Privacy Context Container: L1297311
fbshipit-source-id: a52dc77be208ece5f80e3310b2642953c8ae493b
0 commit comments