aboutsummaryrefslogtreecommitdiffstats
path: root/.gitignore
blob: 81ab8c9ba55f34ee3d134c39c01d8e0bc5f2fa03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
*~
*.sw[op]

/build-root/.ccache
/build-root/build-*/
/build-root/install-*/
/build-root/tools
/build-root/dpdk-includes/
/build-root/packages-vpp/
/build-root/path_setup
/build-root/deb/debian/vpp-plugins/
/build-root/deb/.pybuild/
/build-root/*.buildinfo
/build-root/*.deb
/build-root/*.rpm
/build-root/*.tar.xz
/build-root/*.changes
/build-root/rpmbuild/
/build-root/test-doc/
/build-root/test-cov/
/build-root/test/
/test/run/
/test/build/
/test/coverage/
/test/vapi_test/
/test/doc/build/
/build-config.mk
/build/external/*.tar.gz
/build/external/*.tar.xz
/build/external/vpp-*
/build/external/dpdk_mlx_default.sh
/build/external/downloads/
/path_setup
/tools/
# start autotools ignore
autom4te.cache/
config/
Makefile.in
aclocal.m4
app.info
compile
config.log
config.guess
config.sub
config.status
configure.scan
coverage_report
depcomp
install-sh
libtool
m4
missing
stamp-h1
ltmain.sh
ylwrap
test-driver

*.iml
.deps.ok
.settings
.autotools
# stop autotools ignore

# OSX and some IDE
.DS_Store
.idea/
.project
.cproject
.pydevproject
.vscode/
cmake-build*/

# cscope and ctags
/cscope.*
/tags
ID
TAGS
# ggtags
GPATH
GRTAGS
GTAGS
# Generated documentation
/build-root/docs
/build-root/.doxygen-bootstrap.ok
/build-root/.doxygen-siphon.dep
/docs/venv

# language servers
compile_commands.json
.clangd
.cache

# indent backup files
*.BAK

# Python bytecode
*.pyc

# Python api generator
/src/vpp-api/python/build
/src/vpp-api/python/dist
/src/vpp-api/python/vpp_papi.egg-info
/src/vpp_api/.tox
/src/vpp_api/.stestr

# vppctl command list
/src/scripts/vppctl-cmd-list

# No core files
**/core

# extra scripts config
/extras/scripts/.config/

# extras gomemif build files
/extras/gomemif/bazel*

# vpptop build files
/extras/vpptop/build/*

# debian packaging
.pc

# No test log files
**/test-run-*-*-*

# host stack test framework
/extras/hs-test/vpp-data
/extras/hs-test/hs-test
/extras/hs-test/http_server
or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @brief bier_fmask : The BIER fmask * * The BIER fmask contains the bitString that is applied to packets that * egress towards the next-hop. As such the fmask is part of the rewrite * (adj) for that next-hop. It it thus an extension of the next-hop and in * no way associated with the bit-position(s) that are reachable through it. * Fmasks are thus shared by bit-positions that egress throught the same * nh (BFR-NBR). * Deag fmasks are also shread in the event that a router has local * bit-positions. This is necessary to prevent the router recieving two copies * of each packet. Consequently it also means that they share the same * disposition data for the global data. */ #ifndef __BIER_FMASK_H__ #define __BIER_FMASK_H__ #include <vlib/vlib.h> #include <vnet/fib/fib_node.h> #include <vnet/mpls/packet.h> #include <vnet/dpo/dpo.h> #include <vnet/bier/bier_types.h> #include <vnet/bier/bier_fmask_db.h> /** * A struct that represents the reference counting of the bits */ typedef struct bier_fmask_bits_t_ { /** * each bit in the mask needs to be reference counted * and set/cleared on the 0->1 and 1->0 transitions. */ bier_bit_string_t bfmb_input_reset_string; u32 *bfmb_refs; /** * The total number of references to bits set on this mask * in effect a count of the number of children. */ u32 bfmb_count; } bier_fmask_bits_t; /** * Flags on fmask */ typedef enum bier_fmask_attributes_t_ { BIER_FMASK_ATTR_FIRST, BIER_FMASK_ATTR_FORWARDING = BIER_FMASK_ATTR_FIRST, BIER_FMASK_ATTR_DISP, BIER_FMASK_ATTR_MPLS, BIER_FMASK_ATTR_LAST = BIER_FMASK_ATTR_DISP, } bier_fmask_attributes_t; #define BIER_FMASK_ATTR_NAMES { \ [BIER_FMASK_ATTR_FORWARDING] = "forwarding", \ [BIER_FMASK_ATTR_DISP] = "disposition", \ [BIER_FMASK_ATTR_MPLS] = "mpls", \ } #define FOR_EACH_BIER_FMASK_ATTR(_item) \ for (_item = BIER_FMASK_ATTR_FIRST; \ _item <= BIER_FMASK_ATTR_LAST; \ _item++) typedef enum bier_fmask_flags_t_ { BIER_FMASK_FLAG_FORWARDING = (1 << BIER_FMASK_ATTR_FORWARDING), BIER_FMASK_FLAG_DISP = (1 << BIER_FMASK_ATTR_DISP), BIER_FMASK_FLAG_MPLS = (1 << BIER_FMASK_ATTR_MPLS), } bier_fmask_flags_t; /** * An outgoing BIER mask. aka forwarding bit mask (in the RFCs) * * This mask's function is two-fold * 1 - it is logical-AND with the input packet header to produce the * output packet header * 2 - it is logical NAND with the input packet header to modify the bit-mask * for the next lookup */ typedef struct bier_fmask_t_ { /** * The BIER fmask is a child of a FIB entry in the FIB graph. */ fib_node_t bfm_node; /** * operational/state flags on the fmask */ bier_fmask_flags_t bfm_flags; /** * The bits, and their ref counts, that are set on this mask * This mask changes as BIER entries link to and from this fmask */ bier_fmask_bits_t bfm_bits; /** * The key to this fmask - used for store/lookup in the DB */ bier_fmask_id_t *bfm_id; /** * The MPLS label to paint on the header during forwarding */ mpls_label_t bfm_label; /** * The path-list */ fib_node_index_t bfm_pl; /** * the index of this fmask in the parent's child list. */ u32 bfm_sibling; /** * The index into the adj table for the adj that * this fmask resolves via */ dpo_id_t bfm_dpo; } bier_fmask_t; extern void bier_fmask_link(index_t bfmi, bier_bp_t bp); extern void bier_fmask_unlink(index_t bfmi, bier_bp_t bp); extern void bier_fmask_unlock(index_t bfmi); extern void bier_fmask_lock(index_t bfmi); extern index_t bier_fmask_create_and_lock(const bier_fmask_id_t *fmid, const fib_route_path_t *rpath); extern u8* format_bier_fmask(u8 *s, va_list *ap); extern void bier_fmask_contribute_forwarding(index_t bfmi, dpo_id_t *dpo); extern u32 bier_fmask_child_add (fib_node_index_t fib_entry_index, fib_node_type_t child_type, fib_node_index_t child_index); extern void bier_fmask_child_remove (fib_node_index_t fib_entry_index, u32 sibling_index); /* * provided for fast data-path access */ bier_fmask_t *bier_fmask_pool; static inline bier_fmask_t * bier_fmask_get (u32 index) { return (pool_elt_at_index(bier_fmask_pool, index)); } #endif