]> www.infradead.org Git - users/hch/dma-mapping.git/commitdiff
Merge branch 'bpf: devmap: provide rxq after redirect'
authorMartin KaFai Lau <martin.lau@kernel.org>
Wed, 2 Oct 2024 20:48:27 +0000 (13:48 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Wed, 2 Oct 2024 20:51:49 +0000 (13:51 -0700)
Florian Kauer says:

====================
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.

Add bugfix and related selftest.

---
Changes in v4:
- return -> goto out_close, thanks Toke
- Link to v3: https://lore.kernel.org/r/20240909-devel-koalo-fix-ingress-ifindex-v3-0-66218191ecca@linutronix.de

Changes in v3:
- initialize skel to NULL, thanks Stanislav
- Link to v2: https://lore.kernel.org/r/20240906-devel-koalo-fix-ingress-ifindex-v2-0-4caa12c644b4@linutronix.de

Changes in v2:
- changed fixes tag
- added selftest
- Link to v1: https://lore.kernel.org/r/20240905-devel-koalo-fix-ingress-ifindex-v1-1-d12a0d74c29c@linutronix.de
====================

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>

Trivial merge