cls_api.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. /*
  2. * net/sched/cls_api.c Packet classifier API.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version
  7. * 2 of the License, or (at your option) any later version.
  8. *
  9. * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
  10. *
  11. * Changes:
  12. *
  13. * Eduardo J. Blanco <ejbs@netlabs.com.uy> :990222: kmod support
  14. *
  15. */
  16. #include <asm/uaccess.h>
  17. #include <asm/system.h>
  18. #include <linux/bitops.h>
  19. #include <linux/module.h>
  20. #include <linux/types.h>
  21. #include <linux/kernel.h>
  22. #include <linux/sched.h>
  23. #include <linux/string.h>
  24. #include <linux/mm.h>
  25. #include <linux/socket.h>
  26. #include <linux/sockios.h>
  27. #include <linux/in.h>
  28. #include <linux/errno.h>
  29. #include <linux/interrupt.h>
  30. #include <linux/netdevice.h>
  31. #include <linux/skbuff.h>
  32. #include <linux/rtnetlink.h>
  33. #include <linux/init.h>
  34. #include <linux/kmod.h>
  35. #include <net/sock.h>
  36. #include <net/pkt_sched.h>
  37. #include <net/pkt_cls.h>
  38. #if 0 /* control */
  39. #define DPRINTK(format,args...) printk(KERN_DEBUG format,##args)
  40. #else
  41. #define DPRINTK(format,args...)
  42. #endif
  43. /* The list of all installed classifier types */
  44. static struct tcf_proto_ops *tcf_proto_base;
  45. /* Protects list of registered TC modules. It is pure SMP lock. */
  46. static DEFINE_RWLOCK(cls_mod_lock);
  47. /* Find classifier type by string name */
  48. static struct tcf_proto_ops * tcf_proto_lookup_ops(struct rtattr *kind)
  49. {
  50. struct tcf_proto_ops *t = NULL;
  51. if (kind) {
  52. read_lock(&cls_mod_lock);
  53. for (t = tcf_proto_base; t; t = t->next) {
  54. if (rtattr_strcmp(kind, t->kind) == 0) {
  55. if (!try_module_get(t->owner))
  56. t = NULL;
  57. break;
  58. }
  59. }
  60. read_unlock(&cls_mod_lock);
  61. }
  62. return t;
  63. }
  64. /* Register(unregister) new classifier type */
  65. int register_tcf_proto_ops(struct tcf_proto_ops *ops)
  66. {
  67. struct tcf_proto_ops *t, **tp;
  68. int rc = -EEXIST;
  69. write_lock(&cls_mod_lock);
  70. for (tp = &tcf_proto_base; (t = *tp) != NULL; tp = &t->next)
  71. if (!strcmp(ops->kind, t->kind))
  72. goto out;
  73. ops->next = NULL;
  74. *tp = ops;
  75. rc = 0;
  76. out:
  77. write_unlock(&cls_mod_lock);
  78. return rc;
  79. }
  80. int unregister_tcf_proto_ops(struct tcf_proto_ops *ops)
  81. {
  82. struct tcf_proto_ops *t, **tp;
  83. int rc = -ENOENT;
  84. write_lock(&cls_mod_lock);
  85. for (tp = &tcf_proto_base; (t=*tp) != NULL; tp = &t->next)
  86. if (t == ops)
  87. break;
  88. if (!t)
  89. goto out;
  90. *tp = t->next;
  91. rc = 0;
  92. out:
  93. write_unlock(&cls_mod_lock);
  94. return rc;
  95. }
  96. static int tfilter_notify(struct sk_buff *oskb, struct nlmsghdr *n,
  97. struct tcf_proto *tp, unsigned long fh, int event);
  98. /* Select new prio value from the range, managed by kernel. */
  99. static __inline__ u32 tcf_auto_prio(struct tcf_proto *tp)
  100. {
  101. u32 first = TC_H_MAKE(0xC0000000U,0U);
  102. if (tp)
  103. first = tp->prio-1;
  104. return first;
  105. }
  106. /* Add/change/delete/get a filter node */
  107. static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
  108. {
  109. struct rtattr **tca;
  110. struct tcmsg *t;
  111. u32 protocol;
  112. u32 prio;
  113. u32 nprio;
  114. u32 parent;
  115. struct net_device *dev;
  116. struct Qdisc *q;
  117. struct tcf_proto **back, **chain;
  118. struct tcf_proto *tp;
  119. struct tcf_proto_ops *tp_ops;
  120. struct Qdisc_class_ops *cops;
  121. unsigned long cl;
  122. unsigned long fh;
  123. int err;
  124. replay:
  125. tca = arg;
  126. t = NLMSG_DATA(n);
  127. protocol = TC_H_MIN(t->tcm_info);
  128. prio = TC_H_MAJ(t->tcm_info);
  129. nprio = prio;
  130. parent = t->tcm_parent;
  131. cl = 0;
  132. if (prio == 0) {
  133. /* If no priority is given, user wants we allocated it. */
  134. if (n->nlmsg_type != RTM_NEWTFILTER || !(n->nlmsg_flags&NLM_F_CREATE))
  135. return -ENOENT;
  136. prio = TC_H_MAKE(0x80000000U,0U);
  137. }
  138. /* Find head of filter chain. */
  139. /* Find link */
  140. if ((dev = __dev_get_by_index(t->tcm_ifindex)) == NULL)
  141. return -ENODEV;
  142. /* Find qdisc */
  143. if (!parent) {
  144. q = dev->qdisc_sleeping;
  145. parent = q->handle;
  146. } else if ((q = qdisc_lookup(dev, TC_H_MAJ(t->tcm_parent))) == NULL)
  147. return -EINVAL;
  148. /* Is it classful? */
  149. if ((cops = q->ops->cl_ops) == NULL)
  150. return -EINVAL;
  151. /* Do we search for filter, attached to class? */
  152. if (TC_H_MIN(parent)) {
  153. cl = cops->get(q, parent);
  154. if (cl == 0)
  155. return -ENOENT;
  156. }
  157. /* And the last stroke */
  158. chain = cops->tcf_chain(q, cl);
  159. err = -EINVAL;
  160. if (chain == NULL)
  161. goto errout;
  162. /* Check the chain for existence of proto-tcf with this priority */
  163. for (back = chain; (tp=*back) != NULL; back = &tp->next) {
  164. if (tp->prio >= prio) {
  165. if (tp->prio == prio) {
  166. if (!nprio || (tp->protocol != protocol && protocol))
  167. goto errout;
  168. } else
  169. tp = NULL;
  170. break;
  171. }
  172. }
  173. if (tp == NULL) {
  174. /* Proto-tcf does not exist, create new one */
  175. if (tca[TCA_KIND-1] == NULL || !protocol)
  176. goto errout;
  177. err = -ENOENT;
  178. if (n->nlmsg_type != RTM_NEWTFILTER || !(n->nlmsg_flags&NLM_F_CREATE))
  179. goto errout;
  180. /* Create new proto tcf */
  181. err = -ENOBUFS;
  182. if ((tp = kmalloc(sizeof(*tp), GFP_KERNEL)) == NULL)
  183. goto errout;
  184. err = -EINVAL;
  185. tp_ops = tcf_proto_lookup_ops(tca[TCA_KIND-1]);
  186. if (tp_ops == NULL) {
  187. #ifdef CONFIG_KMOD
  188. struct rtattr *kind = tca[TCA_KIND-1];
  189. char name[IFNAMSIZ];
  190. if (kind != NULL &&
  191. rtattr_strlcpy(name, kind, IFNAMSIZ) < IFNAMSIZ) {
  192. rtnl_unlock();
  193. request_module("cls_%s", name);
  194. rtnl_lock();
  195. tp_ops = tcf_proto_lookup_ops(kind);
  196. /* We dropped the RTNL semaphore in order to
  197. * perform the module load. So, even if we
  198. * succeeded in loading the module we have to
  199. * replay the request. We indicate this using
  200. * -EAGAIN.
  201. */
  202. if (tp_ops != NULL) {
  203. module_put(tp_ops->owner);
  204. err = -EAGAIN;
  205. }
  206. }
  207. #endif
  208. kfree(tp);
  209. goto errout;
  210. }
  211. memset(tp, 0, sizeof(*tp));
  212. tp->ops = tp_ops;
  213. tp->protocol = protocol;
  214. tp->prio = nprio ? : tcf_auto_prio(*back);
  215. tp->q = q;
  216. tp->classify = tp_ops->classify;
  217. tp->classid = parent;
  218. if ((err = tp_ops->init(tp)) != 0) {
  219. module_put(tp_ops->owner);
  220. kfree(tp);
  221. goto errout;
  222. }
  223. qdisc_lock_tree(dev);
  224. tp->next = *back;
  225. *back = tp;
  226. qdisc_unlock_tree(dev);
  227. } else if (tca[TCA_KIND-1] && rtattr_strcmp(tca[TCA_KIND-1], tp->ops->kind))
  228. goto errout;
  229. fh = tp->ops->get(tp, t->tcm_handle);
  230. if (fh == 0) {
  231. if (n->nlmsg_type == RTM_DELTFILTER && t->tcm_handle == 0) {
  232. qdisc_lock_tree(dev);
  233. *back = tp->next;
  234. qdisc_unlock_tree(dev);
  235. tfilter_notify(skb, n, tp, fh, RTM_DELTFILTER);
  236. tcf_destroy(tp);
  237. err = 0;
  238. goto errout;
  239. }
  240. err = -ENOENT;
  241. if (n->nlmsg_type != RTM_NEWTFILTER || !(n->nlmsg_flags&NLM_F_CREATE))
  242. goto errout;
  243. } else {
  244. switch (n->nlmsg_type) {
  245. case RTM_NEWTFILTER:
  246. err = -EEXIST;
  247. if (n->nlmsg_flags&NLM_F_EXCL)
  248. goto errout;
  249. break;
  250. case RTM_DELTFILTER:
  251. err = tp->ops->delete(tp, fh);
  252. if (err == 0)
  253. tfilter_notify(skb, n, tp, fh, RTM_DELTFILTER);
  254. goto errout;
  255. case RTM_GETTFILTER:
  256. err = tfilter_notify(skb, n, tp, fh, RTM_NEWTFILTER);
  257. goto errout;
  258. default:
  259. err = -EINVAL;
  260. goto errout;
  261. }
  262. }
  263. err = tp->ops->change(tp, cl, t->tcm_handle, tca, &fh);
  264. if (err == 0)
  265. tfilter_notify(skb, n, tp, fh, RTM_NEWTFILTER);
  266. errout:
  267. if (cl)
  268. cops->put(q, cl);
  269. if (err == -EAGAIN)
  270. /* Replay the request. */
  271. goto replay;
  272. return err;
  273. }
  274. static int
  275. tcf_fill_node(struct sk_buff *skb, struct tcf_proto *tp, unsigned long fh,
  276. u32 pid, u32 seq, u16 flags, int event)
  277. {
  278. struct tcmsg *tcm;
  279. struct nlmsghdr *nlh;
  280. unsigned char *b = skb->tail;
  281. nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*tcm), flags);
  282. tcm = NLMSG_DATA(nlh);
  283. tcm->tcm_family = AF_UNSPEC;
  284. tcm->tcm__pad1 = 0;
  285. tcm->tcm__pad1 = 0;
  286. tcm->tcm_ifindex = tp->q->dev->ifindex;
  287. tcm->tcm_parent = tp->classid;
  288. tcm->tcm_info = TC_H_MAKE(tp->prio, tp->protocol);
  289. RTA_PUT(skb, TCA_KIND, IFNAMSIZ, tp->ops->kind);
  290. tcm->tcm_handle = fh;
  291. if (RTM_DELTFILTER != event) {
  292. tcm->tcm_handle = 0;
  293. if (tp->ops->dump && tp->ops->dump(tp, fh, skb, tcm) < 0)
  294. goto rtattr_failure;
  295. }
  296. nlh->nlmsg_len = skb->tail - b;
  297. return skb->len;
  298. nlmsg_failure:
  299. rtattr_failure:
  300. skb_trim(skb, b - skb->data);
  301. return -1;
  302. }
  303. static int tfilter_notify(struct sk_buff *oskb, struct nlmsghdr *n,
  304. struct tcf_proto *tp, unsigned long fh, int event)
  305. {
  306. struct sk_buff *skb;
  307. u32 pid = oskb ? NETLINK_CB(oskb).pid : 0;
  308. skb = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL);
  309. if (!skb)
  310. return -ENOBUFS;
  311. if (tcf_fill_node(skb, tp, fh, pid, n->nlmsg_seq, 0, event) <= 0) {
  312. kfree_skb(skb);
  313. return -EINVAL;
  314. }
  315. return rtnetlink_send(skb, pid, RTNLGRP_TC, n->nlmsg_flags&NLM_F_ECHO);
  316. }
  317. struct tcf_dump_args
  318. {
  319. struct tcf_walker w;
  320. struct sk_buff *skb;
  321. struct netlink_callback *cb;
  322. };
  323. static int tcf_node_dump(struct tcf_proto *tp, unsigned long n, struct tcf_walker *arg)
  324. {
  325. struct tcf_dump_args *a = (void*)arg;
  326. return tcf_fill_node(a->skb, tp, n, NETLINK_CB(a->cb->skb).pid,
  327. a->cb->nlh->nlmsg_seq, NLM_F_MULTI, RTM_NEWTFILTER);
  328. }
  329. static int tc_dump_tfilter(struct sk_buff *skb, struct netlink_callback *cb)
  330. {
  331. int t;
  332. int s_t;
  333. struct net_device *dev;
  334. struct Qdisc *q;
  335. struct tcf_proto *tp, **chain;
  336. struct tcmsg *tcm = (struct tcmsg*)NLMSG_DATA(cb->nlh);
  337. unsigned long cl = 0;
  338. struct Qdisc_class_ops *cops;
  339. struct tcf_dump_args arg;
  340. if (cb->nlh->nlmsg_len < NLMSG_LENGTH(sizeof(*tcm)))
  341. return skb->len;
  342. if ((dev = dev_get_by_index(tcm->tcm_ifindex)) == NULL)
  343. return skb->len;
  344. read_lock(&qdisc_tree_lock);
  345. if (!tcm->tcm_parent)
  346. q = dev->qdisc_sleeping;
  347. else
  348. q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent));
  349. if (!q)
  350. goto out;
  351. if ((cops = q->ops->cl_ops) == NULL)
  352. goto errout;
  353. if (TC_H_MIN(tcm->tcm_parent)) {
  354. cl = cops->get(q, tcm->tcm_parent);
  355. if (cl == 0)
  356. goto errout;
  357. }
  358. chain = cops->tcf_chain(q, cl);
  359. if (chain == NULL)
  360. goto errout;
  361. s_t = cb->args[0];
  362. for (tp=*chain, t=0; tp; tp = tp->next, t++) {
  363. if (t < s_t) continue;
  364. if (TC_H_MAJ(tcm->tcm_info) &&
  365. TC_H_MAJ(tcm->tcm_info) != tp->prio)
  366. continue;
  367. if (TC_H_MIN(tcm->tcm_info) &&
  368. TC_H_MIN(tcm->tcm_info) != tp->protocol)
  369. continue;
  370. if (t > s_t)
  371. memset(&cb->args[1], 0, sizeof(cb->args)-sizeof(cb->args[0]));
  372. if (cb->args[1] == 0) {
  373. if (tcf_fill_node(skb, tp, 0, NETLINK_CB(cb->skb).pid,
  374. cb->nlh->nlmsg_seq, NLM_F_MULTI, RTM_NEWTFILTER) <= 0) {
  375. break;
  376. }
  377. cb->args[1] = 1;
  378. }
  379. if (tp->ops->walk == NULL)
  380. continue;
  381. arg.w.fn = tcf_node_dump;
  382. arg.skb = skb;
  383. arg.cb = cb;
  384. arg.w.stop = 0;
  385. arg.w.skip = cb->args[1]-1;
  386. arg.w.count = 0;
  387. tp->ops->walk(tp, &arg.w);
  388. cb->args[1] = arg.w.count+1;
  389. if (arg.w.stop)
  390. break;
  391. }
  392. cb->args[0] = t;
  393. errout:
  394. if (cl)
  395. cops->put(q, cl);
  396. out:
  397. read_unlock(&qdisc_tree_lock);
  398. dev_put(dev);
  399. return skb->len;
  400. }
  401. void
  402. tcf_exts_destroy(struct tcf_proto *tp, struct tcf_exts *exts)
  403. {
  404. #ifdef CONFIG_NET_CLS_ACT
  405. if (exts->action) {
  406. tcf_action_destroy(exts->action, TCA_ACT_UNBIND);
  407. exts->action = NULL;
  408. }
  409. #elif defined CONFIG_NET_CLS_POLICE
  410. if (exts->police) {
  411. tcf_police_release(exts->police, TCA_ACT_UNBIND);
  412. exts->police = NULL;
  413. }
  414. #endif
  415. }
  416. int
  417. tcf_exts_validate(struct tcf_proto *tp, struct rtattr **tb,
  418. struct rtattr *rate_tlv, struct tcf_exts *exts,
  419. struct tcf_ext_map *map)
  420. {
  421. memset(exts, 0, sizeof(*exts));
  422. #ifdef CONFIG_NET_CLS_ACT
  423. {
  424. int err;
  425. struct tc_action *act;
  426. if (map->police && tb[map->police-1]) {
  427. act = tcf_action_init_1(tb[map->police-1], rate_tlv, "police",
  428. TCA_ACT_NOREPLACE, TCA_ACT_BIND, &err);
  429. if (act == NULL)
  430. return err;
  431. act->type = TCA_OLD_COMPAT;
  432. exts->action = act;
  433. } else if (map->action && tb[map->action-1]) {
  434. act = tcf_action_init(tb[map->action-1], rate_tlv, NULL,
  435. TCA_ACT_NOREPLACE, TCA_ACT_BIND, &err);
  436. if (act == NULL)
  437. return err;
  438. exts->action = act;
  439. }
  440. }
  441. #elif defined CONFIG_NET_CLS_POLICE
  442. if (map->police && tb[map->police-1]) {
  443. struct tcf_police *p;
  444. p = tcf_police_locate(tb[map->police-1], rate_tlv);
  445. if (p == NULL)
  446. return -EINVAL;
  447. exts->police = p;
  448. } else if (map->action && tb[map->action-1])
  449. return -EOPNOTSUPP;
  450. #else
  451. if ((map->action && tb[map->action-1]) ||
  452. (map->police && tb[map->police-1]))
  453. return -EOPNOTSUPP;
  454. #endif
  455. return 0;
  456. }
  457. void
  458. tcf_exts_change(struct tcf_proto *tp, struct tcf_exts *dst,
  459. struct tcf_exts *src)
  460. {
  461. #ifdef CONFIG_NET_CLS_ACT
  462. if (src->action) {
  463. struct tc_action *act;
  464. tcf_tree_lock(tp);
  465. act = xchg(&dst->action, src->action);
  466. tcf_tree_unlock(tp);
  467. if (act)
  468. tcf_action_destroy(act, TCA_ACT_UNBIND);
  469. }
  470. #elif defined CONFIG_NET_CLS_POLICE
  471. if (src->police) {
  472. struct tcf_police *p;
  473. tcf_tree_lock(tp);
  474. p = xchg(&dst->police, src->police);
  475. tcf_tree_unlock(tp);
  476. if (p)
  477. tcf_police_release(p, TCA_ACT_UNBIND);
  478. }
  479. #endif
  480. }
  481. int
  482. tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts,
  483. struct tcf_ext_map *map)
  484. {
  485. #ifdef CONFIG_NET_CLS_ACT
  486. if (map->action && exts->action) {
  487. /*
  488. * again for backward compatible mode - we want
  489. * to work with both old and new modes of entering
  490. * tc data even if iproute2 was newer - jhs
  491. */
  492. struct rtattr * p_rta = (struct rtattr*) skb->tail;
  493. if (exts->action->type != TCA_OLD_COMPAT) {
  494. RTA_PUT(skb, map->action, 0, NULL);
  495. if (tcf_action_dump(skb, exts->action, 0, 0) < 0)
  496. goto rtattr_failure;
  497. p_rta->rta_len = skb->tail - (u8*)p_rta;
  498. } else if (map->police) {
  499. RTA_PUT(skb, map->police, 0, NULL);
  500. if (tcf_action_dump_old(skb, exts->action, 0, 0) < 0)
  501. goto rtattr_failure;
  502. p_rta->rta_len = skb->tail - (u8*)p_rta;
  503. }
  504. }
  505. #elif defined CONFIG_NET_CLS_POLICE
  506. if (map->police && exts->police) {
  507. struct rtattr * p_rta = (struct rtattr*) skb->tail;
  508. RTA_PUT(skb, map->police, 0, NULL);
  509. if (tcf_police_dump(skb, exts->police) < 0)
  510. goto rtattr_failure;
  511. p_rta->rta_len = skb->tail - (u8*)p_rta;
  512. }
  513. #endif
  514. return 0;
  515. rtattr_failure: __attribute__ ((unused))
  516. return -1;
  517. }
  518. int
  519. tcf_exts_dump_stats(struct sk_buff *skb, struct tcf_exts *exts,
  520. struct tcf_ext_map *map)
  521. {
  522. #ifdef CONFIG_NET_CLS_ACT
  523. if (exts->action)
  524. if (tcf_action_copy_stats(skb, exts->action, 1) < 0)
  525. goto rtattr_failure;
  526. #elif defined CONFIG_NET_CLS_POLICE
  527. if (exts->police)
  528. if (tcf_police_dump_stats(skb, exts->police) < 0)
  529. goto rtattr_failure;
  530. #endif
  531. return 0;
  532. rtattr_failure: __attribute__ ((unused))
  533. return -1;
  534. }
  535. static int __init tc_filter_init(void)
  536. {
  537. struct rtnetlink_link *link_p = rtnetlink_links[PF_UNSPEC];
  538. /* Setup rtnetlink links. It is made here to avoid
  539. exporting large number of public symbols.
  540. */
  541. if (link_p) {
  542. link_p[RTM_NEWTFILTER-RTM_BASE].doit = tc_ctl_tfilter;
  543. link_p[RTM_DELTFILTER-RTM_BASE].doit = tc_ctl_tfilter;
  544. link_p[RTM_GETTFILTER-RTM_BASE].doit = tc_ctl_tfilter;
  545. link_p[RTM_GETTFILTER-RTM_BASE].dumpit = tc_dump_tfilter;
  546. }
  547. return 0;
  548. }
  549. subsys_initcall(tc_filter_init);
  550. EXPORT_SYMBOL(register_tcf_proto_ops);
  551. EXPORT_SYMBOL(unregister_tcf_proto_ops);
  552. EXPORT_SYMBOL(tcf_exts_validate);
  553. EXPORT_SYMBOL(tcf_exts_destroy);
  554. EXPORT_SYMBOL(tcf_exts_change);
  555. EXPORT_SYMBOL(tcf_exts_dump);
  556. EXPORT_SYMBOL(tcf_exts_dump_stats);