From: James Hogan <james.hogan@mips.com>
To: Dave Taht <dave.taht@gmail.com>
Cc: <netdev@vger.kernel.org>, <linux-next@vger.kernel.org>,
<linux-mips@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [net-next,1/3] netem: convert to qdisc_watchdog_schedule_ns
Date: Tue, 14 Nov 2017 21:11:13 +0000 [thread overview]
Message-ID: <20171114211112.GA28794@jhogan-linux.mipstec.com> (raw)
In-Reply-To: <1510088376-5527-2-git-send-email-dave.taht@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 984 bytes --]
On Tue, Nov 07, 2017 at 12:59:34PM -0800, Dave Taht wrote:
> diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c
> index db0228a..443a75d 100644
> --- a/net/sched/sch_netem.c
> +++ b/net/sched/sch_netem.c
...
> @@ -305,11 +305,11 @@ static bool loss_event(struct netem_sched_data *q)
> * std deviation sigma. Uses table lookup to approximate the desired
> * distribution, and a uniformly-distributed pseudo-random source.
> */
> -static psched_tdiff_t tabledist(psched_tdiff_t mu, psched_tdiff_t sigma,
> - struct crndstate *state,
> - const struct disttable *dist)
> +static s64 tabledist(s64 mu, s64 sigma,
sigma is used in a modulo operation in this function, which results in
this error on a bunch of MIPS configs once it is made 64-bits wide:
net/sched/sch_netem.o In function `tabledist':
net/sched/sch_netem.c:330: undefined reference to `__moddi3'
Should that code not be using <linux/math64.h>, i.e. div_s64_rem() now
that it is 64bit?
Thanks
James
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: James Hogan <james.hogan@mips.com>
To: Dave Taht <dave.taht@gmail.com>
Cc: netdev@vger.kernel.org, linux-next@vger.kernel.org,
linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [net-next,1/3] netem: convert to qdisc_watchdog_schedule_ns
Date: Tue, 14 Nov 2017 21:11:13 +0000 [thread overview]
Message-ID: <20171114211112.GA28794@jhogan-linux.mipstec.com> (raw)
Message-ID: <20171114211113.WQRAA33Iisy5639kq6usDjaeX3EFtuwJKgXFUwviuok@z> (raw)
In-Reply-To: <1510088376-5527-2-git-send-email-dave.taht@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 984 bytes --]
On Tue, Nov 07, 2017 at 12:59:34PM -0800, Dave Taht wrote:
> diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c
> index db0228a..443a75d 100644
> --- a/net/sched/sch_netem.c
> +++ b/net/sched/sch_netem.c
...
> @@ -305,11 +305,11 @@ static bool loss_event(struct netem_sched_data *q)
> * std deviation sigma. Uses table lookup to approximate the desired
> * distribution, and a uniformly-distributed pseudo-random source.
> */
> -static psched_tdiff_t tabledist(psched_tdiff_t mu, psched_tdiff_t sigma,
> - struct crndstate *state,
> - const struct disttable *dist)
> +static s64 tabledist(s64 mu, s64 sigma,
sigma is used in a modulo operation in this function, which results in
this error on a bunch of MIPS configs once it is made 64-bits wide:
net/sched/sch_netem.o In function `tabledist':
net/sched/sch_netem.c:330: undefined reference to `__moddi3'
Should that code not be using <linux/math64.h>, i.e. div_s64_rem() now
that it is 64bit?
Thanks
James
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-11-14 21:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-07 20:59 [PATCH net-next 0/3] netem: add nsec scheduling and slot feature Dave Taht
2017-11-07 20:59 ` [PATCH net-next 1/3] netem: convert to qdisc_watchdog_schedule_ns Dave Taht
2017-11-14 21:11 ` James Hogan [this message]
2017-11-14 21:11 ` [net-next,1/3] " James Hogan
2017-11-14 21:43 ` James Hogan
2017-11-14 21:43 ` James Hogan
2017-11-14 22:49 ` Stephen Hemminger
2017-11-14 22:49 ` Stephen Hemminger
2017-11-07 20:59 ` [PATCH net-next 2/3] netem: add uapi to express delay and jitter in nanosec Dave Taht
2017-11-07 20:59 ` [PATCH net-next 3/3] netem: support delivering packets in delayed time slots Dave Taht
2017-11-08 0:26 ` [PATCH net-next 0/3] netem: add nsec scheduling and slot feature Stephen Hemminger
2017-11-08 21:45 ` Dave Taht
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=20171114211112.GA28794@jhogan-linux.mipstec.com \
--to=james.hogan@mips.com \
--cc=dave.taht@gmail.com \
--cc=linux-mips@linux-mips.org \
--cc=linux-next@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=ralf@linux-mips.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 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.