[PATCH] NET : move Qdisc_class_ops and Qdisc_ops in appropriate sections

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Wednesday, November 14, 2007 - 12:39 am

Hi David

Please find this patch against net-2.6.25

Thank you


[PATCH] NET : move Qdisc_class_ops and Qdisc_ops in appropriate sections

Qdisc_class_ops are const, and Qdisc_ops are mostly read.

Using "const" and "__read_mostly" qualifiers helps to reduce false sharing.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>

  include/net/sch_generic.h |    2 +-
  net/mac80211/wme.c        |    4 ++--
  net/sched/cls_api.c       |    4 ++--
  net/sched/sch_api.c       |   12 ++++++------
  net/sched/sch_atm.c       |    4 ++--
  net/sched/sch_blackhole.c |    2 +-
  net/sched/sch_cbq.c       |    4 ++--
  net/sched/sch_dsmark.c    |    4 ++--
  net/sched/sch_fifo.c      |    4 ++--
  net/sched/sch_generic.c   |   10 +++++-----
  net/sched/sch_gred.c      |    2 +-
  net/sched/sch_hfsc.c      |    4 ++--
  net/sched/sch_htb.c       |    4 ++--
  net/sched/sch_ingress.c   |    4 ++--
  net/sched/sch_netem.c     |    6 +++---
  net/sched/sch_prio.c      |    6 +++---
  net/sched/sch_red.c       |    4 ++--
  net/sched/sch_sfq.c       |    2 +-
  net/sched/sch_tbf.c       |    4 ++--
  19 files changed, 43 insertions(+), 43 deletions(-)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] NET : move Qdisc_class_ops and Qdisc_ops in approp ..., Eric Dumazet, (Wed Nov 14, 12:39 am)