immortalwrt/target/linux/generic
Mathias Kresin 2111c6e03f
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-04-14 02:59:41 +08:00
..
backport-4.9 kernel: backport mtd partition address fix sent upstream 2020-04-13 23:43:08 +08:00
backport-4.14 kernel: backport mtd partition address fix sent upstream 2020-04-13 23:43:08 +08:00
backport-4.19 kernel: bump 4.19 to 4.19.113 2020-04-01 07:37:21 +08:00
backport-5.4 kernel: init kernel 5.4 support 2020-04-14 00:08:05 +08:00
files kernel: swconfig: make compatible with kernel 5.2 2020-04-14 02:59:41 +08:00
hack-4.9 kernel: bump 4.9 to 4.9.218 2020-04-06 01:32:37 +08:00
hack-4.14 kernel: bump 4.14 to 4.14.175 2020-04-06 00:58:37 +08:00
hack-4.19 kernel: bump 4.19 to 4.19.114 2020-04-06 01:14:37 +08:00
hack-5.4 kernel: init kernel 5.4 support 2020-04-14 00:08:05 +08:00
image update source 2017-09-06 19:19:45 +08:00
other-files update source 2017-09-06 19:19:45 +08:00
pending-4.9 generic: drop 616-net_optimize_xfrm_calls.patch 2020-04-12 07:47:50 +08:00
pending-4.14 kernel: backport mtd partition address fix sent upstream 2020-04-13 23:43:08 +08:00
pending-4.19 generic: drop 616-net_optimize_xfrm_calls.patch 2020-04-12 07:47:50 +08:00
pending-5.4 kernel: init kernel 5.4 support 2020-04-14 00:08:05 +08:00
config-4.9 target/generic: add missing config 2020-04-13 22:21:52 +08:00
config-4.14 target/generic: add missing config 2020-04-13 22:21:52 +08:00
config-4.19 target/generic: add missing config 2020-04-13 22:21:52 +08:00
config-5.4 kernel: init kernel 5.4 support 2020-04-14 00:08:05 +08:00
PATCHES update source 2017-09-06 19:19:45 +08:00