From: Cyril Hrubis <chrubis@suse.cz>
To: Petr Vorel <pvorel@suse.cz>
Cc: Martin Doucha <martin.doucha@suse.com>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v3 2/3] netns: Rewrite to use tst_net.sh
Date: Tue, 10 May 2022 15:08:30 +0200 [thread overview]
Message-ID: <Ynpjzif7cbxS5GX/@rei> (raw)
In-Reply-To: <20220510065104.1199-3-pvorel@suse.cz>
Hi!
> +# Communication type between kernel and user space for basic setup: enabling and
> +# assigning IP addresses to the virtual ethernet devices. (Uses 'ip' command for
> +# netlink and 'ifconfig' for ioctl.)
> +# (netlink|ioctl)
> +COMM_TYPE="netlink"
> +
> +do_cleanup=
> +
> +netns_parse_args()
> +{
> + case $1 in
> + e) NS_EXEC="ns_exec" ;;
> + I) COMM_TYPE="ioctl"; tst_require_cmds ifconfig ;;
> + esac
> +}
> +
> +netns_usage()
> +{
> + echo "usage: $0 [ -e ] [ -t ]"
^
-I
> + echo "OPTIONS"
> + echo "-e use ns_exec instead of ip"
> + echo "-I test ioctl (with ifconfig) instead of netlink (with ip)"
> +}
Otherwise it looks like a nice cleanup.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2022-05-10 13:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-10 6:51 [LTP] [PATCH v3 0/3] shell: Fixes for disabled IPv6 Petr Vorel
2022-05-10 6:51 ` [LTP] [PATCH v3 1/3] tst_net.sh: Fix " Petr Vorel
2022-05-10 12:14 ` Cyril Hrubis
2022-05-10 13:06 ` Petr Vorel
2022-05-10 13:21 ` Cyril Hrubis
2022-05-10 14:04 ` Petr Vorel
2022-05-10 6:51 ` [LTP] [PATCH v3 2/3] netns: Rewrite to use tst_net.sh Petr Vorel
2022-05-10 13:08 ` Cyril Hrubis [this message]
2022-05-10 14:00 ` Petr Vorel
2022-05-10 6:51 ` [LTP] [PATCH v3 3/3] netns: Rename netns_helper.sh -> netns_lib.sh Petr Vorel
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=Ynpjzif7cbxS5GX/@rei \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
--cc=martin.doucha@suse.com \
--cc=pvorel@suse.cz \
/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