netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Cong Wang <xiyou.wangcong@gmail.com>
To: Jiri Kosina <jikos@kernel.org>
Cc: Eric Dumazet <eric.dumazet@gmail.com>,
	Jamal Hadi Salim <jhs@mojatatu.com>, Phil Sutter <phil@nwl.cc>,
	Linux Kernel Network Developers <netdev@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4] net: sched: convert qdisc linked list to hashtable
Date: Thu, 28 Jul 2016 09:52:57 -0700	[thread overview]
Message-ID: <CAM_iQpWbCuhG0_8ow=iszpJKMp4z-2gqoBf2gN6SDftyb2t54A@mail.gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.00.1607281155020.24757@cbobk.fhfr.pm>

On Thu, Jul 28, 2016 at 2:56 AM, Jiri Kosina <jikos@kernel.org> wrote:
> From: Jiri Kosina <jkosina@suse.cz>
>
> Convert the per-device linked list into a hashtable. The primary
> motivation for this change is that currently, we're not tracking all the
> qdiscs in hierarchy (e.g. excluding default qdiscs), as the lookup
> performed over the linked list by qdisc_match_from_root() is rather
> expensive.
>
> The ultimate goal is to get rid of hidden qdiscs completely, which will
> bring much more determinism in user experience.
>
> As we're adding hashtable.h include into generic netdevice.h, we have to
> make sure HASH_SIZE macro is now non-conflicting with local definitions.
>
> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
> ---
> v1 -> v2:     fix up RCU hastable usage wrt. rtnl
>               fix compilation of .c files which define their own
>               HASH_SIZE that now oncflicts with the one from
>               hashtable.h (newly included via netdevice.h)
>
> v2 -> v3:     resolve HASH_SIZE identifier conflicts in a cleaner way
>               fix up the number of hash bucket bits (4 bits for 16 buckets)
>
> v3 -> v4:     put the hastable into struct netdevice only if
>               CONFIG_NET_SCHED has been enabled

Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>

Thanks!

  parent reply	other threads:[~2016-07-28 16:53 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-14 14:44 Deleting child qdisc doesn't reset parent to default qdisc? Jiri Kosina
2016-04-14 14:51 ` Jiri Kosina
2016-04-14 15:01 ` Eric Dumazet
2016-04-14 15:18   ` Phil Sutter
2016-04-14 15:34     ` Jiri Kosina
2016-04-14 15:44       ` Eric Dumazet
2016-04-14 16:22         ` Phil Sutter
2016-04-14 16:40           ` Eric Dumazet
2016-04-14 16:08     ` Jiri Kosina
2016-04-14 17:49       ` Eric Dumazet
2016-04-15 12:42         ` Jamal Hadi Salim
2016-04-15 14:58           ` Eric Dumazet
2016-04-15 17:13             ` David Miller
2016-06-28 15:19             ` Jiri Kosina
2016-06-28 17:28               ` Cong Wang
2016-06-28 17:33                 ` Jiri Kosina
2016-06-28 16:49             ` [RFC PATCH] sch_tbf: avoid silent fallback to noop_qdisc (was Re: Deleting child qdisc doesn't reset parent to default qdisc?) Jiri Kosina
2016-07-07  9:04             ` [RFC PATCH] net: sched: convert qdisc linked list to hashtable " Jiri Kosina
2016-07-07 13:51               ` Eric Dumazet
2016-07-07 16:32                 ` Jiri Kosina
2016-07-07 16:53                   ` Eric Dumazet
2016-07-07 20:36               ` [RFC PATCH v2] net: sched: convert qdisc linked list to hashtable Jiri Kosina
2016-07-08  8:50                 ` Eric Dumazet
2016-07-08  9:02                   ` Jiri Kosina
2016-07-08 11:07                 ` Thomas Graf
2016-07-08 13:52                   ` Eric Dumazet
2016-07-11 14:02                 ` [RFC PATCH v3] " Jiri Kosina
2016-07-12 17:36                   ` Cong Wang
2016-07-13 13:47                     ` Jiri Kosina
2016-07-28  9:56                   ` [PATCH v4] " Jiri Kosina
2016-07-28 11:10                     ` kbuild test robot
2016-07-28 11:18                       ` Jiri Kosina
2016-07-28 12:53                         ` Fengguang Wu
2016-07-28 16:53                           ` Cong Wang
2016-07-31 11:21                           ` Fengguang Wu
2016-08-01 10:12                             ` Jiri Kosina
2016-07-28 11:22                     ` kbuild test robot
2016-07-28 11:52                     ` kbuild test robot
2016-07-28 16:52                     ` Cong Wang [this message]
2016-07-29  7:49                     ` [PATCH v5] " Jiri Kosina
2016-07-29 20:01                       ` kbuild test robot
2016-07-31  0:11                       ` kbuild test robot
2016-08-01 10:23                       ` [PATCH v6] " Jiri Kosina

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='CAM_iQpWbCuhG0_8ow=iszpJKMp4z-2gqoBf2gN6SDftyb2t54A@mail.gmail.com' \
    --to=xiyou.wangcong@gmail.com \
    --cc=eric.dumazet@gmail.com \
    --cc=jhs@mojatatu.com \
    --cc=jikos@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=phil@nwl.cc \
    /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).