netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ido Schimmel <idosch@idosch.org>
To: Anna Emese Nyiri <annaemesenyiri@gmail.com>
Cc: netdev@vger.kernel.org, fejes@inf.elte.hu, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, willemb@google.com
Subject: Re: [PATCH net-next v6 3/4] selftests: net: test SO_PRIORITY ancillary data with cmsg_sender
Date: Wed, 11 Dec 2024 12:01:58 +0200	[thread overview]
Message-ID: <Z1ljFkEk3jZHRGl3@shredder> (raw)
In-Reply-To: <20241210191309.8681-4-annaemesenyiri@gmail.com>

On Tue, Dec 10, 2024 at 08:13:08PM +0100, Anna Emese Nyiri wrote:
> Extend cmsg_sender.c with a new option '-Q' to send SO_PRIORITY
> ancillary data.
> 
> cmsg_so_priority.sh script added to validate SO_PRIORITY behavior 
> by creating VLAN device with egress QoS mapping and testing packet
> priorities using flower filters. Verify that packets with different
> priorities are correctly matched and counted by filters for multiple
> protocols and IP versions.
> 
> Suggested-by: Ido Schimmel <idosch@idosch.org>
> Signed-off-by: Anna Emese Nyiri <annaemesenyiri@gmail.com>

Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>

Few nits that you can address in a follow up

> @@ -252,6 +259,8 @@ cs_write_cmsg(int fd, struct msghdr *msg, char *cbuf, size_t cbuf_sz)
>  
>  	ca_write_cmsg_u32(cbuf, cbuf_sz, &cmsg_len,
>  			  SOL_SOCKET, SO_MARK, &opt.mark);
> +	ca_write_cmsg_u32(cbuf, cbuf_sz, &cmsg_len,
> +			SOL_SOCKET, SO_PRIORITY, &opt.priority);

Need to align to the open parenthesis

>  	ca_write_cmsg_u32(cbuf, cbuf_sz, &cmsg_len,
>  			  SOL_IPV6, IPV6_DONTFRAG, &opt.v6.dontfrag);
>  	ca_write_cmsg_u32(cbuf, cbuf_sz, &cmsg_len,
> diff --git a/tools/testing/selftests/net/cmsg_so_priority.sh b/tools/testing/selftests/net/cmsg_so_priority.sh
> new file mode 100755
> index 000000000000..1fdfe6939a97
> --- /dev/null
> +++ b/tools/testing/selftests/net/cmsg_so_priority.sh

[...]

> +fi
> +

Unnecessary blank line:

Applying: selftests: net: test SO_PRIORITY ancillary data with cmsg_sender
.git/rebase-apply/patch:228: new blank line at EOF.
+
warning: 1 line adds whitespace errors.

  parent reply	other threads:[~2024-12-11 10:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-10 19:13 [PATCH net-next v6 0/4] Add support for SO_PRIORITY cmsg Anna Emese Nyiri
2024-12-10 19:13 ` [PATCH net-next v6 1/4] sock: Introduce sk_set_prio_allowed helper function Anna Emese Nyiri
2024-12-10 19:13 ` [PATCH net-next v6 2/4] sock: support SO_PRIORITY cmsg Anna Emese Nyiri
2024-12-10 19:13 ` [PATCH net-next v6 3/4] selftests: net: test SO_PRIORITY ancillary data with cmsg_sender Anna Emese Nyiri
2024-12-11  0:56   ` Willem de Bruijn
2024-12-11 10:01   ` Ido Schimmel [this message]
2024-12-12 16:35     ` Anna Nyiri
2024-12-12 16:51       ` Willem de Bruijn
2024-12-10 19:13 ` [PATCH net-next v6 4/4] sock: Introduce SO_RCVPRIORITY socket option Anna Emese Nyiri

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=Z1ljFkEk3jZHRGl3@shredder \
    --to=idosch@idosch.org \
    --cc=annaemesenyiri@gmail.com \
    --cc=edumazet@google.com \
    --cc=fejes@inf.elte.hu \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=willemb@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).