From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [RFC PATCH v3 2/2] net/route: Add netlink based route change gw/dest tests
Date: Thu, 9 Apr 2020 20:37:14 +0200 [thread overview]
Message-ID: <20200409183714.GA915479@x230> (raw)
In-Reply-To: <06e299d0-0663-a868-f8cc-1f9002d9d43f@oracle.com>
Hi Alexey,
thanks for your review!
> > diff --git a/testcases/network/stress/route/route-change-gw.sh b/testcases/network/stress/route/route-change-gw.sh
...
> > setup()
> > {
> > tst_res TINFO "change IPv$TST_IPVER route gateway $NS_TIMES times"
> > -
> > - rt="$(tst_ipaddr_un -p 0 0)"
> > - lhost="$(tst_ipaddr_un 1 1)"
> > - rhost="$(tst_ipaddr_un 0 1)"
> > - tst_add_ipaddr -s -q -a $lhost
> > - tst_add_ipaddr -s -q -a $rhost rhost
> > + setup_gw
> > }
> TST_SETUP=setup_gw
OK, I hesitated, whether
tst_res TINFO "change IPv$TST_IPVER route gateway $NS_TIMES times"
should be part of setup_gw() or not in the end I accidentally left it on both
places. OK, I'll keep it in setup_gw() and remove from
route-change-netlink-gw.sh + use TST_SETUP=setup_gw here (in
route-change-gw.sh).
> > diff --git a/testcases/network/stress/route/route-lib.sh b/testcases/network/stress/route/route-lib.sh
...
> > +test_netlink()
> > +{
> > + local ip_flag
> > + [ "$TST_IPV6" ] && ip_flag="-6"
> > +
> > + local port=$(tst_rhost_run -s -c "tst_get_unused_port ipv${TST_IPVER} dgram")
> > +
> What will be listen on this remote port?
Nothing. We've talked about it in the past. I struggled to setup remote workers
(problems to detect that the setup is up before testing starts), but I can
rethink it again. What do you suggest: one daemon which would run several
threads (each of them bind to specific IP) or several single thread instances?
IMHO not binding to specific IP does not garant traffic is taking path we want.
> > + EXPECT_PASS route-change-netlink -c $NS_TIMES -d $(tst_iface) $ip_flag -p $port $ROUTE_CHANGE_NETLINK_PARAMS
> EXPECT_PASS doesn't handle TCONF when libmnl-devel is missing.
Thanks, I'll fix it.
tst_test.c:865: CONF: libmnl library and headers are required
route-change-netlink-gw 1 TFAIL: route-change-netlink -c 10 -d ltp_ns_veth2 -p 40645 -g 10.23.1.7^10.23.1.6^10.23.1.5^10.23.1.4^10.23.1.3^ -l 10.23.1.1 -r 10.23.0.1 failed unexpectedly
I propose to handle this in EXPECT_PASS() (send a separate RFC patch for it).
Kind regards,
Petr
next prev parent reply other threads:[~2020-04-09 18:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-03 16:54 [LTP] [RFC PATCH v3 0/2] Route tests using netlink API (dst,gw) Petr Vorel
2020-04-03 16:54 ` [LTP] [RFC PATCH v3 1/2] net: Move setup_addrinfo() into tst_net.h Petr Vorel
2020-04-09 14:44 ` Alexey Kodanev
2020-04-03 16:54 ` [LTP] [RFC PATCH v3 2/2] net/route: Add netlink based route change gw/dest tests Petr Vorel
2020-04-03 16:59 ` Petr Vorel
2020-04-03 17:02 ` Petr Vorel
2020-04-09 15:25 ` Alexey Kodanev
2020-04-09 18:37 ` Petr Vorel [this message]
2020-04-10 13:01 ` Alexey Kodanev
2020-04-10 15:27 ` 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=20200409183714.GA915479@x230 \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox