Petr Machata
0bccf8ed8a
nexthop: Extract a helper for validation of get/del RTNL requests
...
Validation of messages for get / del of a next hop is the same as will be
validation of messages for get of a resilient next hop group bucket. The
difference is that policy for resilient next hop group buckets is a
superset of that used for next-hop get.
It is therefore possible to reuse the code that validates the nhmsg fields,
extracts the next-hop ID, and validates that. To that end, extract from
nh_valid_get_del_req() a helper __nh_valid_get_del_req() that does just
that.
Make the nlh argument const so that the function can be called from the
dump context, which only has a const nlh. Propagate the constness to
nh_valid_get_del_req().
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-01-28 20:49:54 -08:00
..
2020-08-10 12:06:44 -07:00
2021-01-19 13:54:30 -08:00
2020-12-02 13:25:11 -08:00
2020-03-12 15:55:00 -07:00
2020-11-13 14:24:39 -08:00
2020-12-03 17:38:21 -08:00
2020-09-08 20:03:36 -07:00
2019-11-01 14:57:52 -07:00
2020-11-16 08:08:54 -08:00
2020-06-20 21:33:57 -07:00
2021-01-11 18:20:09 -08:00
2020-12-28 14:44:32 -08:00
2020-03-29 22:30:57 -07:00
2019-10-04 11:10:56 -07:00
2020-07-28 17:42:31 -07:00
2020-11-16 08:08:54 -08:00
2020-11-06 11:28:50 -08:00
2020-10-02 19:11:11 -07:00
2020-12-28 15:00:00 -08:00
2021-01-20 22:15:04 -08:00
2020-11-23 18:36:21 -05:00
2020-05-20 20:31:27 -04:00
2021-01-18 19:59:17 -08:00
2020-11-17 16:08:36 -08:00
2020-12-12 15:08:54 -08:00
2020-11-23 16:32:33 -08:00
2020-08-19 14:06:36 +02:00
2019-11-07 16:15:56 -08:00
2019-09-20 18:23:33 -07:00
2019-08-08 15:55:10 -07:00
2020-11-09 17:50:28 -08:00
2020-03-30 13:45:04 -07:00
2020-08-25 06:28:02 -07:00
2021-01-08 13:28:00 -08:00
2020-08-25 06:23:59 -07:00
2021-01-08 19:25:35 -08:00
2021-01-07 14:42:36 -08:00
2020-11-09 17:50:28 -08:00
2020-07-09 12:55:37 +02:00
2020-11-12 14:53:33 -08:00
2020-11-09 17:50:28 -08:00
2019-10-04 11:10:56 -07:00
2020-09-10 12:25:51 -07:00
2020-08-18 16:02:16 -07:00
2020-07-10 13:54:00 -07:00
2020-11-16 08:08:54 -08:00
2020-10-30 12:57:39 +01:00
2019-05-21 10:50:45 +02:00
2021-01-28 20:49:54 -08:00
2020-11-23 18:36:21 -05:00
2020-11-09 15:34:44 -08:00
2019-05-30 11:26:32 -07:00
2020-03-12 22:34:48 -07:00
2020-11-23 18:36:21 -05:00
2020-12-03 15:44:09 -08:00
2020-12-16 11:01:04 -08:00
2020-09-10 13:15:40 -07:00
2020-11-17 11:03:22 -08:00
2020-03-16 18:26:54 -07:00
2020-11-18 00:12:34 +01:00
2019-05-21 10:50:45 +02:00
2020-11-20 18:09:47 -08:00
2021-01-15 20:22:16 -08:00
2019-05-30 11:26:32 -07:00
2018-10-10 22:26:00 -07:00
2020-02-27 18:50:19 -08:00
2020-08-24 14:35:00 -07:00
2020-07-06 13:23:03 -07:00
2020-07-06 13:23:03 -07:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2021-01-28 17:09:31 -08:00
2021-01-20 08:56:16 -08:00
2020-10-30 12:10:57 -07:00
2020-12-14 16:40:27 -08:00
2020-12-14 17:30:06 -08:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2021-01-28 17:09:31 -08:00
2019-05-21 10:50:45 +02:00
2021-01-23 21:33:01 -08:00
2020-08-24 17:31:20 -07:00
2021-01-23 19:32:51 -08:00
2020-03-09 22:34:58 +01:00
2020-10-13 17:11:52 -07:00
2017-11-02 11:10:55 +01:00
2020-07-06 13:23:03 -07:00
2019-05-21 10:50:45 +02:00
2020-03-16 18:26:55 -07:00
2021-01-22 20:05:56 -08:00
2020-07-09 12:51:36 +02:00
2020-08-21 15:16:11 -07:00
2020-11-09 16:42:49 -08:00
2020-07-24 15:41:54 -07:00
2021-01-23 20:18:16 -08:00
2021-01-07 12:53:29 -08:00
2020-09-28 12:50:12 -07:00
2020-07-10 13:54:00 -07:00
2021-01-19 13:54:30 -08:00
2020-07-19 18:16:41 -07:00
2020-05-06 09:40:08 +02:00
2020-05-11 15:12:27 +02:00
2019-12-24 22:28:54 -08:00
2019-12-09 09:59:07 +01:00
2020-05-06 09:40:08 +02:00
2020-10-09 12:29:48 +02:00