diff options
author | 2023-06-21 13:42:09 +0300 | |
---|---|---|
committer | 2023-06-21 23:36:59 +0200 | |
commit | 97fbfeb86917bdbe9c41d5143e335a929147f405 (patch) | |
tree | 98db3e35f7ef5e4ade1b7fbcedec3b7702a30b9a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Factor out socket lookup functions for the TC hookpoint. (diff) | |
download | wireguard-linux-97fbfeb86917bdbe9c41d5143e335a929147f405.tar.xz wireguard-linux-97fbfeb86917bdbe9c41d5143e335a929147f405.zip |
bpf: Call __bpf_sk_lookup()/__bpf_skc_lookup() directly via TC hookpoint
skb->dev always exists in the tc flow. There is no need to use
bpf_skc_lookup(), bpf_sk_lookup() from this code path.
This change facilitates fixing the tc flow to be VRF aware.
Signed-off-by: Gilad Sever <gilad9366@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Reviewed-by: Eyal Birger <eyal.birger@gmail.com>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20230621104211.301902-3-gilad9366@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions