On 10/10/2018 10:37 AM, John Fastabend wrote:
Latest tree has a sk_lookup() helper supported in 'tc' layer now
to lookup the socket. And XDP has support for a "cpumap" object
that allows redirect to remote CPUs. Neither was specifically
designed for this but I suspect with some extra work these might
be what is needed.
I would start by looking at bpf_sk_lookup() in filter.c and the
cpumap type in ./kernel/bpf/cpumap.c, also in general sk_lookup
from XDP layer will likely be needed shortly anyways.
Thanks, John, for pointing to something I can start looking at. My
customer still wants to use the RPS that they already know, but I'll
start looking into how this also might work for us.
sln