Home
last modified time | relevance | path

Searched refs:nexthop (Results 1 – 25 of 69) sorted by relevance

123

/kernel/linux/linux-5.10/include/net/
Dnexthop.h22 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
115 struct nexthop *nexthop_find_by_id(struct net *net, u32 id);
118 static inline bool nexthop_get(struct nexthop *nh) in nexthop_get()
123 static inline void nexthop_put(struct nexthop *nh) in nexthop_put()
129 static inline bool nexthop_cmp(const struct nexthop *nh1, in nexthop_cmp()
130 const struct nexthop *nh2) in nexthop_cmp()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Drouter_mpath_nh.sh19 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 del id 105
[all …]
Drouter_multipath.sh19 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 via 169.254.3.13 dev $rp23
[all …]
Dfib_offload_lib.sh491 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 via 2001:db8:2::2 dev dummy2 \
537 nexthop via 2001:db8:3::2 dev dummy3
542 nexthop via 2001:db8:1::2 dev dummy1
[all …]
Dgre_inner_v4_multipath.sh103 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 via 192.0.2.162
Dip6gre_inner_v4_multipath.sh102 ip route add vrf v$ol1 192.0.4.0/24 nexthop dev g1
126 nexthop via 2001:db8:81::2 \
127 nexthop via 2001:db8:82::2
150 nexthop via 2001:db8:81::1 \
151 nexthop via 2001:db8:82::1
182 ip route add vrf v$ol4 192.0.3.0/24 nexthop dev g2
261 nexthop via 2001:db8:81::2 weight $weight1 \
262 nexthop via 2001:db8:82::2 weight $weight2
280 nexthop via 2001:db8:81::2 \
281 nexthop via 2001:db8:82::2
Dgre_multipath.sh94 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
Dgre_inner_v6_multipath.sh127 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
262 nexthop via 192.0.2.146 weight $weight1 \
263 nexthop via 192.0.2.162 weight $weight2
282 nexthop via 192.0.2.146 \
283 nexthop via 192.0.2.162
Dip6gre_inner_v6_multipath.sh126 nexthop via 2001:db8:81::2 \
127 nexthop via 2001:db8:82::2
150 nexthop via 2001:db8:81::1 \
151 nexthop via 2001:db8:82::1
261 nexthop via 2001:db8:81::2 weight $weight1 \
262 nexthop via 2001:db8:82::2 weight $weight2
281 nexthop via 2001:db8:81::2 \
282 nexthop via 2001:db8:82::2
Dtc_flower_router.sh13 ip route add 192.0.2.0/24 vrf v$h1 nexthop via 192.0.1.2
14 ip route add 192.0.3.0/24 vrf v$h1 nexthop via 192.0.1.2
29 ip route add 192.0.1.0/24 vrf v$h2 nexthop via 192.0.2.2
30 ip route add 192.0.3.0/24 vrf v$h2 nexthop via 192.0.2.2
45 ip route add 192.0.1.0/24 vrf v$h3 nexthop via 192.0.3.2
46 ip route add 192.0.2.0/24 vrf v$h3 nexthop via 192.0.3.2
Drouter_multicast.sh44 ip route add 198.51.100.16/28 vrf v$h1 nexthop via 198.51.100.1
45 ip route add 198.51.100.32/28 vrf v$h1 nexthop via 198.51.100.1
47 ip route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::1
48 ip route add 2001:db8:3::/64 vrf v$h1 nexthop via 2001:db8:1::1
70 ip route add 198.51.100.0/28 vrf v$h2 nexthop via 198.51.100.17
71 ip route add 198.51.100.32/28 vrf v$h2 nexthop via 198.51.100.17
73 ip route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::1
74 ip route add 2001:db8:3::/64 vrf v$h2 nexthop via 2001:db8:2::1
96 ip route add 198.51.100.0/28 vrf v$h3 nexthop via 198.51.100.33
97 ip route add 198.51.100.16/28 vrf v$h3 nexthop via 198.51.100.33
[all …]
Drouter_bridge.sh14 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2
15 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2
28 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129
29 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::1
Drouter_bridge_vlan.sh16 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2
17 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2
31 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129
32 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::1
Drouter_broadcast.sh18 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
19 ip route add 198.51.200.0/24 vrf vrf-h1 nexthop via 192.0.2.1
43 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
44 ip route add 198.51.200.0/24 vrf vrf-h2 nexthop via 198.51.100.1
68 ip route add 192.0.2.0/24 vrf vrf-h3 nexthop via 198.51.200.1
69 ip route add 198.51.100.0/24 vrf vrf-h3 nexthop via 198.51.200.1
Drouter_vid_1.sh16 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1
17 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1
40 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1
41 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1
Dvxlan_symmetric.sh129 ip route add default vrf $vrf_name nexthop via $gw_ip
140 ip route del default vrf $vrf_name nexthop via $gw_ip
179 ip route add 10.0.0.2/32 nexthop via 192.0.2.2
293 ip route del 10.0.0.2/32 nexthop via 192.0.2.2
313 ip route add 10.0.0.1/32 vrf vrf-spine nexthop via 192.0.2.1
314 ip route add 10.0.0.2/32 vrf vrf-spine nexthop via 192.0.3.1
319 ip route del 10.0.0.2/32 vrf vrf-spine nexthop via 192.0.3.1
320 ip route del 10.0.0.1/32 vrf vrf-spine nexthop via 192.0.2.1
350 ip route add 10.0.0.1/32 nexthop via 192.0.3.2
487 ip route add $host1_ip/32 vrf vrf-green nexthop via $vtep_ip \
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dfib_offload.sh118 nexthop via 2001:db8:1::2 dev $spine_p1 \
119 nexthop via 2001:db8:2::2 dev $spine_p2
125 nexthop via 2001:db8:1::3 dev $spine_p1
133 nexthop via 2001:db8:1::2 dev $spine_p1 \
134 nexthop via 2001:db8:2::2 dev $spine_p2
141 nexthop via 2001:db8:1::3 dev $spine_p1
150 nexthop via 2001:db8:1::3 dev $spine_p1
183 nexthop via 2001:db8:1::2 dev $spine_p1 \
184 nexthop via 2001:db8:2::2 dev $spine_p2
198 nexthop via 2001:db8:1::3 dev $spine_p1 \
[all …]
Dblackhole_routes.sh56 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
Done_armed_router.sh56 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
Ddevlink_trap_l3_exceptions.sh65 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2
66 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2
75 ip -6 route del default vrf v$h1 nexthop via 2001:db8:1::2
76 ip -4 route del default vrf v$h1 nexthop via 192.0.2.2
85 ip -4 route add default vrf v$h2 nexthop via 198.51.100.2
86 ip -6 route add default vrf v$h2 nexthop via 2001:db8:2::2
91 ip -6 route del default vrf v$h2 nexthop via 2001:db8:2::2
92 ip -4 route del default vrf v$h2 nexthop via 198.51.100.2
Ddevlink_trap_l3_drops.sh66 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2
67 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2
72 ip -6 route del default vrf v$h1 nexthop via 2001:db8:1::2
73 ip -4 route del default vrf v$h1 nexthop via 192.0.2.2
82 ip -4 route add default vrf v$h2 nexthop via 198.51.100.2
83 ip -6 route add default vrf v$h2 nexthop via 2001:db8:2::2
88 ip -6 route del default vrf v$h2 nexthop via 2001:db8:2::2
89 ip -4 route del default vrf v$h2 nexthop via 198.51.100.2
Ddevlink_trap_control.sh95 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2
96 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2
101 ip -6 route del default vrf v$h1 nexthop via 2001:db8:1::2
102 ip -4 route del default vrf v$h1 nexthop via 192.0.2.2
111 ip -4 route add default vrf v$h2 nexthop via 198.51.100.2
112 ip -6 route add default vrf v$h2 nexthop via 2001:db8:2::2
117 ip -6 route del default vrf v$h2 nexthop via 2001:db8:2::2
118 ip -4 route del default vrf v$h2 nexthop via 198.51.100.2
/kernel/linux/linux-5.10/net/ipv4/
Dnexthop.c19 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 *nh = container_of(head, struct nexthop, rcu); in nexthop_free_rcu()
120 static struct nexthop *nexthop_alloc(void) in nexthop_alloc()
122 struct nexthop *nh; in nexthop_alloc()
124 nh = kzalloc(sizeof(struct nexthop), GFP_KERNEL); in nexthop_alloc()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dfib_nexthops.sh230 out=$($IP nexthop ls ${nharg} 2>/dev/null)
340 $IP nexthop help 2>&1 | grep -q fdb
585 $IP nexthop flush >/dev/null 2>&1
625 $IP nexthop flush >/dev/null 2>&1
786 $IP nexthop flush >/dev/null 2>&1
795 $IP nexthop flush >/dev/null 2>&1
824 $IP nexthop flush >/dev/null 2>&1
830 $IP nexthop del id 100
831 $IP nexthop add id 100 via 2001:db8:91::2 dev veth1
838 $IP nexthop replace id 102 group 100/101
[all …]
Dicmp_redirect.sh340 run_cmd ip -netns r1 nexthop replace id 1 via ${R2_N1_IP} dev eth0
341 run_cmd ip -netns r1 nexthop replace id 2 via ${R2_LLADDR} dev eth0
346 run_cmd ip -netns r1 nexthop flush
347 run_cmd ip -netns h1 nexthop flush
355 run_cmd ip -netns r1 nexthop add id 1 via ${R2_R1_N1_IP} dev eth1
358 run_cmd ip -netns r1 nexthop add id 2 via ${R2_R1_N1_IP6} dev eth1
362 run_cmd ip -netns h1 nexthop add id 1 via ${R1_N1_IP} dev br0
365 run_cmd ip -netns h1 nexthop add id 2 via ${R1_LLADDR} dev br0
519 ip nexthop ls >/dev/null 2>&1

123