🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22386

Re: [PATCH net-next v2 3/3] selftests: net: cover zero receive mark and priority

#22386
From: Hangbin Liu
Date: Wed, 25 Nov 2026 08:36
39 lines
9732 bytes
On Wed, Nov 25, 2026 at 06:41:10AM +0000, Jingjing Xu wrote:
> Exercise SO_RCVMARK and SO_RCVPRIORITY with zero values as well as the
> existing nonzero values, for both IPv4 and IPv6. These cases catch using
> the expected metadata value as the ancillary-message enable flag.
> 
> With the new tests and the original listener, four of eight cases fail
> and the corrected script exits with status 1. With the fixed listener,
> all eight pass and the script exits with status 0. The original four
> cases also pass with the original listener. Verification used real UDP
> sockets in isolated network namespaces; discovery and testing were
> AI-assisted. No kernel instrumentation or fault injection was used.
> 
> Signed-off-by: Jingjing Xu <xujingjing@cmss.chinamobile.com>
> ---
>  tools/testing/selftests/net/test_so_rcv.sh | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tools/testing/selftests/net/test_so_rcv.sh b/tools/testing/selftests/net/test_so_rcv.sh
> index ae01fa3c5329..3263ba2d1a67 100755
> --- a/tools/testing/selftests/net/test_so_rcv.sh
> +++ b/tools/testing/selftests/net/test_so_rcv.sh
> @@ -11,6 +11,8 @@ FAILED_TESTS=0
>  declare -A TESTS=(
>  	["SO_RCVPRIORITY"]="-P 2"
>  	["SO_RCVMARK"]="-M 3"
> +	["SO_RCVPRIORITY_ZERO"]="-P 0"
> +	["SO_RCVMARK_ZERO"]="-M 0"
>  )
>  
>  check_result() {
> base-commit: 57f165ff2f30491bc3511d24a52ca516751a268b
> -- 
> 2.53.0
> 
> 
> 

Reviewed-by: Hangbin Liu <liuhangbin@kylinos.cn>
Technical Details
Message-ID: <20261125083610.GD184281@Liu-laptop>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371135-linux-kernel-netdev=dewy.ru
References: <20261125064110.1396439-1-xujingjing@cmss.chinamobile.com> <20261125064110.1396439-4-xujingjing@cmss.chinamobile.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371135-linux-kernel-netdev=dewy.ru
From: hangbin.liu@linux.dev (Hangbin Liu)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 3/3] selftests: net: cover zero receive mark
 and priority
