]> git.karo-electronics.de Git - karo-tx-linux.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)
commiteeca6688d6599c28bc449a45facb67d7f203be74
tree5cabbf24a3c1ee2d7757c873ba6449296a8ef7b7
parent18cb809850fb499ad9bf288696a95f4071f73931
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