David Ahern
5481d73f81
ipv4: Use accessors for fib_info nexthop data
...
Use helpers to access fib_nh and fib_nhs fields of a fib_info. Drop the
fib_dev macro which is an alias for the first nexthop. Replacements:
fi->fib_dev --> fib_info_nh(fi, 0)->fib_nh_dev
fi->fib_nh --> fib_info_nh(fi, 0)
fi->fib_nh[i] --> fib_info_nh(fi, i)
fi->fib_nhs --> fib_info_num_path(fi)
where fib_info_nh(fi, i) returns fi->fib_nh[nhsel] and fib_info_num_path
returns fi->fib_nhs.
Move the existing fib_info_nhc to nexthop.h and define the new ones
there. A later patch adds a check if a fib_info uses a nexthop object,
and defining the helpers in nexthop.h avoid circular header
dependencies.
After this all remaining open coded references to fi->fib_nhs and
fi->fib_nh are in:
- fib_create_info and helpers used to lookup an existing fib_info
entry, and
- the netdev event functions fib_sync_down_dev and fib_sync_up.
The latter two will not be reused for nexthops, and the fib_create_info
will be updated to handle a nexthop in a fib_info.
Signed-off-by: David Ahern <dsahern@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2019-06-04 19:26:49 -07:00
..
2018-09-08 01:39:47 +09:00
2019-05-05 19:29:04 +02:00
2018-01-19 14:02:12 -05:00
2018-09-26 09:56:07 -07:00
2019-06-01 16:21:19 -07:00
2019-05-28 21:37:30 -07:00
2019-05-21 11:28:45 +02:00
2019-02-21 16:23:56 -08:00
2019-05-31 10:49:43 -07:00
2019-05-29 21:43:54 -07:00
2017-04-12 22:02:36 +02:00
2019-03-21 13:26:42 -07:00
2019-03-29 10:53:45 -07:00
2018-07-13 12:18:18 -04:00
2019-05-16 16:25:20 +01:00
2019-02-28 08:24:23 -07:00
2018-08-07 12:39:13 -07:00
2017-11-02 11:10:55 +01:00
2019-05-05 11:25:49 -07:00
2017-11-02 11:10:55 +01:00
2019-01-23 11:18:00 -08:00
2018-04-19 16:11:11 -04:00
2019-05-24 17:37:53 +02:00
2019-05-21 11:28:40 +02:00
2017-05-27 18:51:41 -04:00
2018-09-26 20:22:19 -07:00
2019-04-27 09:07:04 -07:00
2018-07-30 09:10:25 -07:00
2019-05-21 11:28:45 +02:00
2019-04-26 16:05:52 -04:00
2016-07-08 12:20:57 +02:00
2019-01-03 18:57:57 -08:00
2019-05-21 11:28:45 +02:00
2016-04-19 20:09:25 -04:00
2016-04-25 16:44:27 -04:00
2016-06-25 12:19:35 -04:00
2016-04-25 16:44:27 -04:00
2019-04-19 14:07:40 -07:00
2017-11-02 11:10:55 +01:00
2018-07-27 13:17:50 -07:00
2019-06-04 14:21:40 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-05-21 11:52:39 +02:00
2019-05-21 11:52:39 +02:00
2017-11-04 09:26:51 +09:00
2019-05-29 21:48:53 -07:00
2017-11-02 11:10:55 +01:00
2018-03-05 12:52:45 -05:00
2017-11-04 09:26:51 +09:00
2017-11-02 11:10:55 +01:00
2019-03-21 13:39:25 -07:00
2018-05-20 18:31:42 -04:00
2017-11-02 11:10:55 +01:00
2018-02-28 11:43:28 -05:00
2018-05-28 22:59:54 -04:00
2019-04-22 21:50:53 -07:00
2019-05-22 17:50:24 -07:00
2017-11-02 11:10:55 +01:00
2019-06-03 14:56:35 -07:00
2019-06-03 14:57:04 -07:00
2019-02-27 12:50:17 -08:00
2017-11-02 11:10:55 +01:00
2019-04-26 13:02:11 +02:00
2017-10-11 09:49:34 +02:00
2017-11-02 11:10:55 +01:00
2018-11-17 21:37:29 -08:00
2019-04-27 17:07:22 -04:00
2019-03-22 12:09:31 -07:00
2018-12-10 15:53:04 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-11 14:10:06 -05:00
2017-11-02 11:10:55 +01:00
2019-02-25 14:32:35 -08:00
2019-02-22 12:56:24 -08:00
2016-01-04 20:40:41 +01:00
2018-11-02 23:54:56 -07:00
2019-04-22 21:50:53 -07:00
2015-12-15 23:25:20 -05:00
2017-01-18 13:04:28 -05:00
2018-11-07 16:12:38 -08:00
2018-12-15 13:23:02 -08:00
2019-01-27 13:29:43 -08:00
2018-10-17 17:45:07 -07:00
2019-05-28 17:22:15 -07:00
2018-12-24 15:27:56 -08:00
2018-11-07 16:12:38 -08:00
2018-06-05 10:45:24 -04:00
2019-02-08 21:50:15 -08:00
2016-03-13 23:55:13 -04:00
2019-05-24 13:26:44 -07:00
2019-05-24 13:26:44 -07:00
2018-11-08 17:13:08 -08:00
2019-06-04 19:26:49 -07:00
2019-02-27 12:50:17 -08:00
2019-05-31 18:23:52 +02:00
2019-06-03 15:18:00 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-05-05 10:40:24 -07:00
2019-05-22 17:48:43 -07:00
2019-06-03 15:18:00 -07:00
2017-11-02 11:10:55 +01:00
2018-03-27 09:51:23 +02:00
2016-08-17 19:36:23 -04:00
2019-01-30 22:13:34 -08:00
2018-07-11 23:10:19 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-25 12:06:25 +09:00
2018-04-22 14:55:03 -04:00
2018-09-13 09:04:58 -07:00
2019-04-23 19:42:29 -07:00
2019-04-26 16:05:52 -04:00
2016-07-08 13:23:12 +02:00
2019-05-21 11:28:45 +02:00
2017-11-02 11:10:55 +01:00
2017-04-01 20:21:44 -07:00
2016-10-03 02:00:22 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-04-08 15:22:40 -07:00
2019-04-17 23:19:07 -07:00
2018-05-28 22:59:54 -04:00
2019-05-28 21:37:30 -07:00
2017-11-02 11:10:55 +01:00
2018-08-01 09:52:30 -07:00
2019-05-21 11:28:45 +02:00
2019-05-04 01:27:11 -04:00
2015-12-08 22:02:33 -05:00
2019-04-11 13:59:49 -07:00
2019-06-04 19:26:49 -07:00
2016-07-08 12:20:57 +02:00
2017-11-08 16:12:33 +09:00
2017-11-02 11:10:55 +01:00
2018-05-24 18:36:15 -07:00
2018-05-16 07:23:35 +02:00
2019-05-07 12:23:40 -07:00
2018-09-25 20:17:35 -07:00
2017-11-02 11:10:55 +01:00
2018-11-08 17:13:08 -08:00
2019-04-22 21:50:53 -07:00
2017-11-02 11:10:55 +01:00
2018-11-07 16:12:39 -08:00
2017-11-02 11:10:55 +01:00
2017-12-05 14:37:13 -05:00
2018-08-28 11:11:47 +02:00
2019-03-19 14:13:01 -07:00
2018-05-16 07:23:35 +02:00
2019-04-08 15:22:41 -07:00
2018-03-13 18:37:02 +02:00
2018-11-06 15:00:45 -08:00
2019-04-22 21:47:25 -07:00
2019-04-23 18:36:33 +02:00
2018-07-21 10:43:12 -05:00
2017-11-02 11:10:55 +01:00
2018-06-22 13:43:27 +09:00
2018-07-31 09:22:48 +02:00
2018-12-20 16:56:04 -08:00
2018-04-11 10:33:46 -04:00
2019-02-21 10:34:37 -08:00
2016-04-28 11:49:45 -04:00
2018-08-11 01:58:46 +02:00
2019-05-15 09:22:41 -07:00
2018-03-01 21:21:36 -05:00
2017-11-02 11:10:55 +01:00
2018-06-06 14:07:53 -04:00
2019-03-01 21:35:19 -08:00
2018-02-21 15:06:05 -05:00
2019-05-30 13:41:26 -07:00
2015-07-09 15:12:20 -07:00
2018-05-08 00:02:41 -04:00
2019-06-04 14:33:50 -07:00
2018-07-07 10:58:49 +09:00
2017-11-02 11:10:55 +01:00
2017-08-29 15:16:52 -07:00
2019-03-29 10:53:45 -07:00
2019-05-30 11:10:39 -07:00
2018-02-16 15:57:42 -05:00
2019-03-22 12:09:31 -07:00
2018-01-24 19:13:45 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-03-16 01:27:51 +01:00
2018-08-29 12:25:53 -07:00
2019-05-07 22:03:58 -07:00