Al Viro
27594ec4b6
net: sched: cls_u32: disallow linking to root hnode
...
Operation makes no sense. Nothing will actually break if we do so
(depth limit in u32_classify() will prevent infinite loops), but
according to maintainers it's best prohibited outright.
NOTE: doing so guarantees that u32_destroy() will trigger the call
of u32_destroy_hnode(); we might want to make that unconditional.
Test:
tc qdisc add dev eth0 ingress
tc filter add dev eth0 parent ffff: protocol ip prio 100 u32 \
link 800: offset at 0 mask 0f00 shift 6 plus 0 eat match ip protocol 6 ff
should fail with
Error: cls_u32: Not linking to root node
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-08 10:33:34 -07:00
..
2018-10-05 00:36:31 -07:00
2018-08-31 22:50:15 -07:00
2018-08-31 22:57:43 -07:00
2018-08-31 22:50:15 -07:00
2018-09-24 12:18:42 -07:00
2018-09-04 21:33:03 -07:00
2018-10-03 21:00:17 -07:00
2017-12-13 13:18:46 -05:00
2017-10-12 22:13:20 -07:00
2017-12-13 13:18:46 -05:00
2018-09-24 12:18:42 -07:00
2018-09-08 10:18:25 -07:00
2018-09-04 21:33:03 -07:00
2018-09-16 15:30:22 -07:00
2018-09-18 09:33:27 -07:00
2018-08-31 22:50:15 -07:00
2018-09-08 10:17:35 -07:00
2018-08-31 22:50:15 -07:00
2018-09-12 22:22:42 -07:00
2018-08-31 22:50:15 -07:00
2018-10-01 23:09:41 -07:00
2018-07-24 14:10:42 -07:00
2018-07-29 13:19:49 -07:00
2018-05-24 22:56:15 -04:00
2018-05-24 22:56:15 -04:00
2018-10-05 00:36:31 -07:00
2018-05-24 22:56:15 -04:00
2018-08-16 12:08:26 -07:00
2018-05-24 22:56:15 -04:00
2018-05-24 22:56:15 -04:00
2018-08-13 19:37:42 -07:00
2018-10-08 10:33:34 -07:00
2014-10-06 18:02:32 -04:00
2011-01-19 23:31:12 -08:00
2016-11-03 10:56:21 +01:00
2018-02-21 13:15:33 -05:00
2017-07-01 07:39:08 -07:00
2018-01-24 14:52:40 -05:00
2015-02-22 15:59:54 -05:00
2011-01-19 23:31:12 -08:00
2017-10-16 21:00:40 +01:00
2018-10-04 13:52:23 -07:00
2018-10-04 13:52:23 -07:00
2018-10-06 14:43:42 -07:00
2018-09-25 20:17:35 -07:00
2018-06-17 08:42:33 +09:00
2018-09-10 10:06:54 -07:00
2018-09-25 20:17:35 -07:00
2018-09-25 20:17:35 -07:00
2017-12-21 12:32:50 -05:00
2017-12-21 12:32:50 -05:00
2018-09-25 20:17:35 -07:00
2018-09-25 20:17:35 -07:00
2018-07-04 22:30:28 +09:00
2018-09-25 20:17:35 -07:00
2018-09-10 10:06:54 -07:00
2018-10-01 23:18:51 -07:00
2018-09-28 11:04:58 -07:00
2017-12-21 12:32:50 -05:00
2018-09-25 20:17:35 -07:00
2018-09-10 10:06:54 -07:00
2018-09-25 20:17:35 -07:00
2018-01-17 14:53:57 -05:00
2018-09-25 20:17:35 -07:00
2018-09-25 20:17:35 -07:00
2018-09-25 20:17:35 -07:00
2018-09-25 20:17:35 -07:00
2018-10-07 20:39:01 -07:00
2017-12-21 12:32:50 -05:00
2018-09-25 20:17:35 -07:00
2018-09-25 20:17:35 -07:00
2018-09-25 20:17:35 -07:00
2018-09-25 20:17:35 -07:00
2017-12-21 12:32:51 -05:00
2018-07-24 14:44:00 -07:00
2018-10-04 13:52:23 -07:00
2018-09-25 20:17:35 -07:00
2017-12-21 12:32:50 -05:00