1 --- a/include/linux/pkt_sched.h
2 +++ b/include/linux/pkt_sched.h
3 @@ -182,8 +182,37 @@ struct tc_sfq_xstats
5 * The only reason for this is efficiency, it is possible
6 * to change these parameters in compile time.
8 + * If you need to play with these values, use esfq instead.
16 + TCA_SFQ_HASH_CLASSIC,
19 + TCA_SFQ_HASH_FWMARK,
21 + TCA_SFQ_HASH_CTORIGDST,
22 + TCA_SFQ_HASH_CTORIGSRC,
23 + TCA_SFQ_HASH_CTREPLDST,
24 + TCA_SFQ_HASH_CTREPLSRC,
25 + TCA_SFQ_HASH_CTNATCHG,
30 + unsigned quantum; /* Bytes per round allocated to flow */
31 + int perturb_period; /* Period of hash perturbation */
32 + __u32 limit; /* Maximal packets in queue */
33 + unsigned divisor; /* Hash divisor */
34 + unsigned flows; /* Maximal number of flows */
35 + unsigned hash_kind; /* Hash function to use for flow identification */
41 --- a/net/sched/Kconfig
42 +++ b/net/sched/Kconfig
43 @@ -137,6 +137,37 @@ config NET_SCH_SFQ
44 To compile this code as a module, choose M here: the
45 module will be called sch_sfq.
48 + tristate "Enhanced Stochastic Fairness Queueing (ESFQ)"
50 + Say Y here if you want to use the Enhanced Stochastic Fairness
51 + Queueing (ESFQ) packet scheduling algorithm for some of your network
52 + devices or as a leaf discipline for a classful qdisc such as HTB or
53 + CBQ (see the top of <file:net/sched/sch_esfq.c> for details and
54 + references to the SFQ algorithm).
56 + This is an enchanced SFQ version which allows you to control some
57 + hardcoded values in the SFQ scheduler.
59 + ESFQ also adds control of the hash function used to identify packet
60 + flows. The original SFQ discipline hashes by connection; ESFQ add
61 + several other hashing methods, such as by src IP or by dst IP, which
62 + can be more fair to users in some networking situations.
64 + To compile this code as a module, choose M here: the
65 + module will be called sch_esfq.
67 +config NET_SCH_ESFQ_NFCT
68 + bool "Connection Tracking Hash Types"
69 + depends on NET_SCH_ESFQ && NF_CONNTRACK
71 + Say Y here to enable support for hashing based on netfilter connection
72 + tracking information. This is useful for a router that is also using
73 + NAT to connect privately-addressed hosts to the Internet. If you want
74 + to provide fair distribution of upstream bandwidth, ESFQ must use
75 + connection tracking information, since all outgoing packets will share
76 + the same source address.
79 tristate "True Link Equalizer (TEQL)"
81 --- a/net/sched/Makefile
82 +++ b/net/sched/Makefile
83 @@ -24,6 +24,7 @@ obj-$(CONFIG_NET_SCH_GRED) += sch_gred.o
84 obj-$(CONFIG_NET_SCH_INGRESS) += sch_ingress.o
85 obj-$(CONFIG_NET_SCH_DSMARK) += sch_dsmark.o
86 obj-$(CONFIG_NET_SCH_SFQ) += sch_sfq.o
87 +obj-$(CONFIG_NET_SCH_ESFQ) += sch_esfq.o
88 obj-$(CONFIG_NET_SCH_TBF) += sch_tbf.o
89 obj-$(CONFIG_NET_SCH_TEQL) += sch_teql.o
90 obj-$(CONFIG_NET_SCH_PRIO) += sch_prio.o
92 +++ b/net/sched/sch_esfq.c
95 + * net/sched/sch_esfq.c Extended Stochastic Fairness Queueing discipline.
97 + * This program is free software; you can redistribute it and/or
98 + * modify it under the terms of the GNU General Public License
99 + * as published by the Free Software Foundation; either version
100 + * 2 of the License, or (at your option) any later version.
102 + * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
104 + * Changes: Alexander Atanasov, <alex@ssi.bg>
105 + * Added dynamic depth,limit,divisor,hash_kind options.
106 + * Added dst and src hashes.
108 + * Alexander Clouter, <alex@digriz.org.uk>
109 + * Ported ESFQ to Linux 2.6.
111 + * Corey Hickey, <bugfood-c@fatooh.org>
112 + * Maintenance of the Linux 2.6 port.
113 + * Added fwmark hash (thanks to Robert Kurjata).
114 + * Added usage of jhash.
115 + * Added conntrack support.
116 + * Added ctnatchg hash (thanks to Ben Pfountz).
119 +#include <linux/module.h>
120 +#include <asm/uaccess.h>
121 +#include <asm/system.h>
122 +#include <linux/bitops.h>
123 +#include <linux/types.h>
124 +#include <linux/kernel.h>
125 +#include <linux/jiffies.h>
126 +#include <linux/string.h>
127 +#include <linux/mm.h>
128 +#include <linux/socket.h>
129 +#include <linux/sockios.h>
130 +#include <linux/in.h>
131 +#include <linux/errno.h>
132 +#include <linux/interrupt.h>
133 +#include <linux/if_ether.h>
134 +#include <linux/inet.h>
135 +#include <linux/netdevice.h>
136 +#include <linux/etherdevice.h>
137 +#include <linux/notifier.h>
138 +#include <linux/init.h>
140 +#include <net/netlink.h>
141 +#include <linux/ipv6.h>
142 +#include <net/route.h>
143 +#include <linux/skbuff.h>
144 +#include <net/sock.h>
145 +#include <net/pkt_sched.h>
146 +#include <linux/jhash.h>
147 +#include <net/netfilter/nf_conntrack.h>
149 +/* Stochastic Fairness Queuing algorithm.
150 + For more comments look at sch_sfq.c.
151 + The difference is that you can change limit, depth,
152 + hash table size and choose alternate hash types.
154 + classic: same as in sch_sfq.c
155 + dst: destination IP address
156 + src: source IP address
157 + fwmark: netfilter mark value
158 + ctorigdst: original destination IP address
159 + ctorigsrc: original source IP address
160 + ctrepldst: reply destination IP address
161 + ctreplsrc: reply source IP
168 +/* This type should contain at least SFQ_DEPTH*2 values */
169 +typedef unsigned int esfq_index;
177 +struct esfq_sched_data
180 + int perturb_period;
181 + unsigned quantum; /* Allotment per round: MUST BE >= MTU */
184 + unsigned hash_divisor;
185 + unsigned hash_kind;
187 + struct timer_list perturb_timer;
189 + esfq_index tail; /* Index of current slot in round */
190 + esfq_index max_depth; /* Maximal depth */
192 + esfq_index *ht; /* Hash table */
193 + esfq_index *next; /* Active slots link */
194 + short *allot; /* Current allotment per slot */
195 + unsigned short *hash; /* Hash value indexed by slots */
196 + struct sk_buff_head *qs; /* Slot queue */
197 + struct esfq_head *dep; /* Linked list of slots, indexed by depth */
200 +/* This contains the info we will hash. */
201 +struct esfq_packet_info
203 + u32 proto; /* protocol or port */
204 + u32 src; /* source from packet header */
205 + u32 dst; /* destination from packet header */
206 + u32 ctorigsrc; /* original source from conntrack */
207 + u32 ctorigdst; /* original destination from conntrack */
208 + u32 ctreplsrc; /* reply source from conntrack */
209 + u32 ctrepldst; /* reply destination from conntrack */
210 + u32 mark; /* netfilter mark (fwmark) */
213 +static __inline__ unsigned esfq_jhash_1word(struct esfq_sched_data *q,u32 a)
215 + return jhash_1word(a, q->perturbation) & (q->hash_divisor-1);
218 +static __inline__ unsigned esfq_jhash_2words(struct esfq_sched_data *q, u32 a, u32 b)
220 + return jhash_2words(a, b, q->perturbation) & (q->hash_divisor-1);
223 +static __inline__ unsigned esfq_jhash_3words(struct esfq_sched_data *q, u32 a, u32 b, u32 c)
225 + return jhash_3words(a, b, c, q->perturbation) & (q->hash_divisor-1);
228 +static unsigned esfq_hash(struct esfq_sched_data *q, struct sk_buff *skb)
230 + struct esfq_packet_info info;
231 +#ifdef CONFIG_NET_SCH_ESFQ_NFCT
232 + enum ip_conntrack_info ctinfo;
233 + struct nf_conn *ct = nf_ct_get(skb, &ctinfo);
236 + switch (skb->protocol) {
237 + case __constant_htons(ETH_P_IP):
239 + struct iphdr *iph = ip_hdr(skb);
240 + info.dst = iph->daddr;
241 + info.src = iph->saddr;
242 + if (!(iph->frag_off&htons(IP_MF|IP_OFFSET)) &&
243 + (iph->protocol == IPPROTO_TCP ||
244 + iph->protocol == IPPROTO_UDP ||
245 + iph->protocol == IPPROTO_SCTP ||
246 + iph->protocol == IPPROTO_DCCP ||
247 + iph->protocol == IPPROTO_ESP))
248 + info.proto = *(((u32*)iph) + iph->ihl);
250 + info.proto = iph->protocol;
253 + case __constant_htons(ETH_P_IPV6):
255 + struct ipv6hdr *iph = ipv6_hdr(skb);
256 + /* Hash ipv6 addresses into a u32. This isn't ideal,
257 + * but the code is simple. */
258 + info.dst = jhash2(iph->daddr.s6_addr32, 4, q->perturbation);
259 + info.src = jhash2(iph->saddr.s6_addr32, 4, q->perturbation);
260 + if (iph->nexthdr == IPPROTO_TCP ||
261 + iph->nexthdr == IPPROTO_UDP ||
262 + iph->nexthdr == IPPROTO_SCTP ||
263 + iph->nexthdr == IPPROTO_DCCP ||
264 + iph->nexthdr == IPPROTO_ESP)
265 + info.proto = *(u32*)&iph[1];
267 + info.proto = iph->nexthdr;
271 + info.dst = (u32)(unsigned long)skb_dst(skb);
272 + info.src = (u32)(unsigned long)skb->sk;
273 + info.proto = skb->protocol;
276 + info.mark = skb->mark;
278 +#ifdef CONFIG_NET_SCH_ESFQ_NFCT
279 + /* defaults if there is no conntrack info */
280 + info.ctorigsrc = info.src;
281 + info.ctorigdst = info.dst;
282 + info.ctreplsrc = info.dst;
283 + info.ctrepldst = info.src;
284 + /* collect conntrack info */
285 + if (ct && ct != &nf_conntrack_untracked) {
286 + if (skb->protocol == __constant_htons(ETH_P_IP)) {
287 + info.ctorigsrc = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip;
288 + info.ctorigdst = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3.ip;
289 + info.ctreplsrc = ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3.ip;
290 + info.ctrepldst = ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3.ip;
292 + else if (skb->protocol == __constant_htons(ETH_P_IPV6)) {
293 + /* Again, hash ipv6 addresses into a single u32. */
294 + info.ctorigsrc = jhash2(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip6, 4, q->perturbation);
295 + info.ctorigdst = jhash2(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3.ip6, 4, q->perturbation);
296 + info.ctreplsrc = jhash2(ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3.ip6, 4, q->perturbation);
297 + info.ctrepldst = jhash2(ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3.ip6, 4, q->perturbation);
303 + switch(q->hash_kind) {
304 + case TCA_SFQ_HASH_CLASSIC:
305 + return esfq_jhash_3words(q, info.dst, info.src, info.proto);
306 + case TCA_SFQ_HASH_DST:
307 + return esfq_jhash_1word(q, info.dst);
308 + case TCA_SFQ_HASH_SRC:
309 + return esfq_jhash_1word(q, info.src);
310 + case TCA_SFQ_HASH_FWMARK:
311 + return esfq_jhash_1word(q, info.mark);
312 +#ifdef CONFIG_NET_SCH_ESFQ_NFCT
313 + case TCA_SFQ_HASH_CTORIGDST:
314 + return esfq_jhash_1word(q, info.ctorigdst);
315 + case TCA_SFQ_HASH_CTORIGSRC:
316 + return esfq_jhash_1word(q, info.ctorigsrc);
317 + case TCA_SFQ_HASH_CTREPLDST:
318 + return esfq_jhash_1word(q, info.ctrepldst);
319 + case TCA_SFQ_HASH_CTREPLSRC:
320 + return esfq_jhash_1word(q, info.ctreplsrc);
321 + case TCA_SFQ_HASH_CTNATCHG:
323 + if (info.ctorigdst == info.ctreplsrc)
324 + return esfq_jhash_1word(q, info.ctorigsrc);
325 + return esfq_jhash_1word(q, info.ctreplsrc);
329 + if (net_ratelimit())
330 + printk(KERN_WARNING "ESFQ: Unknown hash method. Falling back to classic.\n");
332 + return esfq_jhash_3words(q, info.dst, info.src, info.proto);
335 +static inline void esfq_link(struct esfq_sched_data *q, esfq_index x)
338 + int d = q->qs[x].qlen + q->depth;
341 + n = q->dep[d].next;
342 + q->dep[x].next = n;
343 + q->dep[x].prev = p;
344 + q->dep[p].next = q->dep[n].prev = x;
347 +static inline void esfq_dec(struct esfq_sched_data *q, esfq_index x)
351 + n = q->dep[x].next;
352 + p = q->dep[x].prev;
353 + q->dep[p].next = n;
354 + q->dep[n].prev = p;
356 + if (n == p && q->max_depth == q->qs[x].qlen + 1)
362 +static inline void esfq_inc(struct esfq_sched_data *q, esfq_index x)
367 + n = q->dep[x].next;
368 + p = q->dep[x].prev;
369 + q->dep[p].next = n;
370 + q->dep[n].prev = p;
372 + if (q->max_depth < d)
378 +static unsigned int esfq_drop(struct Qdisc *sch)
380 + struct esfq_sched_data *q = qdisc_priv(sch);
381 + esfq_index d = q->max_depth;
382 + struct sk_buff *skb;
385 + /* Queue is full! Find the longest slot and
386 + drop a packet from it */
389 + esfq_index x = q->dep[d+q->depth].next;
390 + skb = q->qs[x].prev;
392 + __skb_unlink(skb, &q->qs[x]);
396 + sch->qstats.drops++;
397 + sch->qstats.backlog -= len;
402 + /* It is difficult to believe, but ALL THE SLOTS HAVE LENGTH 1. */
403 + d = q->next[q->tail];
404 + q->next[q->tail] = q->next[d];
405 + q->allot[q->next[d]] += q->quantum;
406 + skb = q->qs[d].prev;
408 + __skb_unlink(skb, &q->qs[d]);
412 + q->ht[q->hash[d]] = q->depth;
413 + sch->qstats.drops++;
414 + sch->qstats.backlog -= len;
421 +static void esfq_q_enqueue(struct sk_buff *skb, struct esfq_sched_data *q, unsigned int end)
423 + unsigned hash = esfq_hash(q, skb);
424 + unsigned depth = q->depth;
429 + q->ht[hash] = x = q->dep[depth].next;
433 + if (end == ESFQ_TAIL)
434 + __skb_queue_tail(&q->qs[x], skb);
436 + __skb_queue_head(&q->qs[x], skb);
439 + if (q->qs[x].qlen == 1) { /* The flow is new */
440 + if (q->tail == depth) { /* It is the first flow */
443 + q->allot[x] = q->quantum;
445 + q->next[x] = q->next[q->tail];
446 + q->next[q->tail] = x;
452 +static int esfq_enqueue(struct sk_buff *skb, struct Qdisc* sch)
454 + struct esfq_sched_data *q = qdisc_priv(sch);
455 + esfq_q_enqueue(skb, q, ESFQ_TAIL);
456 + sch->qstats.backlog += skb->len;
457 + if (++sch->q.qlen < q->limit-1) {
458 + sch->bstats.bytes += skb->len;
459 + sch->bstats.packets++;
463 + sch->qstats.drops++;
465 + return NET_XMIT_CN;
468 +static struct sk_buff *esfq_peek(struct Qdisc* sch)
470 + struct esfq_sched_data *q = qdisc_priv(sch);
473 + /* No active slots */
474 + if (q->tail == q->depth)
477 + a = q->next[q->tail];
478 + return skb_peek(&q->qs[a]);
481 +static struct sk_buff *esfq_q_dequeue(struct esfq_sched_data *q)
483 + struct sk_buff *skb;
484 + unsigned depth = q->depth;
485 + esfq_index a, old_a;
487 + /* No active slots */
488 + if (q->tail == depth)
491 + a = old_a = q->next[q->tail];
494 + skb = __skb_dequeue(&q->qs[a]);
497 + /* Is the slot empty? */
498 + if (q->qs[a].qlen == 0) {
499 + q->ht[q->hash[a]] = depth;
505 + q->next[q->tail] = a;
506 + q->allot[a] += q->quantum;
507 + } else if ((q->allot[a] -= skb->len) <= 0) {
510 + q->allot[a] += q->quantum;
516 +static struct sk_buff *esfq_dequeue(struct Qdisc* sch)
518 + struct esfq_sched_data *q = qdisc_priv(sch);
519 + struct sk_buff *skb;
521 + skb = esfq_q_dequeue(q);
525 + sch->qstats.backlog -= skb->len;
529 +static void esfq_q_destroy(struct esfq_sched_data *q)
531 + del_timer(&q->perturb_timer);
546 +static void esfq_destroy(struct Qdisc *sch)
548 + struct esfq_sched_data *q = qdisc_priv(sch);
553 +static void esfq_reset(struct Qdisc* sch)
555 + struct sk_buff *skb;
557 + while ((skb = esfq_dequeue(sch)) != NULL)
561 +static void esfq_perturbation(unsigned long arg)
563 + struct Qdisc *sch = (struct Qdisc*)arg;
564 + struct esfq_sched_data *q = qdisc_priv(sch);
566 + q->perturbation = net_random()&0x1F;
568 + if (q->perturb_period) {
569 + q->perturb_timer.expires = jiffies + q->perturb_period;
570 + add_timer(&q->perturb_timer);
574 +static unsigned int esfq_check_hash(unsigned int kind)
577 + case TCA_SFQ_HASH_CTORIGDST:
578 + case TCA_SFQ_HASH_CTORIGSRC:
579 + case TCA_SFQ_HASH_CTREPLDST:
580 + case TCA_SFQ_HASH_CTREPLSRC:
581 + case TCA_SFQ_HASH_CTNATCHG:
582 +#ifndef CONFIG_NET_SCH_ESFQ_NFCT
584 + if (net_ratelimit())
585 + printk(KERN_WARNING "ESFQ: Conntrack hash types disabled in kernel config. Falling back to classic.\n");
586 + return TCA_SFQ_HASH_CLASSIC;
589 + case TCA_SFQ_HASH_CLASSIC:
590 + case TCA_SFQ_HASH_DST:
591 + case TCA_SFQ_HASH_SRC:
592 + case TCA_SFQ_HASH_FWMARK:
596 + if (net_ratelimit())
597 + printk(KERN_WARNING "ESFQ: Unknown hash type. Falling back to classic.\n");
598 + return TCA_SFQ_HASH_CLASSIC;
603 +static int esfq_q_init(struct esfq_sched_data *q, struct nlattr *opt)
605 + struct tc_esfq_qopt *ctl = nla_data(opt);
606 + esfq_index p = ~0U/2;
609 + if (opt && opt->nla_len < nla_attr_size(sizeof(*ctl)))
612 + q->perturbation = 0;
613 + q->hash_kind = TCA_SFQ_HASH_CLASSIC;
616 + q->perturb_period = 0;
617 + q->hash_divisor = 1024;
618 + q->tail = q->limit = q->depth = 128;
621 + struct tc_esfq_qopt *ctl = nla_data(opt);
623 + q->quantum = ctl->quantum;
624 + q->perturb_period = ctl->perturb_period*HZ;
625 + q->hash_divisor = ctl->divisor ? : 1024;
626 + q->tail = q->limit = q->depth = ctl->flows ? : 128;
628 + if ( q->depth > p - 1 )
632 + q->limit = min_t(u32, ctl->limit, q->depth);
634 + if (ctl->hash_kind) {
635 + q->hash_kind = esfq_check_hash(ctl->hash_kind);
639 + q->ht = kmalloc(q->hash_divisor*sizeof(esfq_index), GFP_KERNEL);
642 + q->dep = kmalloc((1+q->depth*2)*sizeof(struct esfq_head), GFP_KERNEL);
645 + q->next = kmalloc(q->depth*sizeof(esfq_index), GFP_KERNEL);
648 + q->allot = kmalloc(q->depth*sizeof(short), GFP_KERNEL);
651 + q->hash = kmalloc(q->depth*sizeof(unsigned short), GFP_KERNEL);
654 + q->qs = kmalloc(q->depth*sizeof(struct sk_buff_head), GFP_KERNEL);
658 + for (i=0; i< q->hash_divisor; i++)
659 + q->ht[i] = q->depth;
660 + for (i=0; i<q->depth; i++) {
661 + skb_queue_head_init(&q->qs[i]);
662 + q->dep[i+q->depth].next = i+q->depth;
663 + q->dep[i+q->depth].prev = i+q->depth;
666 + for (i=0; i<q->depth; i++)
674 +static int esfq_init(struct Qdisc *sch, struct nlattr *opt)
676 + struct esfq_sched_data *q = qdisc_priv(sch);
679 + q->quantum = psched_mtu(qdisc_dev(sch)); /* default */
680 + if ((err = esfq_q_init(q, opt)))
683 + init_timer(&q->perturb_timer);
684 + q->perturb_timer.data = (unsigned long)sch;
685 + q->perturb_timer.function = esfq_perturbation;
686 + if (q->perturb_period) {
687 + q->perturb_timer.expires = jiffies + q->perturb_period;
688 + add_timer(&q->perturb_timer);
694 +static int esfq_change(struct Qdisc *sch, struct nlattr *opt)
696 + struct esfq_sched_data *q = qdisc_priv(sch);
697 + struct esfq_sched_data new;
698 + struct sk_buff *skb;
701 + /* set up new queue */
702 + memset(&new, 0, sizeof(struct esfq_sched_data));
703 + new.quantum = psched_mtu(qdisc_dev(sch)); /* default */
704 + if ((err = esfq_q_init(&new, opt)))
707 + /* copy all packets from the old queue to the new queue */
708 + sch_tree_lock(sch);
709 + while ((skb = esfq_q_dequeue(q)) != NULL)
710 + esfq_q_enqueue(skb, &new, ESFQ_TAIL);
712 + /* clean up the old queue */
715 + /* copy elements of the new queue into the old queue */
716 + q->perturb_period = new.perturb_period;
717 + q->quantum = new.quantum;
718 + q->limit = new.limit;
719 + q->depth = new.depth;
720 + q->hash_divisor = new.hash_divisor;
721 + q->hash_kind = new.hash_kind;
722 + q->tail = new.tail;
723 + q->max_depth = new.max_depth;
726 + q->next = new.next;
727 + q->allot = new.allot;
728 + q->hash = new.hash;
732 + if (q->perturb_period) {
733 + q->perturb_timer.expires = jiffies + q->perturb_period;
734 + add_timer(&q->perturb_timer);
736 + q->perturbation = 0;
738 + sch_tree_unlock(sch);
742 +static int esfq_dump(struct Qdisc *sch, struct sk_buff *skb)
744 + struct esfq_sched_data *q = qdisc_priv(sch);
745 + unsigned char *b = skb_tail_pointer(skb);
746 + struct tc_esfq_qopt opt;
748 + opt.quantum = q->quantum;
749 + opt.perturb_period = q->perturb_period/HZ;
751 + opt.limit = q->limit;
752 + opt.divisor = q->hash_divisor;
753 + opt.flows = q->depth;
754 + opt.hash_kind = q->hash_kind;
756 + NLA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt);
761 + nlmsg_trim(skb, b);
765 +static struct Qdisc_ops esfq_qdisc_ops =
770 + .priv_size = sizeof(struct esfq_sched_data),
771 + .enqueue = esfq_enqueue,
772 + .dequeue = esfq_dequeue,
776 + .reset = esfq_reset,
777 + .destroy = esfq_destroy,
778 + .change = esfq_change,
780 + .owner = THIS_MODULE,
783 +static int __init esfq_module_init(void)
785 + return register_qdisc(&esfq_qdisc_ops);
787 +static void __exit esfq_module_exit(void)
789 + unregister_qdisc(&esfq_qdisc_ops);
791 +module_init(esfq_module_init)
792 +module_exit(esfq_module_exit)
793 +MODULE_LICENSE("GPL");