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: davem@davemloft.net, linux-net@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH] tbf scheduler: TSO support
Date: Fri, 11 May 2007 20:13:45 +0200	[thread overview]
Message-ID: <4644B259.5060400@trash.net> (raw)
In-Reply-To: <20070511.130142.16832866.taka@valinux.co.jp>

Hirokazu Takahashi wrote:
> I think the concept of TBF is quit good but the userspace tools have
> become old that it doesn't fit to Gb ethernet environment.
> The tools should be updated to care about much faster network and
> GbE jumbo frames. I agree with you at this point.
> 
> On the other hand, handling TSO packet should be a kernel issue.
> A TSO packet is logically just a multiple segmented packet
> including several ordinary packets. This feature should be kept
> invisible from userspace.


Putting aside this question, this cannot work properly without userspace
since the rate table is only built for the given MTU. Your patch tries
to work around that by summing up the result of L2T in q->max_size
steps, which gives incorrect results with MPU or overhead settings.

I think we can only do two things without userspace support:

- disable TSO (not a good idea)
- split the skb into q->max_size chunks on dequeue

The later would allow people to take full advantage of TSO with properly
configured TBF, but it would still at least work with a too small mtu
value.


  reply	other threads:[~2007-05-11 18:13 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 ` [PATCH] tbf scheduler: TSO support Patrick McHardy
2007-05-10 21:13   ` David Miller
2007-05-11  1:04     ` Patrick McHardy
2007-05-11  4:01       ` Hirokazu Takahashi
2007-05-11 18:13         ` Patrick McHardy [this message]
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=4644B259.5060400@trash.net \
    --to=kaber@trash.net \
    --cc=davem@davemloft.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).