All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hangbin Liu <hangbin.liu@linux.dev>
To: Jingjing Xu <xujingjing@cmss.chinamobile.com>
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
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	[thread overview]
Message-ID: <20261125083610.GD184281@Liu-laptop> (raw)
In-Reply-To: <20261125064110.1396439-4-xujingjing@cmss.chinamobile.com>

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>

  reply	other threads:[~2026-11-25  8:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  6:41 [PATCH net-next v2 0/3] selftests: net: fix receive metadata and failure reporting Jingjing Xu
2026-11-25  6:41 ` [PATCH net-next v2 1/3] selftests: net: report SO_RCV test failures to the runner Jingjing Xu
2026-11-25  7:18   ` Hangbin Liu
2026-11-25  6:41 ` [PATCH net-next v2 2/3] selftests: net: enable receive metadata independently of its value Jingjing Xu
2026-11-25  6:41 ` [PATCH net-next v2 3/3] selftests: net: cover zero receive mark and priority Jingjing Xu
2026-11-25  8:36   ` Hangbin Liu [this message]
2026-11-30  0:59 ` [PATCH net-next v2 0/3] selftests: net: fix receive metadata and failure reporting Jingjing Xu
2026-12-04  2:40 ` patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261125083610.GD184281@Liu-laptop \
    --to=hangbin.liu@linux.dev \
    --cc=annaemesenyiri@gmail.com \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=idosch@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shuah@kernel.org \
    --cc=willemb@google.com \
    --cc=xujingjing@cmss.chinamobile.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.