Daniel Borkmann
2c22542570
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>
2023-11-20 10:15:16 -08:00
..
2023-10-23 11:03:20 -07:00
2023-08-10 18:24:48 -07:00
2023-10-05 13:16:47 -07:00
2023-11-14 16:16:21 +01:00
2023-10-24 13:16:30 +02:00
2023-10-23 19:14:49 -07:00
2023-06-15 22:33:26 -07:00
2023-08-10 19:31:52 -07:00
2023-11-16 10:10:51 +01:00
2023-05-01 07:43:19 +01:00
2023-10-15 13:19:42 +01:00
2023-07-28 18:06:30 -07:00
2023-08-24 10:07:13 +02:00
2023-08-03 08:38:07 -07:00
2023-10-23 12:50:44 +02:00
2023-07-14 20:39:29 -07:00
2023-07-14 20:39:29 -07:00
2023-07-27 17:17:32 -07:00
2023-10-20 11:34:51 +01:00
2023-10-27 10:35:45 +01:00
2023-08-14 08:01:06 +01:00
2023-10-24 13:08:14 -07:00
2023-10-24 13:08:14 -07:00
2023-08-22 13:19:02 +02:00
2023-10-25 18:04:29 -07:00
2023-08-02 10:09:31 +01:00
2023-10-06 11:37:02 +01:00
2023-11-02 09:31:02 +01:00
2023-08-08 15:58:23 -07:00
2023-08-15 15:01:03 -07:00
2023-10-06 07:30:40 +02:00
2023-06-10 00:11:41 -07:00
2023-07-28 14:07:59 -07:00
2023-10-12 15:14:27 +03:00
2023-10-02 11:24:52 -07:00
2023-08-15 13:57:51 -07:00
2023-08-14 07:06:13 +01:00
2023-10-25 18:04:29 -07:00
2023-07-14 20:39:29 -07:00
2023-08-15 13:57:51 -07:00
2023-10-25 18:04:29 -07:00
2023-10-23 09:35:01 +01:00
2023-08-31 12:33:03 +02:00
2023-09-19 18:21:44 +02:00
2023-10-05 13:16:47 -07:00
2023-09-06 06:05:59 +01:00
2023-04-22 01:39:41 +02:00
2023-10-19 13:13:13 +02:00
2023-10-30 14:36:57 -07:00
2023-10-23 08:48:57 +01:00
2023-08-22 21:40:40 +02:00
2023-06-12 21:13:23 -07:00
2023-08-04 15:33:17 -07:00
2023-08-04 15:33:17 -07:00
2023-07-20 10:46:28 +02:00
2023-07-14 20:39:29 -07:00
2023-08-18 16:05:26 +02:00
2023-10-23 12:26:51 +02:00
2023-10-10 10:30:30 +02:00
2023-06-20 20:06:16 -07:00
2023-08-22 17:31:18 -07:00
2023-08-07 08:53:55 +01:00
2023-10-01 17:14:37 +01:00
2023-10-18 09:23:01 +01:00
2023-08-03 08:38:07 -07:00
2023-11-20 10:15:16 -08:00
2023-10-26 16:24:09 -07:00
2023-10-06 10:50:34 +01:00
2023-07-14 20:39:29 -07:00
2023-08-04 15:33:50 -07:00
2023-07-14 20:39:30 -07:00
2023-06-02 09:55:22 +01:00
2023-10-16 10:07:36 -07:00
2023-10-01 13:20:36 +01:00
2023-09-18 09:44:05 +02:00
2023-10-16 09:57:52 +01:00
2023-06-19 11:32:58 -07:00
2023-07-14 20:39:30 -07:00
2023-08-20 11:40:03 +01:00
2023-10-16 10:07:36 -07:00
2023-09-04 11:00:17 +01:00
2023-11-01 11:16:34 -10:00
2023-10-04 11:49:20 -07:00
2023-08-09 13:12:15 -07:00
2023-11-03 11:38:14 +00:00
2023-10-27 10:35:46 +01:00
2023-10-23 15:01:53 -07:00
2023-07-28 14:07:59 -07:00
2023-10-13 11:26:10 +01:00
2023-08-01 15:06:27 -07:00
2023-10-23 08:48:57 +01:00
2023-08-07 08:53:55 +01:00
2023-09-14 16:16:36 +02:00
2023-08-02 10:58:26 +01:00
2023-07-19 09:56:49 -07:00
2023-10-24 11:55:36 +02:00
2023-09-15 11:26:58 -07:00
2023-10-06 08:31:53 +02:00
2023-07-19 09:56:49 -07:00