lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <620d582f0905300119y5e4b6962s40e0e276074720b6@mail.gmail.com>
Date:	Sat, 30 May 2009 10:19:36 +0200
From:	Piotrek D <regis44@...il.com>
To:	Jarek Poplawski <jarkao2@...il.com>
Cc:	Stephen Hemminger <shemminger@...tta.com>, netdev@...r.kernel.org
Subject: Re: changing the qdisc class speed rate

Thanks, this was exactly what I was looking for :)
After multiplying  all of the values in the rtab->data array I have
been able to change the traffic rate for that queue.

Piotrek D.


> /* Length to Time (L2T) lookup in a qdisc_rate_table, to determine how
>   long it will take to send a packet given its size.
>  */
> static inline u32 qdisc_l2t(struct qdisc_rate_table* rtab, unsigned int pktlen)
> {
>        int slot = pktlen + rtab->rate.cell_align + rtab->rate.overhead;
>        if (slot < 0)
>                slot = 0;
>        slot >>= rtab->rate.cell_log;
>        if (slot > 255)
>                return (rtab->data[255]*(slot >> 8) + rtab->data[slot & 0xFF]);
>        return rtab->data[slot];
> }
>
> This function controls rates and these rtab values matter here.
>
> Jarek P.
>

>> --
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