[NET_SCHED]: Convert packet schedulers from rtnetlink to new netlink API
Convert packet schedulers to use the netlink API. Unfortunately a gradual conversion is not possible without breaking compilation in the middle or adding lots of casts, so this patch converts them all in one step. The patch has been mostly generated automatically with some minor edits to at least allow seperate conversion of classifiers and actions. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
01480e1cf5
commit
1e90474c37
@@ -10,7 +10,7 @@ struct gnet_dump
|
||||
{
|
||||
spinlock_t * lock;
|
||||
struct sk_buff * skb;
|
||||
struct rtattr * tail;
|
||||
struct nlattr * tail;
|
||||
|
||||
/* Backward compatability */
|
||||
int compat_tc_stats;
|
||||
@@ -39,11 +39,11 @@ extern int gnet_stats_finish_copy(struct gnet_dump *d);
|
||||
|
||||
extern int gen_new_estimator(struct gnet_stats_basic *bstats,
|
||||
struct gnet_stats_rate_est *rate_est,
|
||||
spinlock_t *stats_lock, struct rtattr *opt);
|
||||
spinlock_t *stats_lock, struct nlattr *opt);
|
||||
extern void gen_kill_estimator(struct gnet_stats_basic *bstats,
|
||||
struct gnet_stats_rate_est *rate_est);
|
||||
extern int gen_replace_estimator(struct gnet_stats_basic *bstats,
|
||||
struct gnet_stats_rate_est *rate_est,
|
||||
spinlock_t *stats_lock, struct rtattr *opt);
|
||||
spinlock_t *stats_lock, struct nlattr *opt);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user