openwrt/package
Florian Eckert 15cd9a5d5c ltq-vdsl-app: extent dsl metrics with state_num and power_state_num
With the old ubus dsl API, the numbers for the individual line_states and
power_states were also returned. These were not ported to the new DSL
C-API. This commit adds the missing information.

For this the internal values are mapped to numbers.

* additional JSON output for state_num:
"state_num": <map_state_number>

Since not all values are meaningful only the following values are
implemented, this can be extended if the future.

* LSTATE_MAP_NOT_INITIALIZED
* LSTATE_MAP_EXCEPTION
* LSTATE_MAP_IDLE
* LSTATE_MAP_SILENT
* LSTATE_MAP_HANDSHAKE
* LSTATE_MAP_FULL_INIT
* LSTATE_MAP_SHOWTIME_NO_SYNC
* LSTATE_MAP_SHOWTIME_TC_SYNC
* LSTATE_MAP_RESYNC

* additinal JSON output for power_level:
"power_state_num": <map_power_satte_number>,

Since there are not so many here, all are mapped.

* PSTATE_MAP_NA,
* PSTATE_MAP_L0,
* PSTATE_MAP_L1,
* PSTATE_MAP_L2,
* PSTATE_MAP_L3,

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
v6:
Add state LSTATE_MAP_NOT_INITILIZED at the beginning of the list
Start the list LSTATE_MAP with -1
Reviewed-by: Andre Heider <a.heider@gmail.com>
(cherry picked from commit 4407d45d96)
2021-04-19 23:25:02 +02:00
..
base-files OpenWrt v21.02.0-rc1: revert to branch defaults 2021-04-19 21:10:17 +02:00
boot realtek: Add ZyXEL GS1900-8 2021-04-18 12:06:18 +02:00
devel binutils: fix libbfd missing DSO dependency if NLS enabled 2021-04-10 14:22:28 +02:00
firmware tfa-layerscape: build fiptool again 2021-02-21 13:55:30 +01:00
kernel lantiq: enable G.INP retransmission counters 2021-04-19 23:24:36 +02:00
libs libnfnetlink: quote $(FPIC) on command line 2021-04-12 20:45:29 +02:00
network ltq-vdsl-app: extent dsl metrics with state_num and power_state_num 2021-04-19 23:25:02 +02:00
system zram-swap: bail out early if the kernel doesn't support swap 2021-04-18 12:05:53 +02:00
utils firmware-utils: bcm4908img: convert into a package 2021-04-08 13:16:13 +02:00
Makefile build: always build package/kernel/linux 2020-10-15 13:25:58 +02:00