From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 2/2] net/ipsec: Add check for xfrm_user
Date: Fri, 2 Nov 2018 23:37:36 +0100 [thread overview]
Message-ID: <20181102223736.GA7615@dell5510> (raw)
In-Reply-To: <20181102221454.5056-2-pvorel@suse.cz>
Hi,
> which is required by ip xfrm command.
> As ipsec_lib.sh is used for other commands than it,
> check it only when used. Call in cleanup function could trigger infinite
> loop, therefore check only once.
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
...
> +tst_ipsec_check_driver()
> +{
> + if [ -z "$ipsec_driver_checked" ]; then
> + export ipsec_driver_checked=1
> + tst_net_driver "xfrm_user"
> + fi
I know that all *_ipsec_vti.sh are affected, but I think it's better to be universal.
And maybe ip xfrm calls in tst_init_iface() (in tst_net.sh) should have stderr redirected:
$ udp_ipsec_vti.sh -p comp -m tunnel -s 1500
udp_ipsec_vti 1 TINFO: initialize 'lhost' 'ltp_ns_veth2' interface
Cannot open netlink socket: Protocol not supported
udp_ipsec_vti 1 TINFO: initialize 'rhost' 'ltp_ns_veth1' interface
Cannot open netlink socket: Protocol not supported
# tst_net_iface_prefix.c:145: INFO: prefix and interface not found for '10.0.0.2'.
# tst_net_iface_prefix.c:145: INFO: prefix and interface not found for 'fd00:1:1:1::2'.
udp_ipsec_vti 1 TINFO: Network config (local -- remote):
udp_ipsec_vti 1 TINFO: ltp_ns_veth2 -- ltp_ns_veth1
udp_ipsec_vti 1 TINFO: 10.0.0.2/24 -- 10.0.0.1/24
udp_ipsec_vti 1 TINFO: fd00:1:1:1::2/64 -- fd00:1:1:1::1/64
udp_ipsec_vti 1 TINFO: Test vti + IPsec[comp/tunnel]
udp_ipsec_vti 1 TCONF: xfrm_user driver not available
Cannot open netlink socket: Protocol not supported
Cannot open netlink socket: Protocol not supported
Cannot open netlink socket: Protocol not supported
Kind regards,
Petr
next prev parent reply other threads:[~2018-11-02 22:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-02 22:14 [LTP] [PATCH 1/2] net: Add tst_net_driver helper Petr Vorel
2018-11-02 22:14 ` [LTP] [PATCH 2/2] net/ipsec: Add check for xfrm_user Petr Vorel
2018-11-02 22:37 ` Petr Vorel [this message]
2018-11-05 7:37 ` [LTP] [PATCH 1/2] net: Add tst_net_driver helper 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=20181102223736.GA7615@dell5510 \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
/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.