Lines Matching refs:shared_tables
51 /* shared_tables:
54 * shared_tables value must be 0 in order to enable the strict mode.
56 * example of the evolution of shared_tables:
58 * add vrf0 --> table 100 shared_tables = 0 | t0
59 * add vrf1 --> table 101 shared_tables = 0 | t1
60 * add vrf2 --> table 100 shared_tables = 1 | t2
61 * add vrf3 --> table 100 shared_tables = 1 | t3
62 * add vrf4 --> table 101 shared_tables = 2 v t4
64 * shared_tables is a "step function" (or "staircase function")
68 * at t2, vrf0 and vrf2 are bound to table 100: shared_tables = 1.
71 * value of shared_tables is still 1.
73 * table 100, the shared_tables will not increase (considering only
76 * at t4, vrf4 is bound to table 101, and shared_tables = 2.
78 * Looking at the value of shared_tables we can immediately know if
80 * can be enforced iff shared_tables = 0.
82 * Conversely, shared_tables is decreased when a vrf is de-associated
85 u32 shared_tables;
308 ++vmap->shared_tables;
343 --vmap->shared_tables;
1846 if (vmap->shared_tables) {