pkt_sched: Check .walk and .leaf class handlers
authorJarek Poplawski <jarkao2@gmail.com>
Tue, 10 Aug 2010 22:31:20 +0000 (22:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Aug 2010 08:37:00 +0000 (01:37 -0700)
commit3e9e5a5921f4b7dc098a01d01e5972bebb36491e
treed4b50906ae56ff923e6a4ed4a20081a6da742c47
parent41065fba846e795b31b17e4dec01cb904d56c6cd
pkt_sched: Check .walk and .leaf class handlers

Require qdisc class ops .walk and .leaf for classful qdisc in
register_qdisc(). The checks could be done later insted, but these
ops are really needed and used by most of classful qdiscs.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c