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