From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinicius Costa Gomes Date: Thu, 12 Oct 2017 10:50:07 -0700 Subject: [Intel-wired-lan] [next-queue PATCH v6 3/5] net/sched: Introduce Credit Based Shaper (CBS) qdisc In-Reply-To: <1507771972.31614.41.camel@edumazet-glaptop3.roam.corp.google.com> References: <20171012005449.26533-1-vinicius.gomes@intel.com> <20171012005449.26533-4-vinicius.gomes@intel.com> <1507771972.31614.41.camel@edumazet-glaptop3.roam.corp.google.com> Message-ID: <87mv4wmf1s.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: Hi, Eric Dumazet writes: > On Wed, 2017-10-11 at 17:54 -0700, Vinicius Costa Gomes wrote: >> This queueing discipline implements the shaper algorithm defined by >> the 802.1Q-2014 Section 8.6.8.2 and detailed in Annex L. > > ... > >> +static s64 delay_from_credits(s64 credits, s32 slope) >> +{ >> + s64 rate = slope * BYTES_PER_KBIT; >> + >> + if (unlikely(rate == 0)) >> + return S64_MAX; >> + >> + return ((-credits * NSEC_PER_SEC) / rate); >> +} > > Have you tried to compile this on 32bit arch ? > > make ARCH=i386 Will be fixed on v7. Cheers, -- Vinicius