59 Commits

Author SHA1 Message Date
Wataru Ishida
c097114f36 meta: support deserializing object map list attribute
Signed-off-by: Wataru Ishida <wataru.ishid@gmail.com>
2022-01-05 00:18:47 +09:00
Clint Bauer
f19af1e171 inc: fix typos in status names 2021-12-09 08:23:25 +09:00
Toru MANO
ba4b1ba6a6 netif: add TAI_NETWORK_INTERFACE_ATTR_CLIENT_SIGNAL_MAPPING_TYPE 2021-08-31 18:16:14 +09:00
Toru MANO
71eabf0f2a inc: add two attributes line rate and fec type to network interface 2021-08-25 17:47:39 +09:00
Wataru Ishida
c4cea9cf4c inc: add capability API
Signed-off-by: Wataru Ishida <wataru.ishid@gmail.com>
2021-08-11 00:50:40 +09:00
kinmantam
5762cb2942 Add tai_u64_list_t and tai_s64_list_t types (#127)
* Add files via upload

* Add files via upload

* Delete taitypes.h

* Add files via upload

* Add files via upload
2021-07-13 11:10:28 +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
Mikio Hara
844a7b7fce inc: fix a few typos in comment 2020-12-17 22:58:52 -08:00
Wataru Ishida
4ca1e6d61f add I/O handler in service_methods
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2020-01-14 08:07:20 -08:00
Wataru Ishida
f044c3f4ca allocate custom attribute range for mux
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2020-01-09 10:04:24 -08:00
Sami Saab
b84e3fc83f Adding post-voa channel power and reference register addresses for some RX power monitoring attributes.
Moving RX power thresholds and LOS to custom attributes.
2019-10-07 10:31:34 -07:00
Wataru Ishida
a4e6d90f77 change notification handler to support multiple attribution
some (alarm) notification require multiple attributes reported
within the same call

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-09-19 17:29:36 -07:00
Wataru Ishida
4f1c5a99e0 netif: add TAI_NETWORK_INTERFACE_ATTR_ALARM_NOTIFICATION
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-09-19 17:29:36 -07:00
Wataru Ishida
31279b3138 hostif/module: add notification attribute
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-09-19 17:29:36 -07:00
Wataru Ishida
791e123c46 hostif: add PCS alarm attribute
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-09-19 17:29:36 -07:00
Wataru Ishida
a32dc5db36 hostif: add ethernet stats attribute
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-09-19 17:29:36 -07:00
Wataru Ishida
eb54d3eb1f hostif: add clear APIs
clear API can be used to clear stats attribute.
This API can only be used against an attribute with the clearable flag.

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-09-19 17:29:36 -07:00
Wataru Ishida
a6c4360efd add log callback function
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-09-19 17:03:54 -07:00
Wataru Ishida
b112a1c0d0 module: change FIRMWARE_VERSION attr type to charlist
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-07-16 16:03:17 -07:00
skuwa
9844297c47 hostif: add client signal rate attribute 2019-06-25 00:35:39 -07:00
Takafumi Tanaka
c026c32eea netif: add SNR attribute 2019-06-12 14:52:34 -07:00
Wataru Ishida
f5eeadeb74 Fix wrong description about license in each files and add NOTICE file
TAI is licensed under BSD 3-Clause License. Fix the description in each
files which were taken from SAI.
Also mention about SAI license (Apache License, Version 2.0).

related: #4

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-06-04 16:51:51 -07:00
Wataru Ishida
351ab39e28 meta: fix objmaplist alloc/free
As in attrlist attribute, objmaplist also needs _alloced field to
keep track of the number of allocated tai_object_map_t

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-06-03 11:04:15 -07:00
Wataru Ishida
347fc472db netif: add notification attribute
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-06-03 11:04:00 -07:00
Wataru Ishida
ed22eed8a6 netif: add POST_FEC_BER, PRBS_BER attributes
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-05-23 17:11:03 -07:00
Wataru Ishida
d342afa982 meta: support alloc/free/deepcopy attrlist attribute
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-05-20 02:59:17 -07:00
Wataru Ishida
2145ba1cc9 netif: add chromatic dispersion and differential group delay attribute
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-05-16 16:41:10 -07:00
Cassini Developer
92dc3c9f46 change the multi collection and add comment 2019-04-08 04:42:40 -07:00
Cassini Developer
2836f5206f add OTN alarms 2019-04-08 04:42:40 -07:00
Sami Saab
f9ec377c91 Inverting TAI_NETWORK_INTERFACE_ATTR_TX_ENABLE to TAI_NETWORK_INTERFACE_ATTR_TX_DIS 2019-01-23 21:37:17 -08:00
Wataru Ishida
385515295e hostif: fix TAI_HOST_INTERFACE_ATTR_LANE_FAULT
closes #53

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-01-17 14:39:09 -08:00
Wataru Ishida
d6186cfe8a *: introduce tai_attr_value_list_t
tai_attr_value_list_t is a list of TAI attribute values

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-01-17 14:39:09 -08:00
Wataru Ishida
3d3fd4f2a2 *: add more meta commands ( especially default command ) to attributes
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2019-01-17 10:34:58 -08:00
Sami Saab
d0cf2a05f1 Adding channel/grid spacing support with just frequency support. 2019-01-03 15:20:47 -08:00
Sami Saab
b961b8b7be Adding custom attribute range for NEL NLD0670 and Oclaro TRB100. 2018-11-12 13:45:42 -08:00
Sami Saab
1f7332fcea Updating TAI_NETWORK_INTERFACE_ATTR_TX_FINE_TUNE_LASER_FREQ attribute from unsigned to signed. 2018-11-12 13:19:08 -08:00
Wataru Ishida
aa5d14e4a3 netif: add PRBS attribute
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-11-12 11:54:26 -08:00
Wataru Ishida
7bb78f291f netif/hostif: add loopback attribute
closes #18

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-11-05 12:45:32 -08:00
Scott Emery
013e669fe9 TAI: Allocate custom attribute range for the AC400 adapter
This patch adds two values to each of the three objects: a start and end
of the custom attribute values which are reserved for the AC400 adapter.
As discussed in the TAI workshop in London on October 18, 2018, each adapter
implementation which implements custom attributes should reserve 64K attribute
values in the custom range. The adapter is then free to implement up to 64K
custom attributes, which should be far above the number required.

Signed-off-by: Scott Emery <scotte@cumulusnetworks.com>
2018-11-05 11:27:17 -08:00
Wataru Ishida
85af48f174 align enum value names with the type name
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-11-02 17:20:09 -07:00
Wataru Ishida
2f2abde98c use list of enum instead of bitmap
follow how SAI does

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-11-02 17:20:09 -07:00
Wataru Ishida
339b6a7813 change module notifications to attributes
align with SAI

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-10-22 12:59:15 -07:00
Sami Saab
1acdc9014f Adding comment for TX_ENABLE/TX_DIS relationship. Fixed comma omisions. 2018-09-21 19:20:25 -07:00
Sami Saab
b0b5e1dc0d Adding attributes for status and control of (pulse shaping / RX VOA / channel by frequency or wavelength) 2018-09-19 14:31:27 -07:00
Wataru Ishida
295a320bb0 move line power attributes for backward compatibility
new attributes should be added at the end of existing attributes

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-09-05 17:07:13 -07:00
Sami Saab
d28a750db2 Changing POST-VOA to POST_VOA in post-VOA RX input power designation. 2018-09-03 20:54:53 -07:00
Sami Saab
694a676b69 Adding line power designations.
TAI_NETWORK_INTERFACE_ATTR_CURRENT_INPUT_POWER
TAI_NETWORK_INTERFACE_ATTR_CURRENT_POST-VOA_TOTAL_POWER
TAI_NETWORK_INTERFACE_ATTR_CURRENT_PROVISIONED_CHANNEL_POWER
2018-09-03 20:54:53 -07:00
Wataru Ishida
3af08e6c78 Add support for tributary
closes #12

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-08-20 15:35:03 -07:00
Wataru Ishida
a15f1051ec hostif: add client FEC attribute
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-07-10 12:20:10 -07:00
Wataru Ishida
7cc3a42974 module: add admin state and set oper state read only
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-07-10 12:19:54 -07:00