From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-183.mta1.migadu.com (out-183.mta1.migadu.com [95.215.58.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C6BDC8CE for ; Wed, 24 Sep 2025 01:41:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758678112; cv=none; b=M583UpdgDl9LVgppwoQXB9sjRkRx4tV1qb85dHdzwOMZ98FrJE3B9LRwnx34zGJbUv7bNyqpqM4Bd6tzvr6lEO0FsMqJBV1i4JgpBcBI4DIm4DGNf4RpH+cLzIAD/xIQvec+1a8dhOYtbAAng8cIZIuGkkKOp4ksPOJ9LR+VDPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758678112; c=relaxed/simple; bh=cXs9Owtwm5o6WI/dGqnXnOeTUqhihC4uz2+RrT6ySqE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aSZBoBwDU1JXPsuGE7PSciXfV5ZAEZFcBV5lSjeMkpUvZSaEl1NuUPRVJSyveoRLmx6gDIxl2Meu3Acyb2cn8uQsVmFpI174JZL5gUgGj1a+iZY+qIiLxaRk6EvICaV8uQsD4AdhrBvCxR/vHzdbrKxx+1jtKuDwhnp7SDxLagw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=i9V6+sh1; arc=none smtp.client-ip=95.215.58.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="i9V6+sh1" Message-ID: <87568a0b-93c8-4fc1-a721-dbfeda01d0bb@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1758678108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hirYrJPjT9hxA6JxeStFs+VMmPTpuoEk/zkkhuulHMI=; b=i9V6+sh1ybXBPf1eF5EKPYHUlisYDpcAIkxaaYbHBabMJRgv1iMqkyyIZn7YLcYmk4KVhT lITCxeWnp3+iXR5e052+P4SPA8pw11coE/cTKn80at+0JxHCS0a4ypQ0YccaLrr7SZeCvc VHA4a1FtzAZprTZHAvromiU9Hqo5FjA= Date: Tue, 23 Sep 2025 18:41:40 -0700 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH bpf-next v7 0/8] Add kfunc bpf_xdp_pull_data To: Amery Hung Cc: bpf@vger.kernel.org, netdev@vger.kernel.org, alexei.starovoitov@gmail.com, andrii@kernel.org, daniel@iogearbox.net, paul.chaignon@gmail.com, kuba@kernel.org, stfomichev@gmail.com, martin.lau@kernel.org, mohsin.bashr@gmail.com, noren@nvidia.com, dtatulea@nvidia.com, saeedm@nvidia.com, tariqt@nvidia.com, mbloch@nvidia.com, maciej.fijalkowski@intel.com, kernel-team@meta.com References: <20250922233356.3356453-1-ameryhung@gmail.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau Content-Language: en-US In-Reply-To: <20250922233356.3356453-1-ameryhung@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 9/22/25 4:33 PM, Amery Hung wrote: > bpf: Clear pfmemalloc flag when freeing all fragments > bpf: Allow bpf_xdp_shrink_data to shrink a frag from head and tail > bpf: Support pulling non-linear xdp data > bpf: Clear packet pointers after changing packet data in kfuncs Please follow up with a selftest for this change. For global func, there is an example in commit 3f23ee5590d9. > bpf: Make variables in bpf_prog_test_run_xdp less confusing This makes the code easier to reason. Thanks. Applied. > bpf: Support specifying linear xdp packet data size for > BPF_PROG_TEST_RUN > selftests/bpf: Test bpf_xdp_pull_data > selftests: drv-net: Pull data before parsing headers