]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-pf: Add AF_XDP non-zero copy support
authorSuman Ghosh <sumang@marvell.com>
Thu, 13 Feb 2025 05:31:37 +0000 (11:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:40:20 +0000 (14:40 +0200)
commita0059910132ab03653e8b751a7f0a9ba533c9156
treebec282c338e20b40d1d5209da47bca4cf4e00782
parent2a2d7bf86dd32f835141ac8991f3d7bf2492f4d2
octeontx2-pf: Add AF_XDP non-zero copy support

[ Upstream commit b4164de5041b51cda3438e75bce668e2556057c3 ]

Set xdp rx ring memory type as MEM_TYPE_PAGE_POOL for
af-xdp to work. This is needed since xdp_return_frame
internally will use page pools.

Fixes: 06059a1a9a4a ("octeontx2-pf: Add XDP support to netdev PF")
Signed-off-by: Suman Ghosh <sumang@marvell.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c