aboutsummaryrefslogtreecommitdiffstats
path: root/tools/patch-image
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2019-07-18 10:29:08 +0200
committerRafał Miłecki <rafal@milecki.pl>2020-02-12 22:15:14 +0100
commit35ab804ea7fa9e92a5e09f9a41a03768b3cd0a82 (patch)
tree900085f51c9522b90744b551c00f358dce561fca /tools/patch-image
parent04069fde19e86af7728111814afadf780bf08018 (diff)
downloadupstream-35ab804ea7fa9e92a5e09f9a41a03768b3cd0a82.tar.gz
upstream-35ab804ea7fa9e92a5e09f9a41a03768b3cd0a82.tar.bz2
upstream-35ab804ea7fa9e92a5e09f9a41a03768b3cd0a82.zip
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>
Diffstat (limited to 'tools/patch-image')
0 files changed, 0 insertions, 0 deletions