Re: [Cake] [PATCH net-next v14 6/7] sch_cake: Add overhead compensation support to the rate shaper

2018-05-22 Thread Toke Høiland-Jørgensen
Marcelo Ricardo Leitner writes: > On Tue, May 22, 2018 at 10:44:53AM +0200, Toke Høiland-Jørgensen wrote: >> >> >> On 22 May 2018 01:45:13 CEST, Marcelo Ricardo Leitner >> wrote: >> >On Mon, May 21, 2018 at 10:35:58PM +0200, Toke

Re: [Cake] [PATCH net-next v14 6/7] sch_cake: Add overhead compensation support to the rate shaper

2018-05-22 Thread Marcelo Ricardo Leitner
On Tue, May 22, 2018 at 10:44:53AM +0200, Toke Høiland-Jørgensen wrote: > > > On 22 May 2018 01:45:13 CEST, Marcelo Ricardo Leitner > wrote: > >On Mon, May 21, 2018 at 10:35:58PM +0200, Toke Høiland-Jørgensen wrote: > >> +static u32 cake_overhead(struct

Re: [Cake] [PATCH net-next v14 6/7] sch_cake: Add overhead compensation support to the rate shaper

2018-05-21 Thread Marcelo Ricardo Leitner
On Mon, May 21, 2018 at 10:35:58PM +0200, Toke Høiland-Jørgensen wrote: > +static u32 cake_overhead(struct cake_sched_data *q, const struct sk_buff > *skb) > +{ > + const struct skb_shared_info *shinfo = skb_shinfo(skb); > + unsigned int hdr_len, last_len = 0; > + u32 off =

[Cake] [PATCH net-next v14 6/7] sch_cake: Add overhead compensation support to the rate shaper

2018-05-21 Thread Toke Høiland-Jørgensen
This commit adds configurable overhead compensation support to the rate shaper. With this feature, userspace can configure the actual bottleneck link overhead and encapsulation mode used, which will be used by the shaper to calculate the precise duration of each packet on the wire. This feature