Asbjørn Sloth Tønnesen
536b97acdd
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 <kuba@kernel.org>
Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Link: https://patch.msgid.link/20240713021911.1631517-14-ast@fiberby.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-07-15 09:14:39 -07:00
..
2024-06-20 13:49:59 -07:00
2024-05-23 14:14:23 -07:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-07-11 12:58:13 -07:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-02-22 15:29:26 -08:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-02-19 10:58:24 +00:00
2024-02-02 10:57:55 -08:00
2024-07-05 17:45:47 -07:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-07-11 17:12:15 -07:00
2024-04-01 10:49:28 +01:00
2024-02-02 10:57:55 -08:00
2024-04-10 08:28:26 +01:00
2024-02-02 10:57:55 -08:00
2024-05-23 14:14:23 -07:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-07-15 09:14:39 -07:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-02-09 14:12:02 -08:00
2024-02-09 14:12:02 -08:00
2020-07-03 14:34:53 -07:00
2020-07-03 14:34:53 -07:00
2024-02-09 14:12:02 -08:00
2024-02-09 14:12:02 -08:00
2024-02-09 14:12:02 -08:00
2024-02-09 14:12:02 -08:00
2022-12-19 09:43:18 +00:00
2024-02-13 11:24:35 +01:00
2024-01-02 12:41:16 +00:00
2024-05-07 11:14:50 +02:00
2020-07-16 16:48:34 -07:00
2024-04-19 11:34:07 +01:00
2024-04-19 11:34:07 +01:00
2024-04-19 11:34:07 +01:00
2024-04-19 11:34:07 +01:00
2024-02-02 10:57:55 -08:00
2024-04-19 11:34:07 +01:00
2024-04-19 11:34:07 +01:00
2024-04-19 11:34:07 +01:00
2024-04-19 11:34:07 +01:00
2024-04-19 11:34:07 +01:00
2024-04-19 11:34:07 +01:00
2023-09-12 11:42:25 +02:00
2024-06-13 13:13:46 -07:00
2024-02-02 10:57:55 -08:00
2024-04-19 11:34:08 +01:00
2024-04-19 11:34:08 +01:00
2024-04-26 10:46:41 +02:00
2024-07-08 14:07:31 -07:00
2023-06-07 10:25:39 +01:00
2023-11-01 21:49:09 -07:00
2023-04-13 22:22:10 -07:00
2024-03-29 15:06:02 -07:00
2024-06-05 10:50:19 +01:00
2024-02-02 10:57:55 -08:00
2024-04-19 11:34:08 +01:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-02-02 10:57:55 -08:00
2024-05-02 19:01:35 -07:00
2024-04-19 11:34:08 +01:00
2024-07-15 08:02:26 -07:00
2024-02-02 10:57:55 -08:00
2024-05-07 16:19:14 -07:00