openwrt/target/linux
Mathias Kresin 35ab804ea7 kernel: swconfig: make compatible with kernel 5.2
Since kernel 5.2 within netlink messages the NLA_F_NESTED nested flag is
validated. But swconfig/swlib doesn't set the flag for
SWITCH_ATTR_OP_VALUE_PORTS related netlink messages and assigning ports
to vlans via

  swconfig dev switch0 vlan 1 set ports '0 1 2 3 4 6t'

Errors put with "Failed to set attribute: Invalid input data or
parameter".

Relax the validation rules and use the deprecated functions, to use the
same level of validation as it was till kernel 5.1. Depending on who has
swconfig related netlink messages implemented, there might be more
broken tools out there and we should keep backward compatibility if
possible.

Signed-off-by: Mathias Kresin <dev@kresin.me>
Tested-by: Rafał Miłecki <rafal@milecki.pl>
2020-02-12 22:15:14 +01:00
..
apm821xx kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
ar71xx
arc770
archs38
armvirt
at91
ath25
ath79 ath79: add support for TP-Link TL-WA830RE v1 2020-02-11 14:31:05 +01:00
bcm53xx bcm53xx: build images for Luxul ABR-4500 and XBR-4500 routers 2020-02-07 09:31:22 +01:00
brcm47xx kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
brcm63xx brcm63xx: apply updated compatibles for selecting board_info 2020-02-08 19:30:39 +01:00
brcm2708 brcm2708: update to latest patches from RPi foundation 2020-02-04 19:14:13 +01:00
cns3xxx
gemini
generic kernel: swconfig: make compatible with kernel 5.2 2020-02-12 22:15:14 +01:00
imx6
ipq40xx kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
ipq806x kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
kirkwood
lantiq
layerscape
malta
mediatek kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
mpc85xx
mvebu
mxs
octeon
octeontx
omap
oxnas
pistachio
ramips ramips: append tail to WF2881 initramfs image 2020-02-11 15:13:52 +01:00
rb532
samsung
sunxi
tegra
uml
x86
zynq
Makefile