Skip to content

Commit

Permalink
[meta] Add generic methods to call common methods using sai_apis_t st…
Browse files Browse the repository at this point in the history
…ruct with null ptr check (#1836) (#1837)

Adding 3 sets of apis:

* generic quad apis (create,remove,set,get)
* generic stats apis (get_stats,get_stats_ext,cleart_stats)
* generic quad bulk apis (create,remove,set,get)

all this APIS will have auto generated null pointer check if vendor apis is not implemented.
sai_meta_key_t struct is used as object, for automatic api selection and check.

All this is auto generated from headers.

New method sai_metadata_global_apis_query method is added for easy obtain global apis addresses from given *.so library path. This will be handy in the future when loading libsa.so dynamically.
  • Loading branch information
kcudnik authored Aug 8, 2023
1 parent 92875f9 commit ad12e9e
Showing 1 changed file with 595 additions and 0 deletions.
Loading

0 comments on commit ad12e9e

Please sign in to comment.