d2cb0532c94242a928ab47af16a6dd0e6e7b9b57
[openwrt/openwrt.git] / target / linux / generic / backport-4.14 / 380-v5.3-net-sched-Introduce-act_ctinfo-action.patch
1 From e3777dd42dc6f1b9cb099836707a3e7971dcf4df Mon Sep 17 00:00:00 2001
2 From: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
3 Date: Wed, 13 Mar 2019 20:54:49 +0000
4 Subject: [PATCH] net: sched: Introduce act_ctinfo action
5
6 ctinfo is a new tc filter action module. It is designed to restore DSCPs
7 stored in conntrack marks
8
9 The feature is intended for use and has been found useful for restoring
10 ingress classifications based on egress classifications across links
11 that bleach or otherwise change DSCP, typically home ISP Internet links.
12 Restoring DSCP on ingress on the WAN link allows qdiscs such as CAKE to
13 shape inbound packets according to policies that are easier to implement
14 on egress.
15
16 Ingress classification is traditionally a challenging task since
17 iptables rules haven't yet run and tc filter/eBPF programs are pre-NAT
18 lookups, hence are unable to see internal IPv4 addresses as used on the
19 typical home masquerading gateway.
20
21 ctinfo understands the following parameters:
22
23 dscp mask[/statemask]
24
25 mask - a 32 bit mask of at least 6 contiguous bits where conndscp will
26 place the DSCP in conntrack mark. The DSCP is left-shifted by the
27 number of unset lower bits of the mask before storing into the mark
28 field.
29
30 statemask - a 32 bit mask of (usually) 1 bit length, outside the area
31 specified by mask. This represents a conditional operation flag the
32 DSCP is only restored if the flag is set. This is useful to implement a
33 'one shot' iptables based classification where the 'complicated'
34 iptables rules are only run once to classify the connection on initial
35 (egress) packet and subsequent packets are all marked/restored with the
36 same DSCP. A mask of zero disables the conditional behaviour.
37
38 optional parameters:
39
40 zone - conntrack zone
41
42 control - action related control (reclassify | pipe | drop | continue |
43 ok | goto chain <CHAIN_INDEX>
44
45 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
46 ---
47 include/net/tc_act/tc_ctinfo.h | 33 +++
48 include/uapi/linux/pkt_cls.h | 3 +-
49 include/uapi/linux/tc_act/tc_ctinfo.h | 29 ++
50 net/sched/Kconfig | 13 +
51 net/sched/Makefile | 1 +
52 net/sched/act_ctinfo.c | 394 ++++++++++++++++++++++++++
53 6 files changed, 472 insertions(+), 1 deletion(-)
54 create mode 100644 include/net/tc_act/tc_ctinfo.h
55 create mode 100644 include/uapi/linux/tc_act/tc_ctinfo.h
56 create mode 100644 net/sched/act_ctinfo.c
57
58 --- /dev/null
59 +++ b/include/net/tc_act/tc_ctinfo.h
60 @@ -0,0 +1,33 @@
61 +/* SPDX-License-Identifier: GPL-2.0 */
62 +#ifndef __NET_TC_CTINFO_H
63 +#define __NET_TC_CTINFO_H
64 +
65 +#include <net/act_api.h>
66 +
67 +struct tcf_ctinfo_params {
68 + struct rcu_head rcu;
69 + struct net *net;
70 + u32 dscpmask;
71 + u32 dscpstatemask;
72 + u32 cpmarkmask;
73 + u16 zone;
74 + u8 mode;
75 + u8 dscpmaskshift;
76 +};
77 +
78 +struct tcf_ctinfo {
79 + struct tc_action common;
80 + struct tcf_ctinfo_params __rcu *params;
81 + u64 stats_dscp_set;
82 + u64 stats_dscp_error;
83 + u64 stats_cpmark_set;
84 +};
85 +
86 +enum {
87 + CTINFO_MODE_DSCP = BIT(0),
88 + CTINFO_MODE_CPMARK = BIT(1)
89 +};
90 +
91 +#define to_ctinfo(a) ((struct tcf_ctinfo *)a)
92 +
93 +#endif /* __NET_TC_CTINFO_H */
94 --- a/include/uapi/linux/pkt_cls.h
95 +++ b/include/uapi/linux/pkt_cls.h
96 @@ -66,7 +66,8 @@ enum {
97 TCA_ID_UNSPEC=0,
98 TCA_ID_POLICE=1,
99 /* other actions go here */
100 - __TCA_ID_MAX=255
101 + TCA_ID_CTINFO=27,
102 + __TCA_ID_MAX = 255
103 };
104
105 #define TCA_ID_MAX __TCA_ID_MAX
106 --- /dev/null
107 +++ b/include/uapi/linux/tc_act/tc_ctinfo.h
108 @@ -0,0 +1,29 @@
109 +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
110 +#ifndef __UAPI_TC_CTINFO_H
111 +#define __UAPI_TC_CTINFO_H
112 +
113 +#include <linux/types.h>
114 +#include <linux/pkt_cls.h>
115 +
116 +struct tc_ctinfo {
117 + tc_gen;
118 +};
119 +
120 +enum {
121 + TCA_CTINFO_UNSPEC,
122 + TCA_CTINFO_PAD,
123 + TCA_CTINFO_TM,
124 + TCA_CTINFO_ACT,
125 + TCA_CTINFO_ZONE,
126 + TCA_CTINFO_PARMS_DSCP_MASK,
127 + TCA_CTINFO_PARMS_DSCP_STATEMASK,
128 + TCA_CTINFO_PARMS_CPMARK_MASK,
129 + TCA_CTINFO_STATS_DSCP_SET,
130 + TCA_CTINFO_STATS_DSCP_ERROR,
131 + TCA_CTINFO_STATS_CPMARK_SET,
132 + __TCA_CTINFO_MAX
133 +};
134 +
135 +#define TCA_CTINFO_MAX (__TCA_CTINFO_MAX - 1)
136 +
137 +#endif
138 --- a/net/sched/Kconfig
139 +++ b/net/sched/Kconfig
140 @@ -808,6 +808,19 @@ config NET_ACT_CONNMARK
141 To compile this code as a module, choose M here: the
142 module will be called act_connmark.
143
144 +config NET_ACT_CTINFO
145 + tristate "Netfilter Connmark to DSCP Retriever"
146 + depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
147 + depends on NF_CONNTRACK && NF_CONNTRACK_MARK
148 + help
149 + Say Y here to allow transfer of a connmark stored DSCP into
150 + ipv4/v6 diffserv
151 +
152 + If unsure, say N.
153 +
154 + To compile this code as a module, choose M here: the
155 + module will be called act_ctinfo.
156 +
157 config NET_ACT_SKBMOD
158 tristate "skb data modification action"
159 depends on NET_CLS_ACT
160 --- a/net/sched/Makefile
161 +++ b/net/sched/Makefile
162 @@ -21,6 +21,7 @@ obj-$(CONFIG_NET_ACT_CSUM) += act_csum.o
163 obj-$(CONFIG_NET_ACT_VLAN) += act_vlan.o
164 obj-$(CONFIG_NET_ACT_BPF) += act_bpf.o
165 obj-$(CONFIG_NET_ACT_CONNMARK) += act_connmark.o
166 +obj-$(CONFIG_NET_ACT_CTINFO) += act_ctinfo.o
167 obj-$(CONFIG_NET_ACT_SKBMOD) += act_skbmod.o
168 obj-$(CONFIG_NET_ACT_IFE) += act_ife.o
169 obj-$(CONFIG_NET_IFE_SKBMARK) += act_meta_mark.o
170 --- /dev/null
171 +++ b/net/sched/act_ctinfo.c
172 @@ -0,0 +1,394 @@
173 +// SPDX-License-Identifier: GPL-2.0+
174 +/* net/sched/act_ctinfo.c netfilter ctinfo connmark actions
175 + *
176 + * Copyright (c) 2019 Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
177 + */
178 +
179 +#include <linux/module.h>
180 +#include <linux/init.h>
181 +#include <linux/kernel.h>
182 +#include <linux/skbuff.h>
183 +#include <linux/rtnetlink.h>
184 +#include <linux/pkt_cls.h>
185 +#include <linux/ip.h>
186 +#include <linux/ipv6.h>
187 +#include <net/netlink.h>
188 +#include <net/pkt_sched.h>
189 +#include <net/act_api.h>
190 +#include <net/pkt_cls.h>
191 +#include <uapi/linux/tc_act/tc_ctinfo.h>
192 +#include <net/tc_act/tc_ctinfo.h>
193 +
194 +#include <net/netfilter/nf_conntrack.h>
195 +#include <net/netfilter/nf_conntrack_core.h>
196 +#include <net/netfilter/nf_conntrack_ecache.h>
197 +#include <net/netfilter/nf_conntrack_zones.h>
198 +
199 +static struct tc_action_ops act_ctinfo_ops;
200 +static unsigned int ctinfo_net_id;
201 +
202 +static void tcf_ctinfo_dscp_set(struct nf_conn *ct, struct tcf_ctinfo *ca,
203 + struct tcf_ctinfo_params *cp,
204 + struct sk_buff *skb, int wlen, int proto)
205 +{
206 + u8 dscp,newdscp;
207 +
208 + newdscp = (((ct->mark & cp->dscpmask) >> cp->dscpmaskshift) << 2) &
209 + ~INET_ECN_MASK;
210 +
211 + /* mark contains DSCP so restore DSCP bits from ct->mark into diffserv */
212 + /* using overlimits stats to count how many DSCP updates */
213 + switch (proto) {
214 + case NFPROTO_IPV4:
215 + dscp = ipv4_get_dsfield(ip_hdr(skb)) & ~INET_ECN_MASK;
216 + if (dscp != newdscp) {
217 + if (likely(!skb_try_make_writable(skb, wlen))) {
218 + ipv4_change_dsfield(ip_hdr(skb),
219 + INET_ECN_MASK,
220 + newdscp);
221 + ca->stats_dscp_set++;
222 + } else {
223 + ca->stats_dscp_error++;
224 + }
225 + }
226 + break;
227 + case NFPROTO_IPV6:
228 + dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & ~INET_ECN_MASK;
229 + if (dscp != newdscp) {
230 + if (likely(!skb_try_make_writable(skb, wlen))) {
231 + ipv6_change_dsfield(ipv6_hdr(skb),
232 + INET_ECN_MASK,
233 + newdscp);
234 + ca->stats_dscp_set++;
235 + } else {
236 + ca->stats_dscp_error++;
237 + }
238 + }
239 + break;
240 + default:
241 + break;
242 + }
243 +}
244 +
245 +static void tcf_ctinfo_cpmark_set(struct nf_conn *ct, struct tcf_ctinfo *ca,
246 + struct tcf_ctinfo_params *cp,
247 + struct sk_buff *skb)
248 +{
249 + ca->stats_cpmark_set++;
250 + skb->mark = ct->mark & cp->cpmarkmask;
251 +}
252 +
253 +static int tcf_ctinfo_act(struct sk_buff *skb, const struct tc_action *a,
254 + struct tcf_result *res)
255 +{
256 + const struct nf_conntrack_tuple_hash *thash = NULL;
257 + struct tcf_ctinfo *ca = to_ctinfo(a);
258 + struct nf_conntrack_tuple tuple;
259 + struct nf_conntrack_zone zone;
260 + enum ip_conntrack_info ctinfo;
261 + struct tcf_ctinfo_params *cp;
262 + struct nf_conn *ct;
263 + int proto, wlen;
264 + int action;
265 +
266 + cp = rcu_dereference_bh(ca->params);
267 +
268 + tcf_lastuse_update(&ca->tcf_tm);
269 + bstats_update(&ca->tcf_bstats, skb);
270 + action = READ_ONCE(ca->tcf_action);
271 +
272 + wlen = skb_network_offset(skb);
273 + if (tc_skb_protocol(skb) == htons(ETH_P_IP)) {
274 + wlen += sizeof(struct iphdr);
275 + if (!pskb_may_pull(skb, wlen))
276 + goto out;
277 +
278 + proto = NFPROTO_IPV4;
279 + } else if (tc_skb_protocol(skb) == htons(ETH_P_IPV6)) {
280 + wlen += sizeof(struct ipv6hdr);
281 + if (!pskb_may_pull(skb, wlen))
282 + goto out;
283 +
284 + proto = NFPROTO_IPV6;
285 + } else {
286 + goto out;
287 + }
288 +
289 + ct = nf_ct_get(skb, &ctinfo);
290 + if (!ct) { /* look harder, usually ingress */
291 + if (!nf_ct_get_tuplepr(skb, skb_network_offset(skb),
292 + proto, cp->net, &tuple))
293 + goto out;
294 + zone.id = cp->zone;
295 + zone.dir = NF_CT_DEFAULT_ZONE_DIR;
296 +
297 + thash = nf_conntrack_find_get(cp->net, &zone, &tuple);
298 + if (!thash)
299 + goto out;
300 +
301 + ct = nf_ct_tuplehash_to_ctrack(thash);
302 + }
303 +
304 + if (cp->mode & CTINFO_MODE_DSCP)
305 + if (!cp->dscpstatemask || (ct->mark & cp->dscpstatemask))
306 + tcf_ctinfo_dscp_set(ct, ca, cp, skb, wlen, proto);
307 +
308 + if (cp->mode & CTINFO_MODE_CPMARK)
309 + tcf_ctinfo_cpmark_set(ct, ca, cp, skb);
310 +
311 + if (thash)
312 + nf_ct_put(ct);
313 +out:
314 + return action;
315 +}
316 +
317 +static const struct nla_policy ctinfo_policy[TCA_CTINFO_MAX + 1] = {
318 + [TCA_CTINFO_ACT] = { .len = sizeof(struct
319 + tc_ctinfo) },
320 + [TCA_CTINFO_ZONE] = { .type = NLA_U16 },
321 + [TCA_CTINFO_PARMS_DSCP_MASK] = { .type = NLA_U32 },
322 + [TCA_CTINFO_PARMS_DSCP_STATEMASK] = { .type = NLA_U32 },
323 + [TCA_CTINFO_PARMS_CPMARK_MASK] = { .type = NLA_U32 },
324 +};
325 +
326 +static int tcf_ctinfo_init(struct net *net, struct nlattr *nla,
327 + struct nlattr *est, struct tc_action **a,
328 + int ovr, int bind)
329 +{
330 + struct tc_action_net *tn = net_generic(net, ctinfo_net_id);
331 + struct nlattr *tb[TCA_CTINFO_MAX + 1];
332 + struct tcf_ctinfo_params *cp_new;
333 +/* struct tcf_chain *goto_ch = NULL; */
334 + u32 dscpmask = 0, dscpstatemask;
335 + struct tc_ctinfo *actparm;
336 + struct tcf_ctinfo *ci;
337 + u8 dscpmaskshift;
338 + int ret = 0, err;
339 +
340 + if (!nla)
341 + return -EINVAL;
342 +
343 + err = nla_parse_nested(tb, TCA_CTINFO_MAX, nla, ctinfo_policy, NULL);
344 + if (err < 0)
345 + return err;
346 +
347 + if (!tb[TCA_CTINFO_ACT])
348 + return -EINVAL;
349 + actparm = nla_data(tb[TCA_CTINFO_ACT]);
350 +
351 + /* do some basic validation here before dynamically allocating things */
352 + /* that we would otherwise have to clean up. */
353 + if (tb[TCA_CTINFO_PARMS_DSCP_MASK]) {
354 + dscpmask = nla_get_u32(tb[TCA_CTINFO_PARMS_DSCP_MASK]);
355 + /* need contiguous 6 bit mask */
356 + dscpmaskshift = dscpmask ? __ffs(dscpmask) : 0;
357 + if ((~0 & (dscpmask >> dscpmaskshift)) != 0x3f)
358 + return -EINVAL;
359 + dscpstatemask = tb[TCA_CTINFO_PARMS_DSCP_STATEMASK] ?
360 + nla_get_u32(tb[TCA_CTINFO_PARMS_DSCP_STATEMASK]) : 0;
361 + /* mask & statemask must not overlap */
362 + if (dscpmask & dscpstatemask)
363 + return -EINVAL;
364 + }
365 + /* done the validation:now to the actual action allocation */
366 + err = tcf_idr_check(tn, actparm->index, a, bind);
367 + if (!err) {
368 + ret = tcf_idr_create(tn, actparm->index, est, a,
369 + &act_ctinfo_ops, bind, false);
370 + if (ret) {
371 + /* tcf_idr_cleanup(tn, actparm->index); */
372 + return ret;
373 + }
374 + ret = ACT_P_CREATED;
375 + } else if (err > 0) {
376 + if (bind) /* don't override defaults */
377 + return 0;
378 + if (!ovr) {
379 + tcf_idr_release(*a, bind);
380 + return -EEXIST;
381 + }
382 + } else {
383 + return err;
384 + }
385 +
386 +/* err = tcf_action_check_ctrlact(actparm->action, tp, &goto_ch, extack);
387 + if (err < 0)
388 + goto release_idr;
389 + */
390 +
391 + ci = to_ctinfo(*a);
392 +
393 + cp_new = kzalloc(sizeof(*cp_new), GFP_KERNEL);
394 + if (unlikely(!cp_new)) {
395 + err = -ENOMEM;
396 + goto put_chain;
397 + }
398 +
399 + cp_new->net = net;
400 + cp_new->zone = tb[TCA_CTINFO_ZONE] ?
401 + nla_get_u16(tb[TCA_CTINFO_ZONE]) : 0;
402 + if (dscpmask) {
403 + cp_new->dscpmask = dscpmask;
404 + cp_new->dscpmaskshift = dscpmaskshift;
405 + cp_new->dscpstatemask = dscpstatemask;
406 + cp_new->mode |= CTINFO_MODE_DSCP;
407 + }
408 +
409 + if (tb[TCA_CTINFO_PARMS_CPMARK_MASK]) {
410 + cp_new->cpmarkmask = nla_get_u32(tb[TCA_CTINFO_PARMS_CPMARK_MASK]);
411 + cp_new->mode |= CTINFO_MODE_CPMARK;
412 + }
413 +
414 + spin_lock_bh(&ci->tcf_lock);
415 +/* goto_ch = tcf_action_set_ctrlact(*a, actparm->action, goto_ch); */
416 + ci->tcf_action = actparm->action;
417 + rcu_swap_protected(ci->params, cp_new,
418 + lockdep_is_held(&ci->tcf_lock));
419 + spin_unlock_bh(&ci->tcf_lock);
420 +
421 +/* if (goto_ch)
422 + tcf_chain_put_by_act(goto_ch); */
423 + if (cp_new)
424 + kfree_rcu(cp_new, rcu);
425 +
426 + if (ret == ACT_P_CREATED)
427 + tcf_idr_insert(tn, *a);
428 +
429 + return ret;
430 +
431 +put_chain:
432 +/* if (goto_ch)
433 + tcf_chain_put_by_act(goto_ch); */
434 +/*release_idr:*/
435 + tcf_idr_release(*a, bind);
436 + return err;
437 +}
438 +
439 +static int tcf_ctinfo_dump(struct sk_buff *skb, struct tc_action *a,
440 + int bind, int ref)
441 +{
442 + struct tcf_ctinfo *ci = to_ctinfo(a);
443 + struct tc_ctinfo opt = {
444 + .index = ci->tcf_index,
445 + .refcnt = ci->tcf_refcnt - ref,
446 + .bindcnt = ci->tcf_bindcnt - bind,
447 + };
448 + unsigned char *b = skb_tail_pointer(skb);
449 + struct tcf_ctinfo_params *cp;
450 + struct tcf_t t;
451 +
452 + spin_lock_bh(&ci->tcf_lock);
453 + cp = rcu_dereference_protected(ci->params,
454 + lockdep_is_held(&ci->tcf_lock));
455 +
456 + tcf_tm_dump(&t, &ci->tcf_tm);
457 + if (nla_put_64bit(skb, TCA_CTINFO_TM, sizeof(t), &t, TCA_CTINFO_PAD))
458 + goto nla_put_failure;
459 +
460 + opt.action = ci->tcf_action;
461 + if (nla_put(skb, TCA_CTINFO_ACT, sizeof(opt), &opt))
462 + goto nla_put_failure;
463 +
464 + if (nla_put_u16(skb, TCA_CTINFO_ZONE, cp->zone))
465 + goto nla_put_failure;
466 +
467 + if (cp->mode & CTINFO_MODE_DSCP) {
468 + if (nla_put_u32(skb, TCA_CTINFO_PARMS_DSCP_MASK,
469 + cp->dscpmask))
470 + goto nla_put_failure;
471 + if (nla_put_u32(skb, TCA_CTINFO_PARMS_DSCP_STATEMASK,
472 + cp->dscpstatemask))
473 + goto nla_put_failure;
474 + }
475 +
476 + if (cp->mode & CTINFO_MODE_CPMARK) {
477 + if (nla_put_u32(skb, TCA_CTINFO_PARMS_CPMARK_MASK,
478 + cp->cpmarkmask))
479 + goto nla_put_failure;
480 + }
481 +
482 + if (nla_put_u64_64bit(skb, TCA_CTINFO_STATS_DSCP_SET,
483 + ci->stats_dscp_set, TCA_CTINFO_PAD))
484 + goto nla_put_failure;
485 +
486 + if (nla_put_u64_64bit(skb, TCA_CTINFO_STATS_DSCP_ERROR,
487 + ci->stats_dscp_error, TCA_CTINFO_PAD))
488 + goto nla_put_failure;
489 +
490 + if (nla_put_u64_64bit(skb, TCA_CTINFO_STATS_CPMARK_SET,
491 + ci->stats_cpmark_set, TCA_CTINFO_PAD))
492 + goto nla_put_failure;
493 +
494 + spin_unlock_bh(&ci->tcf_lock);
495 + return skb->len;
496 +
497 +nla_put_failure:
498 + spin_unlock_bh(&ci->tcf_lock);
499 + nlmsg_trim(skb, b);
500 + return -1;
501 +}
502 +
503 +static int tcf_ctinfo_walker(struct net *net, struct sk_buff *skb,
504 + struct netlink_callback *cb, int type,
505 + const struct tc_action_ops *ops)
506 +{
507 + struct tc_action_net *tn = net_generic(net, ctinfo_net_id);
508 +
509 + return tcf_generic_walker(tn, skb, cb, type, ops);
510 +}
511 +
512 +static int tcf_ctinfo_search(struct net *net, struct tc_action **a, u32 index)
513 +{
514 + struct tc_action_net *tn = net_generic(net, ctinfo_net_id);
515 +
516 + return tcf_idr_search(tn, a, index);
517 +}
518 +
519 +static struct tc_action_ops act_ctinfo_ops = {
520 + .kind = "ctinfo",
521 + .type = TCA_ID_CTINFO,
522 + .owner = THIS_MODULE,
523 + .act = tcf_ctinfo_act,
524 + .dump = tcf_ctinfo_dump,
525 + .init = tcf_ctinfo_init,
526 + .walk = tcf_ctinfo_walker,
527 + .lookup = tcf_ctinfo_search,
528 + .size = sizeof(struct tcf_ctinfo),
529 +};
530 +
531 +static __net_init int ctinfo_init_net(struct net *net)
532 +{
533 + struct tc_action_net *tn = net_generic(net, ctinfo_net_id);
534 +
535 + return tc_action_net_init(net, tn, &act_ctinfo_ops);
536 +}
537 +
538 +static void __net_exit ctinfo_exit_net(struct net *net)
539 +{
540 + struct tc_action_net *tn = net_generic(net, ctinfo_net_id);
541 +
542 + tc_action_net_exit(tn);
543 +}
544 +
545 +static struct pernet_operations ctinfo_net_ops = {
546 + .init = ctinfo_init_net,
547 + .exit = ctinfo_exit_net,
548 + .id = &ctinfo_net_id,
549 + .size = sizeof(struct tc_action_net),
550 +};
551 +
552 +static int __init ctinfo_init_module(void)
553 +{
554 + return tcf_register_action(&act_ctinfo_ops, &ctinfo_net_ops);
555 +}
556 +
557 +static void __exit ctinfo_cleanup_module(void)
558 +{
559 + tcf_unregister_action(&act_ctinfo_ops, &ctinfo_net_ops);
560 +}
561 +
562 +module_init(ctinfo_init_module);
563 +module_exit(ctinfo_cleanup_module);
564 +MODULE_AUTHOR("Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>");
565 +MODULE_DESCRIPTION("Conntrack mark to DSCP restoring");
566 +MODULE_LICENSE("GPL");