Netdev List
 help / color / mirror / Atom feed
From: Andrew Collins <acollins@cradlepoint.com>
To: <netdev@vger.kernel.org>
Cc: <edumazet@google.com>
Subject: fq_codel and skb->hash
Date: Mon, 16 Jan 2017 17:04:44 -0700	[thread overview]
Message-ID: <f9913fca-da16-8620-d237-d7d8d09cced2@cradlepoint.com> (raw)

The fq_codel packet scheduler always regenerates the skb flow hash.  Is there any reason
to do this other than the recent hash perturbation additions?

I ask because I have a case where an incoming set of TCP flows is encapsulated in a
single ipsec tunnel, which is then classified on egress into a single flow by fq_codel
resulting in poor behavior.

Reusing the skb hash set in receive results in much better behavior, as the value is
determined pre-encapsulation and flows end up being distributed more naturally across
codel queues.

Is opportunistically using the pre-existing skb hash (if available) problematic?  Is
there a better way to manage flow separation in routed+encapsulated traffic?

Thanks,
Andrew Collins

             reply	other threads:[~2017-01-17  0:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-17  0:04 Andrew Collins [this message]
2017-01-17  1:44 ` fq_codel and skb->hash Eric Dumazet
2017-01-17  2:34   ` Eric Dumazet
2017-01-17  6:18     ` Tom Herbert
2017-01-17 15:14       ` Eric Dumazet
2017-01-18 20:21         ` Andrew Collins
2017-01-18 20:25           ` Eric Dumazet

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=f9913fca-da16-8620-d237-d7d8d09cced2@cradlepoint.com \
    --to=acollins@cradlepoint.com \
    --cc=edumazet@google.com \
    --cc=netdev@vger.kernel.org \
    /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