Home
last modified time | relevance | path

Searched refs:nexthops (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
H A Dfib_offload.sh130 # only two nexthops.
271 # Prepare 40K /64 multipath routes with 16 nexthops each and check how
279 nexthops+=" nexthop via 2001:db8:1::10:$i dev $spine_p1"
283 echo "route add 2001:db8:8:$(printf "%x" $i)::/64$nexthops" \
285 echo "route del 2001:db8:8:$(printf "%x" $i)::/64$nexthops" \
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/
H A Dfib_offload.sh130 # only two nexthops.
271 # Prepare 40K /64 multipath routes with 16 nexthops each and check how
279 nexthops+=" nexthop via 2001:db8:1::10:$i dev $spine_p1"
283 echo "route add 2001:db8:8:$(printf "%x" $i)::/64$nexthops" \
285 echo "route del 2001:db8:8:$(printf "%x" $i)::/64$nexthops" \
/kernel/linux/linux-6.6/drivers/net/netdevsim/
H A Dfib.c49 struct nsim_fib_entry nexthops; member
155 entry = &fib_data->nexthops; in nsim_fib_get_val()
183 entry = &fib_data->nexthops; in nsim_fib_set_max()
785 /* If not all the nexthops are deleted, then only reduce the nexthop in nsim_fib6_rt_remove()
1163 if (!atomic64_add_unless(&data->nexthops.num, 1, in nsim_nexthop_account()
1164 data->nexthops.max)) { in nsim_nexthop_account()
1166 NL_SET_ERR_MSG_MOD(extack, "Exceeded number of supported nexthops"); in nsim_nexthop_account()
1170 if (WARN_ON(occ > atomic64_read(&data->nexthops.num))) in nsim_nexthop_account()
1172 atomic64_sub(occ, &data->nexthops.num); in nsim_nexthop_account()
1178 atomic64_sub(i, &data->nexthops in nsim_nexthop_account()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/netdevsim/
H A Dnexthop.sh96 | jq '.[][][] | select(.name=="nexthops") | .["occ"]')
109 $DEVLINK resource set $DEVLINK_DEV path nexthops size $size
899 # 10 with only two nexthops. Since the new group is allocated before
1008 $DEVLINK resource set $DEVLINK_DEV path nexthops size 3
1012 $DEVLINK resource set $DEVLINK_DEV path nexthops size 9999
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c1742 * our nexthops and IPIP tunnels, and doesn't sever the crif->rif link. in mlxsw_sp_rif_migrate_destroy()
2186 struct list_head nexthop_list; /* list of nexthops using
2602 /* If this neigh have nexthops, make the kernel think this neigh in mlxsw_sp_router_neighs_update_nh()
3110 struct mlxsw_sp_nexthop nexthops[]; member
3116 struct mlxsw_sp_crif *crif = nhgi->nexthops[0].crif; in mlxsw_sp_nhgi_rif()
3230 struct mlxsw_sp_nexthop *nh_iter = &nhgi->nexthops[i]; in mlxsw_sp_nexthop_indexes()
3255 struct mlxsw_sp_nexthop *nh_iter = &nhgi->nexthops[i]; in mlxsw_sp_nexthop_group_has_ipip()
3372 nh = &nh_grp->nhgi->nexthops[i]; in mlxsw_sp_nexthop6_group_has_nexthop()
3444 nh = &nh_grp->nhgi->nexthops[i]; in mlxsw_sp_nexthop_group_hash_obj()
3743 nh = &nhgi->nexthops[ in mlxsw_sp_nexthop_group_update()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c1955 struct list_head nexthop_list; /* list of nexthops using
2366 /* If this neigh have nexthops, make the kernel think this neigh in mlxsw_sp_router_neighs_update_nh()
2795 struct mlxsw_sp_nexthop nexthops[0]; member
2796 #define nh_rif nexthops[0].rif
2875 struct mlxsw_sp_nexthop *nh_iter = &nh_grp->nexthops[i]; in mlxsw_sp_nexthop_indexes()
2898 struct mlxsw_sp_nexthop *nh_iter = &nh_grp->nexthops[i]; in mlxsw_sp_nexthop_group_has_ipip()
2930 nh = &nh_grp->nexthops[i]; in mlxsw_sp_nexthop6_group_has_nexthop()
3003 nh = &nh_grp->nexthops[i]; in mlxsw_sp_nexthop_group_hash_obj()
3243 nh = &nh_grp->nexthops[i]; in mlxsw_sp_nexthop_group_update()
3349 nh = &nh_grp->nexthops[ in mlxsw_sp_nexthop_group_normalize()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dpmtu.sh285 nexthops="
295 # nexthop id correlates to id in nexthops config above
657 for i in ${nexthops}; do
H A Dfib_nexthops.sh280 # create nexthops with different gateways
360 # create group with multiple nexthops
365 log_test $? 0 "Fdb Nexthop group with multiple nexthops"
372 # fdb nexthop group can only contain fdb nexthops
376 log_test $? 2 "Fdb Nexthop group with non-fdb nexthops"
378 # Non fdb nexthop group can not contain fdb nexthops
382 log_test $? 2 "Non-Fdb Nexthop group with fdb nexthops"
404 ## fdb nexthops can only reference nexthop groups and not nexthops
440 # create group with multiple nexthops
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dpmtu.sh305 nexthops="
315 # nexthop id correlates to id in nexthops config above
745 for i in ${nexthops}; do
H A Dfib_nexthops.sh325 # create nexthops with different gateways
454 # create group with multiple nexthops
459 log_test $? 0 "Fdb Nexthop group with multiple nexthops"
466 # fdb nexthop group can only contain fdb nexthops
470 log_test $? 2 "Fdb Nexthop group with non-fdb nexthops"
472 # Non fdb nexthop group can not contain fdb nexthops
476 log_test $? 2 "Non-Fdb Nexthop group with fdb nexthops"
498 ## fdb nexthops can only reference nexthop groups and not nexthops
534 # create group with multiple nexthops
[all...]

Completed in 28 milliseconds