]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: red: split red_parms into parms and vars
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 5 Jan 2012 02:25:16 +0000 (02:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jan 2012 19:01:21 +0000 (14:01 -0500)
commitc517d5b248c55b14390195bcddb371bbc980b3d1
tree5cabbf24a3c1ee2d7757c873ba6449296a8ef7b7
parent975d8c9481b55138559e16ad74a5791ad95fe98a
net_sched: red: split red_parms into parms and vars

This patch splits the red_parms structure into two components.

One holding the RED 'constant' parameters, and one containing the
variables.

This permits a size reduction of GRED qdisc, and is a preliminary step
to add an optional RED unit to SFQ.

SFQRED will have a single red_parms structure shared by all flows, and a
private red_vars per flow.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Dave Taht <dave.taht@gmail.com>
CC: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/red.h
net/sched/sch_choke.c
net/sched/sch_gred.c
net/sched/sch_red.c