You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 years ago
..
b53 swconfig: fix Broadcom b53 support 4 years ago
adm6996.c generic: provide get_port_stats() on adm6996 switches 7 years ago
adm6996.h treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
ar8216.c generic ar8xxx: increase VLAN table for AR83x7 5 years ago
ar8216.h generic ar8xxx: increase VLAN table for AR83x7 5 years ago
ar8327.c generic ar8xxx: increase VLAN table for AR83x7 5 years ago
ar8327.h kernel: ar83xx: Add support for three GMAC's connection 6 years ago
ip17xx.c ip17xx: correct aneg_done return value 7 years ago
mvsw61xx.c kernel: add mv88e61xx switch port-mirroring support 6 years ago
mvsw61xx.h kernel: add mv88e61xx switch port-mirroring support 6 years ago
mvswitch.c mvswitch: fix autonegotiation issue 7 years ago
mvswitch.h treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
psb6970.c kernel: update phy drivers for 4.9 7 years ago
rtl8306.c kernel: generic: Add kernel 4.14 support 7 years ago
rtl8366_smi.c generic: rtl836x: support defered probe on mdio-bus 6 years ago
rtl8366_smi.h kernel: rtl8366-smi: add Realtek switch management via mii-bus 6 years ago
rtl8366rb.c generic: rtl836x: support defered probe on mdio-bus 6 years ago
rtl8366s.c generic: rtl836x: support defered probe on mdio-bus 6 years ago
rtl8367.c generic: rtl836x: support defered probe on mdio-bus 6 years ago
rtl8367b.c generic: rtl8367b: make it possible to specify cpu_port via DT 6 years ago
swconfig.c kernel: swconfig: make compatible with kernel 5.2 4 years ago
swconfig_leds.c kernel: Make the patches apply on top of 4.19 6 years ago