Date: Wed, 25 Nov 2026 16:36:10 +0800
Organization: Usenet Network
Message-ID: <20261125083610.GD184281@Liu-laptop>
References: <20261125064110.1396439-1-xujingjing@cmss.chinamobile.com>
 <20261125064110.1396439-4-xujingjing@cmss.chinamobile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="155939"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:MCWb29Ot3QrqDj5Cn7ZRl8koLtg= sha256:iRfchzW4NK+gXCduaDnBIF7QrErTXpCw37Molu/ZwQU=
	sha1:1YeY1PvkAs2Dh4c0QCuK9VK0/cE= sha256:2/pgBc21nljE+cwAHRIVXknwAjueK0ngAPkOi7ZXBIk=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 29069125E40; Wed, 25 Nov 2026 11:36:38 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=linux.dev
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id LjWMg2DpmXRD;
	Wed, 25 Nov 2026 11:36:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-371135-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 42D15125E3F; Wed, 25 Nov 2026 11:36:26 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id DC8BF42788; Wed, 25 Nov 2026 08:36:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795595784;
	b=lBB8Vve8GzfBtzo8vAdUyClpjIHd0xbJCNz180ly8fi5xQ88PRS2kdSabcjBSEStfQDj
	 bhiej7ENk0uon9Ld7YxCSTDFMIRAZ5WFKWvop92TEER38n9ip7XTUup/6A2DLoSvzy0BS
	 gZeA7/dwV8fjrgdNrtqKzGMe0isj179v0xQDeKpPVb3rlbpDgi6pVbN5/TA4nNnECIJFH
	 OwW1qaU/L8hauu4jJWuUW+r3tFvOmKblMLDJ2ewNvi8RSNbPlPDhzPtnmfUIYwPotw5Wj
	 l9MUKbsW9vzSLBEIm5PkQciKHXD22mh5NDUEDn+/tpceUBJ0zryyHlOJxzONLOcZdxQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795595784;
	h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature:
	 X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=XN1gQ3fRYIMVA+6ax3yiapPYj8MwIH2f0iCjt0MzEgI=;
	b=v4/6StM1UsnjXol3jIbgFgyPXR1nNbBkMxfZ7TkdFq32QeKrymYpgavRZG3uUjtrrBQd
	 0W78R/HRzZvVlJ/B34xO4onnq4XcnRqz54xZFzt2MonlpfX4GIJ+zBUEHIpQKcu/AQKb3
	 81eIGn6UUqU+Th0ONbrT8nA3Rgb9H2wo/8j6/qlmgmCMg0A7UzGj+PHbGBvLPj7r2+gpu
	 bFOmUp8I/YRXYnx0PWYU7FInBi9jtQS7t3bU9ZhOUgE+2mr0LjW54jt2vGKRzE2iv3xT6
	 r+WFIb/I4C36s9XfRLTLOby6/IgOG/PIZxjs9/Cd5DheMqKyu+nhcuNGvTUlTS0bBvw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=uUB6M9Sq;
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id B4CBA606A32C;
	Wed, 25 Nov 2026 08:36:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=uUB6M9Sq
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.1
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795595783;
	b=Lf0I4EAWf29ihEiu7djx+ro1kvQD8KEl9B4BXt5o19zO+Sk6F1D2bn7QeZRWKp3YlvsY
	 9qJRfGZfPqlhMmGEB6UvbYs4+cTM5EkWbVamy+EnVz8gchICbx+w27Rh3lbh/XHuIUiIh
	 5b8mBUMIlzrDlpX649+P9xcrd0/7IRtgBYuuZLRg0qk5JxPHH6JUSHrwPcyu60P5/q/YA
	 12EwbSrlJN8aJJLB8TZivf6+AtOHSwyt8y3ArKuKqdSsHF7CGx+7T3E/QwDEP4CJ6Tfnl
	 u9ySYDzQCi+RXPb92CNX2wCUXV56uxC2j3ACLBf6XBInpnsbh/FZN56EfZq6ck2CBqQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795595783;
	h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received:
	 X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=XN1gQ3fRYIMVA+6ax3yiapPYj8MwIH2f0iCjt0MzEgI=;
	b=Vj5CIGXUlPz71gIGTUR4iqq+auChkFCnC9LCEmw7kYH1UKQN2gBKR9rpFjWB+aX1qN/i
	 0FYp6PkDyxZLXcVKVulxxHzra0f3k9yJRZFkBZ5gKPG8yQ1XMgJ7RM8xc3+Fdp7BJMcJF
	 wg5ZdNizlN9nzUxdGaLh7juK9cc/5VJ0VkD31knDvODScOd1t5JCtAguKRRNGvyrG7aZe
	 BMiSGqYBHyrirGukLyKXqYbTZDIraSIufvYJhcKJLWCTuEhLroQKAhZbCLWNFzFDSev5y
	 sUQ5v2np1aG7oUxrm1efXvwqa1c8F8xvX6hgKbYWiGm2xBEhdKL9nep2HE2VjFGOWaw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=uUB6M9Sq;
	arc=none smtp.remote-ip=95.215.58.1
X-Received: from mta1.migadu.com (out-1.mta1.migadu.com [95.215.58.1])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80525606A321
	for <netdev@vger.kernel.org>; Wed, 25 Nov 2026 08:36:22 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 80525606A321
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev
X-Envelope-To: netdev@vger.kernel.org
X-DKIM-Signature: a=rsa-sha256; bh=0K/8LEcVyCEO3ne/hj4xdKmWz5s3ulj/xr0pxKVqumo=;
 c=simple/simple; d=linux.dev;
 h=from:to:subject:date:message-id:mime-version:content-type; s=key1;
 t=1795595780; v=1; x=1796200580;
 b=uUB6M9SqsBLfhlz6JpDefD2OwXuH6CtXMAi+jJNqxKTPWsm00OKAJKd14yIxa5K3V8RFll3J
 jIBUgmPZg/zjlLQlm595HlZnyMV2dP/Wc1UkVGegk14AtoFc7IT4DqRh+QNpk833+9fxV3YlWV7
 bVDfsCMV98cg7qCwCNMRttIU=
X-Envelope-To: netdev@vger.kernel.org
X-Received: by mta12.migadu.com with ESMTPS id 1a54a8f12ba78d2c;
	Wed, 25 Nov 2026 08:36:20 +0000
X-Mizu-Trace-ID: 1a54a8f12ba78d2c
X-Migadu-Flow: FLOW_OUT
X-Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
	kuba@kernel.org, edumazet@kernel.org, pabeni@redhat.com,
	horms@kernel.org, shuah@kernel.org, willemb@google.com,
	annaemesenyiri@gmail.com, idosch@nvidia.com
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261125064110.1396439-4-xujingjing@cmss.chinamobile.com>