]> 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>
Thu, 29 May 2025 09:13:59 +0000 (11:13 +0200)
commit53e37d3dc810d5c4dc669a1448ac933c27603952
treee945616dbcc93cd23e96276c1173de87b19bd929
parentf5462663684d2380ab33e6a7812399477805ead8
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>
Stable-dep-of: 184fb40f731b ("octeontx2-pf: Avoid adding dcbnl_ops for LBK and SDP vf")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c