public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Antonio Quartulli <antonio@openvpn.net>
To: Shuah Khan <skhan@linuxfoundation.org>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	openvpn-devel@lists.sourceforge.net,
	linux-kselftest@vger.kernel.org, Paolo Abeni <pabeni@redhat.com>,
	Jakub Kicinski <kuba@kernel.org>,
	Eric Dumazet <edumazet@google.com>,
	Donald Hunter <donald.hunter@gmail.com>,
	Shuah Khan <shuah@kernel.org>,
	sd@queasysnail.net, ryazanov.s.a@gmail.com,
	Andrew Lunn <andrew@lunn.ch>
Subject: Re: [PATCH net-next v9 23/23] testing/selftest: add test tool and scripts for ovpn module
Date: Thu, 17 Oct 2024 09:56:58 +0200	[thread overview]
Message-ID: <17a138ee-bdf8-467d-8f48-17e8a42d1ce2@openvpn.net> (raw)
In-Reply-To: <a86855c4-3724-43e8-9bdf-fb53743cd723@linuxfoundation.org>

On 16/10/2024 23:14, Shuah Khan wrote:
> On 10/15/24 19:03, Antonio Quartulli wrote:
>> The ovpn-cli tool can be compiled and used as selftest for the ovpn
>> kernel module.
>>
>> It implements the netlink API and can thus be integrated in any
>> script for more automated testing.
>>
>> Along with the tool, 2 scripts are added that perform basic
>> functionality tests by means of network namespaces.
>>
>> The scripts can be performed in sequence by running run.sh
>>
>> Cc: shuah@kernel.org
>> Cc: linux-kselftest@vger.kernel.org
>> Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
> 
> I almost gave my Reviewed-by when I saw the very long argument parsing
> in the main() - please see comment below under main().
> 
> Let's simply the logic using getopt() - it is way too long and
> complex.
> 

[...]

> 
> This is loooong arguments parsing. What's the reason to not use getopt()
> Doesn't it simplify all ofthie logic?
> 
> I would like to see it simplified for maintainability.

This tool was originally very simple...then...this happened :-D

I agree getopt() could help making this whole function easier to read 
and maintain.

I will include this change in v10.

Thanks!

Regards,

-- 
Antonio Quartulli
OpenVPN Inc.


  reply	other threads:[~2024-10-17  7:56 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-16  1:03 [PATCH net-next v9 00/23] Introducing OpenVPN Data Channel Offload Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 01/23] netlink: add NLA_POLICY_MAX_LEN macro Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 02/23] net: introduce OpenVPN Data Channel Offload (ovpn) Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 03/23] ovpn: add basic netlink support Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 04/23] ovpn: add basic interface creation/destruction/management routines Antonio Quartulli
2024-10-16  8:27   ` Jiri Pirko
2024-10-16 14:24     ` Antonio Quartulli
2024-10-17  6:39       ` Jiri Pirko
2024-10-16  1:03 ` [PATCH net-next v9 05/23] ovpn: keep carrier always on Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 06/23] ovpn: introduce the ovpn_peer object Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 07/23] ovpn: introduce the ovpn_socket object Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 08/23] ovpn: implement basic TX path (UDP) Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 09/23] ovpn: implement basic RX " Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 10/23] ovpn: implement packet processing Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 11/23] ovpn: store tunnel and transport statistics Antonio Quartulli
2024-10-19 11:38   ` kernel test robot
2024-10-16  1:03 ` [PATCH net-next v9 12/23] ovpn: implement TCP transport Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 13/23] ovpn: implement multi-peer support Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 14/23] ovpn: implement peer lookup logic Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 15/23] ovpn: implement keepalive mechanism Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 16/23] ovpn: add support for updating local UDP endpoint Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 17/23] ovpn: add support for peer floating Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 18/23] ovpn: implement peer add/dump/delete via netlink Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 19/23] ovpn: implement key add/del/swap " Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 20/23] ovpn: kill key and notify userspace in case of IV exhaustion Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 21/23] ovpn: notify userspace when a peer is deleted Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 22/23] ovpn: add basic ethtool support Antonio Quartulli
2024-10-16  1:03 ` [PATCH net-next v9 23/23] testing/selftest: add test tool and scripts for ovpn module Antonio Quartulli
2024-10-16 21:14   ` Shuah Khan
2024-10-17  7:56     ` Antonio Quartulli [this message]
2024-10-17 11:27     ` Antonio Quartulli
2024-10-17 21:40       ` Shuah Khan
2024-10-18  8:20         ` Antonio Quartulli

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=17a138ee-bdf8-467d-8f48-17e8a42d1ce2@openvpn.net \
    --to=antonio@openvpn.net \
    --cc=andrew@lunn.ch \
    --cc=donald.hunter@gmail.com \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=openvpn-devel@lists.sourceforge.net \
    --cc=pabeni@redhat.com \
    --cc=ryazanov.s.a@gmail.com \
    --cc=sd@queasysnail.net \
    --cc=shuah@kernel.org \
    --cc=skhan@linuxfoundation.org \
    /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