Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: egressgw: clarify egress ifindex for BPF redirect
When the FIB lookup in to-netdev returns the same ifindex as the current interface, we want to skip the redirect. But that doesn't apply for the lookup in from-overlay - here we *always* need to redirect to the selected interface. As we previously handled the !is_defined(HAVE_FIB_IFINDEX) case, we can pass oif = 0 and trust that fib_do_redirect() will always use the ifindex from the fib_params. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
- Loading branch information