Searched refs:fen_info (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
H A D | mp.c | 116 struct fib_entry_notifier_info fen_info; member 154 struct fib_info *fi = fen_info->fi; in mlx5_lag_fib_route_event() 167 (mp->fib.dst != fen_info->dst || mp->fib.dst_len != fen_info->dst_len) && in mlx5_lag_fib_route_event() 176 if (mp->fib.dst == fen_info->dst && mp->fib.dst_len == fen_info->dst_len) in mlx5_lag_fib_route_event() 193 mlx5_lag_fib_set(mp, fi, fen_info->dst, fen_info->dst_len); in mlx5_lag_fib_route_event() 208 mlx5_lag_fib_set(mp, fi, fen_info->dst, fen_info->dst_len); in mlx5_lag_fib_route_event() 249 &fib_work->fen_info); in mlx5_lag_fib_update() 250 fib_info_put(fib_work->fen_info.fi); in mlx5_lag_fib_update() 306 fi = fen_info->fi; in mlx5_lag_fib_event() 313 fib_work->fen_info = *fen_info; in mlx5_lag_fib_event() [all …]
|
/linux/drivers/net/netdevsim/ |
H A D | fib.c | 285 fen_info->dst_len, AF_INET, fen_info->tb_id); in nsim_fib4_rt_create() 287 fib4_rt->fi = fen_info->fi; in nsim_fib4_rt_create() 289 fib4_rt->dscp = fen_info->dscp; in nsim_fib4_rt_create() 290 fib4_rt->type = fen_info->type; in nsim_fib4_rt_create() 310 fen_info->tb_id); in nsim_fib4_rt_lookup() 324 fri.fi = fen_info->fi; in nsim_fib4_rt_offload_failed_flag_set() 325 fri.tb_id = fen_info->tb_id; in nsim_fib4_rt_offload_failed_flag_set() 327 fri.dst_len = fen_info->dst_len; in nsim_fib4_rt_offload_failed_flag_set() 328 fri.dscp = fen_info->dscp; in nsim_fib4_rt_offload_failed_flag_set() 329 fri.type = fen_info->type; in nsim_fib4_rt_offload_failed_flag_set() [all …]
|
/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_router.c | 102 key->prefix_len = fen_info->dst_len; in prestera_util_fen_info2fib_cache_key() 103 key->kern_tb_id = fen_info->tb_id; in prestera_util_fen_info2fib_cache_key() 631 fib_info_hold(fen_info->fi); in prestera_kern_fib_cache_create() 632 memcpy(&fib_cache->fen4_info, fen_info, sizeof(*fen_info)); in prestera_kern_fib_cache_create() 649 fib_info_put(fen_info->fi); in prestera_kern_fib_cache_create() 1403 &fib_work->fen_info.info); in __prestera_router_fib_event_work() 1421 &fib_work->fen_info.dst, in __prestera_router_fib_event_work() 1422 fib_work->fen_info.dst_len); in __prestera_router_fib_event_work() 1448 if (!fen_info->fi) in __prestera_router_fib_event() 1455 fib_info_hold(fen_info->fi); in __prestera_router_fib_event() [all …]
|
/linux/drivers/net/ethernet/rocker/ |
H A D | rocker.h | 134 const struct fib_entry_notifier_info *fen_info); 136 const struct fib_entry_notifier_info *fen_info);
|
H A D | rocker_main.c | 1724 const struct fib_entry_notifier_info *fen_info) in rocker_world_fib4_add() argument 1730 return wops->fib4_add(rocker, fen_info); in rocker_world_fib4_add() 1740 return wops->fib4_del(rocker, fen_info); in rocker_world_fib4_del() 2108 struct fib_entry_notifier_info fen_info; member 2130 fib_info_put(fib_work->fen_info.fi); in rocker_router_fib_event_work() 2134 fib_info_put(fib_work->fen_info.fi); in rocker_router_fib_event_work() 2171 struct fib_entry_notifier_info *fen_info = ptr; in rocker_router_fib_event() local 2173 if (fen_info->fi->fib_nh_is_v6) { in rocker_router_fib_event() 2178 if (fen_info->fi->nh) { in rocker_router_fib_event() 2185 memcpy(&fib_work->fen_info, ptr, sizeof(fib_work->fen_info)); in rocker_router_fib_event() [all …]
|
H A D | rocker_ofdpa.c | 2722 const struct fib_entry_notifier_info *fen_info) in ofdpa_fib4_add() argument 2731 nh = fib_info_nh(fen_info->fi, 0); in ofdpa_fib4_add() 2735 err = ofdpa_port_fib_ipv4(ofdpa_port, htonl(fen_info->dst), in ofdpa_fib4_add() 2736 fen_info->dst_len, fen_info->fi, in ofdpa_fib4_add() 2737 fen_info->tb_id, 0); in ofdpa_fib4_add() 2745 const struct fib_entry_notifier_info *fen_info) in ofdpa_fib4_del() argument 2753 nh = fib_info_nh(fen_info->fi, 0); in ofdpa_fib4_del() 2758 return ofdpa_port_fib_ipv4(ofdpa_port, htonl(fen_info->dst), in ofdpa_fib4_del() 2759 fen_info->dst_len, fen_info->fi, in ofdpa_fib4_del() 2760 fen_info->tb_id, OFDPA_OP_FLAG_REMOVE); in ofdpa_fib4_del()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun_encap.c | 1733 struct fib_entry_notifier_info *fen_info; in mlx5e_init_fib_work_ipv4() local 1739 fen_info = container_of(info, struct fib_entry_notifier_info, info); in mlx5e_init_fib_work_ipv4() 1740 if (fen_info->fi->nh) in mlx5e_init_fib_work_ipv4() 1742 fib_dev = fib_info_nh(fen_info->fi, 0)->fib_nh_dev; in mlx5e_init_fib_work_ipv4() 1744 fen_info->dst_len != 32) in mlx5e_init_fib_work_ipv4() 1751 key.endpoint_ip.v4 = htonl(fen_info->dst); in mlx5e_init_fib_work_ipv4() 1778 struct fib6_entry_notifier_info *fen_info; in mlx5e_init_fib_work_ipv6() local 1785 fib_dev = fib6_info_nh_dev(fen_info->rt); in mlx5e_init_fib_work_ipv6() 1787 fen_info->rt->fib6_dst.plen != 128) in mlx5e_init_fib_work_ipv6() 1794 memcpy(&key.endpoint_ip.v6, &fen_info->rt->fib6_dst.addr, in mlx5e_init_fib_work_ipv6() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_router.c | 5997 fri.fi = fen_info->fi; in mlxsw_sp_fib4_offload_failed_flag_set() 5998 fri.tb_id = fen_info->tb_id; in mlxsw_sp_fib4_offload_failed_flag_set() 6001 fri.dscp = fen_info->dscp; in mlxsw_sp_fib4_offload_failed_flag_set() 6002 fri.type = fen_info->type; in mlxsw_sp_fib4_offload_failed_flag_set() 6405 switch (fen_info->type) { in mlxsw_sp_fib4_entry_type_set() 6546 fen_info->dst_len); in mlxsw_sp_fib4_entry_lookup() 6818 if (fen_info->fi->nh && in mlxsw_sp_router_fib4_replace() 6823 &fen_info->dst, sizeof(fen_info->dst), in mlxsw_sp_router_fib4_replace() 6824 fen_info->dst_len, in mlxsw_sp_router_fib4_replace() 7875 &fib_work->fen_info); in mlxsw_sp_router_fib4_event_work() [all …]
|