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-05-29 09:25:15 -07:00
2024-07-15 08:02:26 -07:00
2024-05-09 10:01:01 -07:00
2024-06-14 19:08:50 -07:00
2024-06-01 15:49:42 -07:00
2024-06-12 20:18:00 +02:00
2024-07-15 10:11:35 -04:00
2024-07-09 17:01:46 +02:00
2024-06-24 16:41:23 -07:00
2024-06-05 10:18:06 +01:00
2024-06-27 12:14:11 -07:00
2024-07-11 16:33:07 +02:00
2024-07-15 09:14:39 -07:00
2024-06-27 12:14:11 -07:00
2024-06-05 10:24:57 +01:00
2024-07-15 08:02:30 -07:00
2024-05-25 10:48:57 -07:00
2024-07-15 08:02:30 -07:00
2024-04-16 17:14:55 -07:00
2024-06-19 17:32:57 -07:00
2024-05-28 07:27:29 -07:00
2024-07-14 07:56:32 -07:00
2024-07-14 07:56:32 -07:00
2024-05-21 12:09:36 -07:00
2024-03-11 09:53:22 +00:00
2024-07-12 04:09:18 +01:00
2024-07-15 08:51:19 -07:00
2024-07-10 12:35:58 +02:00
2024-06-03 11:20:56 +02:00
2024-05-03 13:29:41 +01:00
2024-06-13 13:13:46 -07:00
2024-06-01 16:21:44 -07:00
2024-07-11 12:58:13 -07:00
2024-05-13 14:58:12 -07:00
2024-06-10 13:15:40 +01:00
2024-06-17 13:06:23 +01:00
2024-05-23 12:49:37 -07:00
2024-04-26 12:20:01 +02:00
2024-07-05 17:45:47 -07:00
2024-06-19 12:44:22 +01:00
2024-05-13 18:19:09 -06:00
2024-07-11 18:11:31 -07:00
2024-06-14 13:17:21 +02:00
2024-06-19 10:47:40 +01:00
2024-06-26 10:49:01 +02:00
2024-05-13 18:19:09 -06:00
2024-05-09 10:01:01 -07:00
2024-07-15 09:14:39 -07:00
2024-07-03 09:45:39 +01:00
2024-06-17 13:14:09 +01:00
2024-07-11 12:17:45 +02:00
2024-05-08 12:19:12 +01:00
2024-07-12 03:47:43 +01:00
2024-07-09 11:14:47 -07:00
2024-07-04 14:16:11 -07:00
2024-05-23 12:04:36 -07:00
2024-07-09 11:36:00 +02:00
2024-05-13 18:19:09 -06:00
2024-07-02 15:26:57 +02:00
2024-07-14 07:56:32 -07:00
2024-06-25 17:15:06 -07:00
2024-05-13 18:19:19 -06:00
2024-04-24 09:43:54 +02:00