Commit 536b97a
net/sched: cls_flower: propagate tca[TCA_OPTIONS] to NL_REQ_ATTR_CHECK
NL_REQ_ATTR_CHECK() is used in fl_set_key_flags() to set
extended attributes about the origin of an error, this
patch propagates tca[TCA_OPTIONS] through.
Before this patch:
$ sudo ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/tc.yaml \
--do newtfilter --json '{
"chain": 0, "family": 0, "handle": 4, "ifindex": 22,
"info": 262152,
"kind": "flower",
"options": {
"flags": 0, "key-enc-flags": 8,
"key-eth-type": 2048 },
"parent": 4294967283 }'
Netlink error: Invalid argument
nl_len = 68 (52) nl_flags = 0x300 nl_type = 2
error: -22
extack: {'msg': 'Missing flags mask',
'miss-type': 111}
After this patch:
[same cmd]
Netlink error: Invalid argument
nl_len = 76 (60) nl_flags = 0x300 nl_type = 2
error: -22
extack: {'msg': 'Missing flags mask',
'miss-type': 111, 'miss-nest': 56}
Suggested-by: Jakub Kicinski <[email protected]>
Signed-off-by: Asbjørn Sloth Tønnesen <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 706bf4f commit 536b97a
1 file changed
+20
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1171 | 1171 | | |
1172 | 1172 | | |
1173 | 1173 | | |
1174 | | - | |
1175 | | - | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
1176 | 1177 | | |
1177 | 1178 | | |
1178 | 1179 | | |
| |||
1186 | 1187 | | |
1187 | 1188 | | |
1188 | 1189 | | |
1189 | | - | |
| 1190 | + | |
1190 | 1191 | | |
1191 | 1192 | | |
1192 | 1193 | | |
| |||
1865 | 1866 | | |
1866 | 1867 | | |
1867 | 1868 | | |
1868 | | - | |
1869 | | - | |
1870 | | - | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
1871 | 1872 | | |
1872 | 1873 | | |
1873 | 1874 | | |
| |||
2100 | 2101 | | |
2101 | 2102 | | |
2102 | 2103 | | |
2103 | | - | |
| 2104 | + | |
| 2105 | + | |
2104 | 2106 | | |
2105 | 2107 | | |
2106 | 2108 | | |
2107 | 2109 | | |
2108 | 2110 | | |
2109 | 2111 | | |
2110 | | - | |
| 2112 | + | |
| 2113 | + | |
2111 | 2114 | | |
2112 | 2115 | | |
2113 | 2116 | | |
| |||
2358 | 2361 | | |
2359 | 2362 | | |
2360 | 2363 | | |
| 2364 | + | |
2361 | 2365 | | |
2362 | 2366 | | |
2363 | 2367 | | |
| |||
2366 | 2370 | | |
2367 | 2371 | | |
2368 | 2372 | | |
2369 | | - | |
| 2373 | + | |
2370 | 2374 | | |
2371 | 2375 | | |
2372 | 2376 | | |
| |||
2384 | 2388 | | |
2385 | 2389 | | |
2386 | 2390 | | |
2387 | | - | |
| 2391 | + | |
2388 | 2392 | | |
2389 | 2393 | | |
2390 | 2394 | | |
| |||
2460 | 2464 | | |
2461 | 2465 | | |
2462 | 2466 | | |
2463 | | - | |
| 2467 | + | |
2464 | 2468 | | |
2465 | 2469 | | |
2466 | 2470 | | |
| |||
2800 | 2804 | | |
2801 | 2805 | | |
2802 | 2806 | | |
| 2807 | + | |
2803 | 2808 | | |
2804 | 2809 | | |
2805 | 2810 | | |
2806 | 2811 | | |
2807 | | - | |
| 2812 | + | |
2808 | 2813 | | |
2809 | 2814 | | |
2810 | 2815 | | |
2811 | 2816 | | |
2812 | 2817 | | |
2813 | 2818 | | |
2814 | | - | |
| 2819 | + | |
2815 | 2820 | | |
2816 | 2821 | | |
2817 | 2822 | | |
| |||
2821 | 2826 | | |
2822 | 2827 | | |
2823 | 2828 | | |
2824 | | - | |
| 2829 | + | |
| 2830 | + | |
2825 | 2831 | | |
2826 | 2832 | | |
2827 | 2833 | | |
| |||
0 commit comments