Re: [PATCH bpf-next v4 2/6] net: tun: enable transfer of XDP metadata to skb

2025-03-03 Thread Martin KaFai Lau
On 3/3/25 8:13 AM, Marcus Wichelmann wrote: Am 28.02.25 um 20:49 schrieb Martin KaFai Lau: On 2/27/25 6:23 AM, Marcus Wichelmann wrote: When the XDP metadata area was used, it is expected that the same metadata can also be accessed from TC, as can be read in the description of the bpf_xdp_adjus

Re: [PATCH bpf-next v4 2/6] net: tun: enable transfer of XDP metadata to skb

2025-03-03 Thread Marcus Wichelmann
Am 28.02.25 um 20:49 schrieb Martin KaFai Lau: > On 2/27/25 6:23 AM, Marcus Wichelmann wrote: >> When the XDP metadata area was used, it is expected that the same >> metadata can also be accessed from TC, as can be read in the description >> of the bpf_xdp_adjust_meta helper function. In the tun dr

Re: [PATCH bpf-next v4 2/6] net: tun: enable transfer of XDP metadata to skb

2025-02-28 Thread Martin KaFai Lau
On 2/27/25 6:23 AM, Marcus Wichelmann wrote: When the XDP metadata area was used, it is expected that the same metadata can also be accessed from TC, as can be read in the description of the bpf_xdp_adjust_meta helper function. In the tun driver, this was not yet implemented. To make this work,

[PATCH bpf-next v4 2/6] net: tun: enable transfer of XDP metadata to skb

2025-02-27 Thread Marcus Wichelmann
When the XDP metadata area was used, it is expected that the same metadata can also be accessed from TC, as can be read in the description of the bpf_xdp_adjust_meta helper function. In the tun driver, this was not yet implemented. To make this work, the skb that is being built on XDP_PASS should