[LTP] [PATCH 2/2] if-mtu-change.sh: Lower CHANGE_INTERVAL for netns
Petr Vorel
pvorel@suse.cz
Tue Feb 9 15:12:22 CET 2021
Hi Alexey,
> On 08.02.2021 19:04, Petr Vorel wrote:
> > How about allow to overwrite CHANGE_INTERVAL even for netns?
> > i.e move tst_is_int $CHANGE_INTERVAL && TST_TIMEOUT=$CHANGE_INTERVAL
> > after the test (although it's unlikely anybody would use sec value for netns
> > and ms value for ssh):
> > # CHANGE_INTERVAL: The interval of the mtu change
> > TST_TIMEOUT=1
> > if tst_net_use_netns; then
> > CHANGE_INTERVAL=${CHANGE_INTERVAL:-100ms}
> > else
> > CHANGE_INTERVAL=${CHANGE_INTERVAL:-5}
> > fi
> > tst_is_int $CHANGE_INTERVAL && TST_TIMEOUT=$CHANGE_INTERVAL
> > TST_TIMEOUT=$(((TST_TIMEOUT + 30) * MTU_CHANGE_TIMES))
> Yeah, looks good.
Thanks for your ack, merged!
Kind regards,
Petr
More information about the ltp
mailing list