/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | nexthop.sh | 4 # This test is for checking the nexthop offload API. It makes use of netdevsim 5 # which registers a listener to the nexthop notification chain. 61 out=$($IP nexthop show ${nharg} | sed -e 's/ *$//') 81 count=$($IP nexthop bucket show id $group_id nhid $nhid | 117 $IP nexthop add id 1 via 192.0.2.2 dev dummy1 119 check_err $? "Unexpected nexthop entry" 122 check_err $? "Wrong nexthop occupancy" 124 $IP nexthop del id 1 126 check_err $? "Wrong nexthop occupancy after delete" 128 log_test "Single nexthop ad [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
H A D | router_mpath_nh_res.sh | 23 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 24 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1 50 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1 51 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1 102 ip nexthop del id 103 103 ip nexthop del id 101 104 ip nexthop del id 102 105 ip nexthop del id 106 106 ip nexthop del id 104 107 ip nexthop de [all...] |
H A D | router_mpath_nh.sh | 25 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 26 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1 52 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1 53 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1 104 ip nexthop del id 103 105 ip nexthop del id 101 106 ip nexthop del id 102 107 ip nexthop del id 106 108 ip nexthop del id 104 109 ip nexthop de [all...] |
H A D | router_multipath.sh | 19 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 20 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1 46 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1 47 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1 84 nexthop via 169.254.2.22 dev $rp12 \ 85 nexthop via 169.254.3.23 dev $rp13 87 nexthop via fe80:2::22 dev $rp12 \ 88 nexthop via fe80:3::23 dev $rp13 134 nexthop via 169.254.2.12 dev $rp22 \ 135 nexthop vi [all...] |
H A D | fib_offload_lib.sh | 404 # When an IPv6 multipath route is added without the 'nexthop' keyword, 434 log_test "IPv6 append single route without 'nexthop' keyword" 491 nexthop via 2001:db8:1::2 dev dummy1 \ 492 nexthop via 2001:db8:2::2 dev dummy2 497 nexthop via 2001:db8:1::2 dev dummy1 \ 498 nexthop via 2001:db8:2::2 dev dummy2 503 nexthop via 2001:db8:1::2 dev dummy1 \ 504 nexthop via 2001:db8:2::2 dev dummy2 531 nexthop via 2001:db8:1::2 dev dummy1 536 nexthop vi [all...] |
H A D | gre_multipath_nh_res.sh | 102 ip -6 nexthop add id 101 dev g1a 103 ip -6 nexthop add id 102 dev g1b 104 ip nexthop add id 103 group 101/102 type resilient buckets 512 \ 116 ip nexthop del id 103 117 ip -6 nexthop del id 102 118 ip -6 nexthop del id 101 149 ip -6 nexthop add id 201 dev g2a 150 ip -6 nexthop add id 202 dev g2b 151 ip nexthop add id 203 group 201/202 type resilient buckets 512 \ 171 ip nexthop de [all...] |
H A D | gre_multipath_nh.sh | 102 ip -6 nexthop add id 101 dev g1a 103 ip -6 nexthop add id 102 dev g1b 104 ip nexthop add id 103 group 101/102 115 ip nexthop del id 103 116 ip -6 nexthop del id 102 117 ip -6 nexthop del id 101 148 ip -6 nexthop add id 201 dev g2a 149 ip -6 nexthop add id 202 dev g2b 150 ip nexthop add id 203 group 201/202 169 ip nexthop de [all...] |
H A D | gre_inner_v4_multipath.sh | 103 ip route add vrf v$ol1 192.0.4.0/24 nexthop dev g1 127 nexthop via 192.0.2.146 \ 128 nexthop via 192.0.2.162 151 nexthop via 192.0.2.145 \ 152 nexthop via 192.0.2.161 183 ip route add vrf v$ol4 192.0.3.0/24 nexthop dev g2 262 nexthop via 192.0.2.146 weight $weight1 \ 263 nexthop via 192.0.2.162 weight $weight2 281 nexthop via 192.0.2.146 \ 282 nexthop vi [all...] |
H A D | gre_multipath.sh | 94 nexthop dev g1a \ 95 nexthop dev g1b 132 nexthop dev g2a \ 133 nexthop dev g2b 215 nexthop dev g1a weight $weight1 \ 216 nexthop dev g1b weight $weight2 233 nexthop dev g1a \ 234 nexthop dev g1b
|
H A D | router_bridge_vlan.sh | 50 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2 51 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2 54 ip -4 route add 192.0.2.144/28 vrf v$h1 nexthop via 192.0.2.18 55 ip -6 route add 2001:db8:4::/64 vrf v$h1 nexthop via 2001:db8:3::2 75 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129 76 ip -4 route add 192.0.2.16/28 vrf v$h2 nexthop via 192.0.2.145 77 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::1 78 ip -6 route add 2001:db8:3::/64 vrf v$h2 nexthop via 2001:db8:4::1
|
/kernel/linux/linux-5.10/include/net/ |
H A D | nexthop.h | 3 * Generic nexthop implementation 22 struct nexthop; 53 struct nexthop *nh_parent; 67 struct nexthop *nh; 72 struct nexthop *nh_parent; /* nexthop of group with this entry */ 84 struct nexthop { struct 114 /* caller is holding rcu or rtnl; no reference taken to nexthop */ 115 struct nexthop *nexthop_find_by_id(struct net *net, u32 id); 118 static inline bool nexthop_get(struct nexthop *n [all...] |
/kernel/linux/linux-6.6/include/net/ |
H A D | nexthop.h | 3 * Generic nexthop implementation 22 struct nexthop; 59 struct nexthop *nh_parent; 99 struct nexthop *nh; 116 struct nexthop *nh_parent; /* nexthop of group with this entry */ 132 struct nexthop { struct 228 /* caller is holding rcu or rtnl; no reference taken to nexthop */ 229 struct nexthop *nexthop_find_by_id(struct net *net, u32 id); 232 static inline bool nexthop_get(struct nexthop *n [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
H A D | router_mpath_nh.sh | 19 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 20 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1 46 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1 47 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1 98 ip nexthop del id 103 99 ip nexthop del id 101 100 ip nexthop del id 102 101 ip nexthop del id 106 102 ip nexthop del id 104 103 ip nexthop de [all...] |
H A D | router_multipath.sh | 19 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 20 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1 46 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1 47 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1 84 nexthop via 169.254.2.22 dev $rp12 \ 85 nexthop via 169.254.3.23 dev $rp13 87 nexthop via fe80:2::22 dev $rp12 \ 88 nexthop via fe80:3::23 dev $rp13 134 nexthop via 169.254.2.12 dev $rp22 \ 135 nexthop vi [all...] |
H A D | fib_offload_lib.sh | 404 # When an IPv6 multipath route is added without the 'nexthop' keyword, 434 log_test "IPv6 append single route without 'nexthop' keyword" 491 nexthop via 2001:db8:1::2 dev dummy1 \ 492 nexthop via 2001:db8:2::2 dev dummy2 497 nexthop via 2001:db8:1::2 dev dummy1 \ 498 nexthop via 2001:db8:2::2 dev dummy2 503 nexthop via 2001:db8:1::2 dev dummy1 \ 504 nexthop via 2001:db8:2::2 dev dummy2 531 nexthop via 2001:db8:1::2 dev dummy1 536 nexthop vi [all...] |
H A D | gre_inner_v4_multipath.sh | 103 ip route add vrf v$ol1 192.0.4.0/24 nexthop dev g1 127 nexthop via 192.0.2.146 \ 128 nexthop via 192.0.2.162 151 nexthop via 192.0.2.145 \ 152 nexthop via 192.0.2.161 183 ip route add vrf v$ol4 192.0.3.0/24 nexthop dev g2 262 nexthop via 192.0.2.146 weight $weight1 \ 263 nexthop via 192.0.2.162 weight $weight2 281 nexthop via 192.0.2.146 \ 282 nexthop vi [all...] |
H A D | gre_multipath.sh | 94 nexthop dev g1a \ 95 nexthop dev g1b 132 nexthop dev g2a \ 133 nexthop dev g2b 215 nexthop dev g1a weight $weight1 \ 216 nexthop dev g1b weight $weight2 233 nexthop dev g1a \ 234 nexthop dev g1b
|
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | rtnetlink.sh | 565 nexthop via 192.0.2.2 dev $swp1 567 nexthop via 2001:db8:1::2 dev $swp1 571 check_err $? "ipv4 nexthop not marked as offloaded when should" 574 check_err $? "ipv6 nexthop not marked as offloaded when should" 581 check_err $? "ipv4 nexthop marked as offloaded when should not" 584 check_err $? "ipv6 nexthop marked as offloaded when should not" 591 check_err $? "ipv4 nexthop not marked as offloaded after neigh add" 594 check_err $? "ipv6 nexthop not marked as offloaded after neigh add" 596 log_test "nexthop offload indication" 608 # Test that invalid nexthop objec [all...] |
H A D | fib_offload.sh | 101 # Delete the routes and add the same route with a different nexthop 118 nexthop via 2001:db8:1::2 dev $spine_p1 \ 119 nexthop via 2001:db8:2::2 dev $spine_p2 123 # Append another nexthop and check that it is offloaded as well. 125 nexthop via 2001:db8:1::3 dev $spine_p1 127 check_err $? "appended nexthop not offloaded when should" 133 nexthop via 2001:db8:1::2 dev $spine_p1 \ 134 nexthop via 2001:db8:2::2 dev $spine_p2 138 # Append a nexthop with an higher metric and check that the offload 141 nexthop vi [all...] |
H A D | blackhole_routes.sh | 56 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2 57 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2 62 ip -6 route del default vrf v$h1 nexthop via 2001:db8:1::2 63 ip -4 route del default vrf v$h1 nexthop via 192.0.2.2 72 ip -4 route add default vrf v$h2 nexthop via 198.51.100.2 73 ip -6 route add default vrf v$h2 nexthop via 2001:db8:2::2 78 ip -6 route del default vrf v$h2 nexthop via 2001:db8:2::2 79 ip -4 route del default vrf v$h2 nexthop via 198.51.100.2
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | fib_offload.sh | 101 # Delete the routes and add the same route with a different nexthop 118 nexthop via 2001:db8:1::2 dev $spine_p1 \ 119 nexthop via 2001:db8:2::2 dev $spine_p2 123 # Append another nexthop and check that it is offloaded as well. 125 nexthop via 2001:db8:1::3 dev $spine_p1 127 check_err $? "appended nexthop not offloaded when should" 133 nexthop via 2001:db8:1::2 dev $spine_p1 \ 134 nexthop via 2001:db8:2::2 dev $spine_p2 138 # Append a nexthop with an higher metric and check that the offload 141 nexthop vi [all...] |
H A D | blackhole_routes.sh | 56 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2 57 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2 62 ip -6 route del default vrf v$h1 nexthop via 2001:db8:1::2 63 ip -4 route del default vrf v$h1 nexthop via 192.0.2.2 72 ip -4 route add default vrf v$h2 nexthop via 198.51.100.2 73 ip -6 route add default vrf v$h2 nexthop via 2001:db8:2::2 78 ip -6 route del default vrf v$h2 nexthop via 2001:db8:2::2 79 ip -4 route del default vrf v$h2 nexthop via 198.51.100.2
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | nexthop.c | 2 /* Generic nexthop implementation 8 #include <linux/nexthop.h> 15 #include <net/nexthop.h> 19 static void remove_nexthop(struct net *net, struct nexthop *nh, 41 struct nexthop *nh) in call_nexthop_notifiers() 45 err = blocking_notifier_call_chain(&net->nexthop.notifier_chain, in call_nexthop_notifiers() 68 head = &net->nexthop.devhash[hash]; in nexthop_devhash_add() 72 static void nexthop_free_mpath(struct nexthop *nh) in nexthop_free_mpath() 91 static void nexthop_free_single(struct nexthop *nh) in nexthop_free_single() 109 struct nexthop *n in nexthop_free_rcu() [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | nexthop.c | 2 /* Generic nexthop implementation 8 #include <linux/nexthop.h> 16 #include <net/nexthop.h> 23 static void remove_nexthop(struct net *net, struct nexthop *nh, 81 return !net->nexthop.notifier_chain.head; in nexthop_notifiers_is_empty() 101 const struct nexthop *nh) in nh_notifier_single_info_init() 181 const struct nexthop *nh) in nh_notifier_grp_info_init() 193 const struct nexthop *nh) in nh_notifier_grp_info_fini() 204 const struct nexthop *nh) in nh_notifier_info_init() 215 const struct nexthop *n in nh_notifier_info_fini() 3652 struct nexthop *nexthop; nexthop_set_hw_flags() local 3676 struct nexthop *nexthop; nexthop_bucket_set_hw_flags() local 3709 struct nexthop *nexthop; nexthop_res_grp_activity_update() local [all...] |
/kernel/linux/linux-6.6/drivers/net/netdevsim/ |
H A D | fib.c | 30 #include <net/nexthop.h> 556 * up from several fib6_info structs (one for each nexthop), so we in nsim_fib6_rt_create() 785 /* If not all the nexthops are deleted, then only reduce the nexthop in nsim_fib6_rt_remove() 1115 struct nsim_nexthop *nexthop; in nsim_nexthop_create() local 1119 nexthop = kzalloc(sizeof(*nexthop), GFP_KERNEL); in nsim_nexthop_create() 1120 if (!nexthop) in nsim_nexthop_create() 1123 nexthop->id = info->id; in nsim_nexthop_create() 1125 /* Determine the number of nexthop entries the new nexthop wil in nsim_nexthop_create() 1151 nsim_nexthop_destroy(struct nsim_nexthop *nexthop) nsim_nexthop_destroy() argument 1183 nsim_nexthop_hw_flags_set(struct net *net, const struct nsim_nexthop *nexthop, bool trap) nsim_nexthop_hw_flags_set() argument 1198 nsim_nexthop_add(struct nsim_fib_data *data, struct nsim_nexthop *nexthop, struct netlink_ext_ack *extack) nsim_nexthop_add() argument 1225 nsim_nexthop_replace(struct nsim_fib_data *data, struct nsim_nexthop *nexthop, struct nsim_nexthop *nexthop_old, struct netlink_ext_ack *extack) nsim_nexthop_replace() argument 1259 struct nsim_nexthop *nexthop, *nexthop_old; nsim_nexthop_insert() local 1283 struct nsim_nexthop *nexthop; nsim_nexthop_remove() local 1354 struct nsim_nexthop *nexthop = ptr; nsim_nexthop_free() local 1370 struct nsim_nexthop *nexthop; nsim_nexthop_bucket_activity_write() local [all...] |