11 Commits

Author SHA1 Message Date
Wataru Ishida
fc632a42f7 improve build
Signed-off-by: Wataru Ishida <wataru.ishid@gmail.com>
2022-02-14 14:24:45 +09:00
Wataru Ishida
7595139b74 add meta APIs to TAI
Unlike SAI, TAI needs to handle different kinds of devices
simultaneously. In order to support this, we have tai-mux library
which multiplexes multiple TAI libraries and provide a single TAI interface
to upper application.

However, there was no multiplex or aggregation layer for TAI *metadata*.
TAI metadata is used to know each TAI attributes characteristic and provides
utility functionality like string serialization.

Because of this lack of multiplex layer, application developers have to
create a TAI meta library by manually aggregating all TAI attributes of
TAI libraries which are planned to be used.

This is tedious, error prone works and makes it difficult to support
new TAI library dynamically.

In order to solve this issue, this commits adds meta APIs to TAI APIs.
By doing so, TAI *metadata* can be multiplexed by tai-mux just like
other APIs.

This commit also enhances TAI library framework to automatically support
the new meta APIs.

TAI library which is based on the framework will get the meta API
functionally automatically by recompiling it.

Signed-off-by: Wataru Ishida <wataru.ishid@gmail.com>
2021-04-26 15:44:28 +09:00
Wataru Ishida
bd912d575b ci: build a container image which includes minimum TAI components
Signed-off-by: Wataru Ishida <wataru.ishid@gmail.com>
2020-06-17 15:19:16 -07:00
Wataru Ishida
33821d15b0 update build
Signed-off-by: Wataru Ishida <wataru.ishid@gmail.com>
2020-06-17 14:14:51 -07:00
Wataru Ishida
8bd7f6f4c2 taish: use TAI common library for attribute allocation/serialization
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2020-01-06 10:56:59 -08:00
Wataru Ishida
223d5034ec build: support custime docker run options
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2020-01-04 11:11:19 -08:00
Wataru Ishida
dcb137c611 tests: add python test
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2020-01-03 09:06:15 -08:00
Wataru Ishida
bd1225c035 build: refactor how to build TAI components
created a top-level Dockerfile which can be used to build everything in
this repo.

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-12-19 13:01:38 -08:00
Wataru Ishida
5bea26d46b stub: enhance overall functionality to enable more testing
stub library was just a reference example for TAI library implementers.
This patch adds more functionality to be able to test other TAI
components like taish using stub library.

Major updates are

- add storage to store attributes which are set
- call module_presence callback
- use meta library instead of switch statements to automatically support
  newly added attributes

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-02-06 17:03:14 -08:00
Wataru Ishida
0816bca253 add doxygen config file
based on https://github.com/opencomputeproject/SAI/blob/master/Doxyfile

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-05-09 10:37:51 -07:00
Wataru Ishida
aca1edf8de add .travis.yml
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-05-09 10:37:51 -07:00