Re: [PATCH net v4 1/2] bpf: devmap: provide rxq after redirect

2024-10-02 Thread Jakub Kicinski
On Wed, 11 Sep 2024 10:41:18 +0200 Florian Kauer wrote: > rxq contains a pointer to the device from where > the redirect happened. Currently, the BPF program > that was executed after a redirect via BPF_MAP_TYPE_DEVMAP* > does not have it set. Acked-by: Jakub Kicinski

[PATCH net v4 1/2] bpf: devmap: provide rxq after redirect

2024-09-11 Thread Florian Kauer
rxq contains a pointer to the device from where the redirect happened. Currently, the BPF program that was executed after a redirect via BPF_MAP_TYPE_DEVMAP* does not have it set. This is particularly bad since accessing ingress_ifindex, e.g. SEC("xdp") int prog(struct xdp_md *pkt) { retu