]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_tc.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Zebra Traffic Control (TC) Data structures and definitions
4 * These are public definitions referenced by multiple files.
6 * Copyright (C) 2022 Shichu Yang
20 struct zebra_tc_qdisc
{
23 struct tc_qdisc qdisc
;
26 struct zebra_tc_class
{
29 struct tc_class
class;
32 struct zebra_tc_filter
{
35 struct tc_filter filter
;
38 const char *tc_qdisc_kind2str(uint32_t type
);
39 enum tc_qdisc_kind
tc_qdisc_str2kind(const char *type
);
41 uint32_t zebra_tc_qdisc_hash_key(const void *arg
);
42 bool zebra_tc_qdisc_hash_equal(const void *arg1
, const void *arg2
);
43 void zebra_tc_qdisc_install(struct zebra_tc_qdisc
*qdisc
);
44 void zebra_tc_qdisc_uninstall(struct zebra_tc_qdisc
*qdisc
);
46 uint32_t zebra_tc_class_hash_key(const void *arg
);
47 bool zebra_tc_class_hash_equal(const void *arg1
, const void *arg2
);
48 void zebra_tc_class_add(struct zebra_tc_class
*class);
49 void zebra_tc_class_delete(struct zebra_tc_class
*class);
51 const char *tc_filter_kind2str(uint32_t type
);
52 enum tc_qdisc_kind
tc_filter_str2kind(const char *type
);
53 void zebra_tc_filter_add(struct zebra_tc_filter
*filter
);
54 void zebra_tc_filter_delete(struct zebra_tc_filter
*filter
);
56 void zebra_tc_filters_free(void *arg
);
57 uint32_t zebra_tc_filter_hash_key(const void *arg
);
58 bool zebra_tc_filter_hash_equal(const void *arg1
, const void *arg2
);
60 void kernel_read_tc_qdisc(struct zebra_ns
*zns
);
66 #endif /* _ZEBRA_TC_H */