diff options
| author | Ido Schimmel <[email protected]> | 2025-06-12 12:23:22 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-06-16 22:31:14 +0000 |
| commit | a2840d4e25270cabff92ba10146cda00d5b92ec0 (patch) | |
| tree | e0383711b3c79ea0e0cb01be412fb4b03bcca1da /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | seg6: Call seg6_lookup_any_nexthop() from End.X behavior (diff) | |
| download | kernel-a2840d4e25270cabff92ba10146cda00d5b92ec0.tar.gz kernel-a2840d4e25270cabff92ba10146cda00d5b92ec0.zip | |
seg6: Allow End.X behavior to accept an oif
Extend the End.X behavior to accept an output interface as an optional
attribute and make use of it when resolving a route. This is needed when
user space wants to use a link-local address as the nexthop address.
Before:
# ip route add 2001:db8:1::/64 encap seg6local action End.X nh6 fe80::1 oif eth0 dev sr6
# ip route add 2001:db8:2::/64 encap seg6local action End.X nh6 2001:db8:10::1 dev sr6
$ ip -6 route show
2001:db8:1::/64 encap seg6local action End.X nh6 fe80::1 dev sr6 metric 1024 pref medium
2001:db8:2::/64 encap seg6local action End.X nh6 2001:db8:10::1 dev sr6 metric 1024 pref medium
After:
# ip route add 2001:db8:1::/64 encap seg6local action End.X nh6 fe80::1 oif eth0 dev sr6
# ip route add 2001:db8:2::/64 encap seg6local action End.X nh6 2001:db8:10::1 dev sr6
$ ip -6 route show
2001:db8:1::/64 encap seg6local action End.X nh6 fe80::1 oif eth0 dev sr6 metric 1024 pref medium
2001:db8:2::/64 encap seg6local action End.X nh6 2001:db8:10::1 dev sr6 metric 1024 pref medium
Note that the oif attribute is not dumped to user space when it was not
specified (as an oif of 0) since each entry keeps track of the optional
attributes that it parsed during configuration (see struct
seg6_local_lwt::parsed_optattrs).
Signed-off-by: Ido Schimmel <[email protected]>
Reviewed-by: Andrea Mayer <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions
