netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Hirokazu Takahashi <taka@valinux.co.jp>
Cc: linux-net@vger.kernel.org, Linux Netdev List <netdev@vger.kernel.org>
Subject: Re: [PATCH] tbf scheduler: TSO support
Date: Thu, 10 May 2007 14:56:39 +0200	[thread overview]
Message-ID: <46431687.7060600@trash.net> (raw)
In-Reply-To: <20070510.210556.05145104.taka@valinux.co.jp>

Hirokazu Takahashi wrote:
> TBF --- Simple Token Bucket Filter --- packet scheduler doesn't
> work correctly with TSO on that it slows down to send out packets.
> TSO packets will be discarded since the size can be larger than
> the scheduler expects. But it won't cause serious problems
> because the retransmitted packets can be passed.
> 
> So I made the scheduler allow to pass TSO packets:
> 
>  - tbf_enqueue() accepts packets with any size if the netdevice
>    has TSO ability.
> 
>  - tbf_dequeue() can handle the packets whose size is larger than
>    the bucket, which keeps tokens.
>    Any packet, which may be TSO packet, can be sent if the bucket is
>    full of tokens. this may lead that the number of tokens in
>    the bucket turns into negative value, which means kind of debt.
>    But we don't have to mind it because this will be filled up
>    with tokens in a short time and it will turns into positive value
>    again.
> 
> I'm not sure if this approach is the best. I appreciate any comments.


I don't see why this is needed, the correct way to use TBF with TSO
is to specify a larger MTU value, in which case it won't drop TSO
packets.


       reply	other threads:[~2007-05-10 12:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070510.210556.05145104.taka@valinux.co.jp>
2007-05-10 12:56 ` Patrick McHardy [this message]
2007-05-10 21:13   ` [PATCH] tbf scheduler: TSO support David Miller
2007-05-11  1:04     ` Patrick McHardy
2007-05-11  4:01       ` Hirokazu Takahashi
2007-05-11 18:13         ` Patrick McHardy
2007-05-12  8:49           ` Hirokazu Takahashi
2007-05-12  9:09             ` Hirokazu Takahashi
2007-05-13 12:42             ` [PATCH] tbf scheduler: TSO support (updated) Hirokazu Takahashi
2007-05-13 15:52               ` Stephen Hemminger
2007-05-13 16:21                 ` Hirokazu Takahashi
2007-05-14  6:04                   ` Herbert Xu
2007-05-15 11:39                     ` [PATCH 1/2] tbf scheduler: TSO support (update 2) Hirokazu Takahashi
2007-05-15 11:41                       ` [PATCH 2/2] " Hirokazu Takahashi
2007-05-17 13:55                         ` Herbert Xu
2007-05-18  2:35                           ` Hirokazu Takahashi
2007-05-23 11:47                             ` [PATCH 1/2] tbf scheduler: TSO support (update 3) Hirokazu Takahashi
2007-05-23 11:49                               ` [PATCH 2/2] " Hirokazu Takahashi
2007-05-10 16:00 [PATCH] tbf scheduler: TSO support Hirokazu Takahashi
2007-05-10 16:01 ` Patrick McHardy

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=46431687.7060600@trash.net \
    --to=kaber@trash.net \
    --cc=linux-net@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=taka@valinux.co.jp \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).