Thread (10 messages) flat view 10 messages, 2 authors, 2020-05-18

Re: "Forwarding" from TC classifier

From: David Ahern <hidden>
Date: 2020-05-15 14:24:43
Also in: bpf

On 5/15/20 3:59 AM, Lorenz Bauer wrote:
Yes, but that doesn't play well with changing the source address to
the local machine's, since the upper part of the stack will drop the
packet due to accept_local=0.
Can you defer the source address swap to the Tx path? Let the packet go
up the stack and do the fib lookup again as an skb. neighbor entry does
not exist, so the packet is stashed, neighbor resolution done, once
resolved the packet goes out. tc program on the egress device can flip
the source address, and then subsequent packets take the XDP fast path.

If the next host is on the same LAN I believe the stack will want to
generate an ICMP redirect, but that can be squashed.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help