summaryrefslogtreecommitdiffstats
path: root/samples/auxdisplay
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2023-11-14 01:42:18 +0100
committerMartin KaFai Lau <martin.lau@kernel.org>2023-11-20 10:15:16 -0800
commit2c225425704078282e152ba692649237f78b3d7a (patch)
tree4e96deef285ebb130c3d8904010d2920c81160c2 /samples/auxdisplay
parent024ee930cb3c9ae49e4266aee89cfde0ebb407e1 (diff)
downloadlinux-stable-2c225425704078282e152ba692649237f78b3d7a.tar.gz
linux-stable-2c225425704078282e152ba692649237f78b3d7a.tar.bz2
linux-stable-2c225425704078282e152ba692649237f78b3d7a.zip
bpf, netkit: Add indirect call wrapper for fetching peer dev
ndo_get_peer_dev is used in tcx BPF fast path, therefore make use of indirect call wrapper and therefore optimize the bpf_redirect_peer() internal handling a bit. Add a small skb_get_peer_dev() wrapper which utilizes the INDIRECT_CALL_1() macro instead of open coding. Future work could potentially add a peer pointer directly into struct net_device in future and convert veth and netkit over to use it so that eventually ndo_get_peer_dev can be removed. Co-developed-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Stanislav Fomichev <sdf@google.com> Link: https://lore.kernel.org/r/20231114004220.6495-7-daniel@iogearbox.net Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'samples/auxdisplay')
0 files changed, 0 insertions, 0 deletions