@@ -166,11 +166,11 @@ prestera_util_neigh2nc_key(struct prestera_switch *sw, struct neighbour *n,
166
166
167
167
static bool __prestera_fi_is_direct (struct fib_info * fi )
168
168
{
169
- struct fib_nh * fib_nh ;
169
+ struct fib_nh_common * fib_nhc ;
170
170
171
171
if (fib_info_num_path (fi ) == 1 ) {
172
- fib_nh = fib_info_nh (fi , 0 );
173
- if (fib_nh -> fib_nh_gw_family == AF_UNSPEC )
172
+ fib_nhc = fib_info_nhc (fi , 0 );
173
+ if (fib_nhc -> nhc_gw_family == AF_UNSPEC )
174
174
return true;
175
175
}
176
176
@@ -261,16 +261,16 @@ static bool
261
261
__prestera_util_kern_n_is_reachable_v4 (u32 tb_id , __be32 * addr ,
262
262
struct net_device * dev )
263
263
{
264
- struct fib_nh * fib_nh ;
264
+ struct fib_nh_common * fib_nhc ;
265
265
struct fib_result res ;
266
266
bool reachable ;
267
267
268
268
reachable = false;
269
269
270
270
if (!prestera_util_kern_get_route (& res , tb_id , addr ))
271
271
if (prestera_fi_is_direct (res .fi )) {
272
- fib_nh = fib_info_nh (res .fi , 0 );
273
- if (dev == fib_nh -> fib_nh_dev )
272
+ fib_nhc = fib_info_nhc (res .fi , 0 );
273
+ if (dev == fib_nhc -> nhc_dev )
274
274
reachable = true;
275
275
}
276
276
@@ -324,7 +324,7 @@ prestera_kern_fib_info_nhc(struct fib_notifier_info *info, int n)
324
324
if (info -> family == AF_INET ) {
325
325
fen4_info = container_of (info , struct fib_entry_notifier_info ,
326
326
info );
327
- return & fib_info_nh (fen4_info -> fi , n )-> nh_common ;
327
+ return fib_info_nhc (fen4_info -> fi , n );
328
328
} else if (info -> family == AF_INET6 ) {
329
329
fen6_info = container_of (info , struct fib6_entry_notifier_info ,
330
330
info );
0 commit comments