Searched refs:size (Results 1 - 25 of 214) sorted by relevance

123456789

/vpp/src/vcl/
H A Dvcl_test.conf12 segment-size 0x10000000
13 segment-size 268435456
14 add-segment-size 0x1000000
15 add-segment-size 134217728
17 rx-fifo-size 3145728
18 rx-fifo-size 0x300000
19 tx-fifo-size 3145728
20 tx-fifo-size 0x300000
21 event-queue-size 1024
22 event-queue-size
[all...]
H A Dldp.c89 * they are the same size */
91 "ldp bitmap size mismatch");
93 "ldp bitmap size mismatch");
312 u32 size = sizeof (epfd); local
315 (void) vls_attr (vlsh, VPPCOM_ATTR_SET_LIBC_EPFD, &epfd, &size);
348 ssize_t size; local
356 size = vls_read (vlsh, buf, nbytes);
357 if (size < 0)
359 errno = -size;
360 size
376 ssize_t size = 0; local
416 ssize_t size = 0; local
442 ssize_t size = 0, total = 0; local
492 u32 size; local
589 u32 size = sizeof (flags); local
1184 u32 size = sizeof (ep); local
1308 u32 size = sizeof (ep); local
1339 ssize_t size; local
1366 ssize_t size = 0; local
1516 ssize_t size; local
1581 ssize_t size; local
1607 ssize_t size; local
1635 ssize_t size; local
1662 ssize_t size; local
1708 ssize_t size; local
1756 ssize_t size; local
1810 ssize_t size; local
2256 epoll_create(int size) argument
2305 u32 size = sizeof (epfd); local
2455 u32 size = sizeof (epfd); local
[all...]
/vpp/extras/libmemif/examples/icmp_responder/
H A Dicmp_proto.h31 int resolve_packet2 (void *pck, uint32_t * size, uint8_t ip_addr[4]);
34 int resolve_packet3 (void **pck, uint32_t * size, uint8_t ip_addr[4]);
36 int generate_packet (void *pck, uint32_t * size, uint8_t saddr[4],
39 int generate_packet2 (void *pck, uint32_t * size, uint8_t saddr[4],
/vpp/src/vppinfra/
H A Dcache.h44 * Allow CFLAGS to override the configured / deduced cache line size
48 /* Default cache line size of 64 bytes. */
56 #error Cache line size 512 bytes or greater
74 #define _CLIB_PREFETCH(n,size,type) \
75 if ((size) > (n)*CLIB_CACHE_LINE_BYTES) \
80 #define CLIB_PREFETCH(addr,size,type) \
84 ASSERT ((size) <= 4*CLIB_CACHE_LINE_BYTES); \
85 _CLIB_PREFETCH (0, size, type); \
86 _CLIB_PREFETCH (1, size, type); \
87 _CLIB_PREFETCH (2, size, typ
[all...]
H A Dmem.h125 clib_mem_alloc_aligned_at_offset (uword size, uword align, uword align_offset,
142 p = mspace_get_aligned (heap, size, align, align_offset);
151 CLIB_MEM_UNPOISON (p, size);
157 clib_mem_alloc (uword size) argument
159 return clib_mem_alloc_aligned_at_offset (size, /* align */ 1,
165 clib_mem_alloc_aligned (uword size, uword align) argument
167 return clib_mem_alloc_aligned_at_offset (size, align, /* align_offset */ 0,
173 clib_mem_alloc_or_null (uword size) argument
175 return clib_mem_alloc_aligned_at_offset (size, /* align */ 1,
181 clib_mem_alloc_aligned_or_null (uword size, uwor argument
83 ASSERT(numa_id < ARRAY_LEN (clib_per_numa_mheaps)); return clib_per_numa_mheaps[numa_id]; } always_inline void * clib_mem_set_per_numa_heap (u8 * new_heap) { int numa = os_get_numa_index (); void *old = clib_per_numa_mheaps[numa]; clib_per_numa_mheaps[numa] = new_heap; return old; } always_inline void clib_mem_set_thread_index (void) { int i; if (__os_thread_index != 0) return; for (i = 0; i < ARRAY_LEN (clib_per_cpu_mheaps); i++) if (clib_atomic_bool_cmp_and_swap (&clib_per_cpu_mheaps[i], 0, clib_per_cpu_mheaps[0])) { os_set_thread_index (i); break; } ASSERT (__os_thread_index > 0); } always_inline uword clib_mem_size_nocheck (void *p) { return mspace_usable_size_with_delta (p); } always_inline void * clib_mem_alloc_aligned_at_offset (uword size, uword align, uword align_offset, int os_out_of_memory_on_failure) { void *heap, *p; uword cpu; if (align_offset > align) argument
255 uword size = clib_mem_size (p); local
319 clib_mem_vm_alloc(uword size) argument
338 clib_mem_vm_free(void *addr, uword size) argument
344 clib_mem_vm_unmap(void *addr, uword size) argument
363 clib_mem_vm_map(void *addr, uword size) argument
397 uword size; /**< Allocation size, set by caller. */ member in struct:__anon12
418 uword size; /**< Map size */ member in struct:__anon13
[all...]
H A Dmheap.h43 void *mheap_alloc_with_lock (void *memory, uword size, int locked);
H A Dvalloc.c27 @note only the baseva and size member of the template chunk are significant
56 (ch->baseva + ch->size));
57 ASSERT (template->baseva + template->size < ch->baseva ||
58 template->baseva + template->size >=
59 (ch->baseva + ch->size));
87 new_ch->size = template->size;
114 new_ch->size = template->size;
132 ASSERT (template && template->baseva && template->size);
151 clib_valloc_alloc(clib_valloc_main_t * vam, uword size, int os_out_of_memory_on_failure) argument
[all...]
H A Dring.h36 clib_ring_new_inline (void **p, u32 elt_bytes, u32 size, u32 align) argument
42 /* length increment */ size,
43 /* data bytes */ elt_bytes * size,
53 #define clib_ring_new_aligned(ring, size, align) \
54 { clib_ring_new_inline ((void **)&(ring), sizeof(ring[0]), size, align); }
56 #define clib_ring_new(ring, size) \
57 { clib_ring_new_inline ((void **)&(ring), sizeof(ring[0]), size, 0);}
H A Dpmalloc.h29 u32 size:31; member in struct:__anon3
69 /* default page size - typically 2M */
72 /* system page size - typically 4K */
75 /* maximum number of pages, limited by VA preallocation size */
98 /* lookup page size - equals to smalles subpage used */
106 int clib_pmalloc_init (clib_pmalloc_main_t * pm, uword base_addr, uword size);
108 uword size, uword align,
110 void *clib_pmalloc_alloc_aligned (clib_pmalloc_main_t * pm, uword size,
115 uword size, u32 log2_page_sz,
119 uword size, uwor
[all...]
H A Dvalloc.h33 uword size; /**< size in bytes of this chunk */ member in struct:__anon2304
60 uword clib_valloc_alloc (clib_valloc_main_t * vam, uword size,
/vpp/test/sys_req/
H A Ddev_shm_size.sh5 # (motivation for this check is the default docker /dev/shm size of 64M, which
9 cur_size=`df -BM --output=size /dev/shm | awk ' NR==2 { print $1 } ' | cut -f 1 -d 'M'`
13 echo -n "Checking /dev/shm size..."
18 echo "/dev/shm size ${cur_size}M is too small, attempting to enlarge to ${req_min_size_megabytes}M."
19 sudo mount -o remount /dev/shm -o size=512M
20 cur_size=`df -BM --output=size /dev/shm | awk ' NR==2 { print $1 } ' | cut -f 1 -d 'M'`
29 echo "OK (current size: ${cur_size}M, required size: ${req_min_size_megabytes}M)"
/vpp/doxygen/assets/
H A Ddoxy-vpp.css6 font-size: small;
12 font-size: small;
16 font-size: 105%;
23 font-size: 150%;
37 font-size: 105%;
/vpp/test/
H A Dtest_mpcap.py32 " size 128-128\n"
48 size = os.path.getsize("/tmp/mpcap_unittest.pcap")
50 if size != 2184:
51 self.logger.critical("BUG: file size %d not 2184" % size)
/vpp/src/vlibmemory/
H A Dmemory_shared.h38 u16 size; member in struct:ring_alloc_
56 u32 size; member in struct:vl_api_shm_elem_config_
64 * _(size, n). Note: each msg has space for a header.
86 /* Vector of rings; one for each size. */
132 void vl_set_global_memory_size (u64 size);
133 void vl_set_api_memory_size (u64 size);
134 void vl_set_global_pvt_heap_size (u64 size);
135 void vl_set_api_pvt_heap_size (u64 size);
/vpp/src/vpp-api/python/vpp_papi/
H A Dvpp_serializer.py117 self.size = self.packer.size
129 return self.packer.unpack_from(data, offset)[0], self.packer.size
145 self.size = 1
179 x, size = p.unpack(data, offset + length_field_size)
180 return (x.decode('ascii', errors='replace'), size + length_field_size)
209 self.size = self.packer.size
216 return b'\x00' * self.size
249 self.size
[all...]
/vpp/src/vpp-api/python/vpp_papi/tests/
H A Dtest_vpp_serializer.py24 nt, size = fixed_string.unpack(b)
25 self.assertEqual(size, 16)
31 nt, size = fixed_string.unpack(b)
32 self.assertEqual(size, 16)
44 nt, size = variable_string.unpack(b)
45 self.assertEqual(size, 4 + len('foobar'))
74 nt, size = default_type.unpack(b)
75 self.assertEqual(len(b), size)
81 nt, size = default_type.unpack(b)
82 self.assertEqual(len(b), size)
[all...]
/vpp/src/svm/
H A Dsvm.h32 svm_mem_alloc (svm_region_t * rp, uword size) argument
40 rv = clib_mem_alloc (size);
48 uword size, uword align, uword offset)
56 rv = clib_mem_alloc_aligned_at_offset (size, align, offset,
47 svm_mem_alloc_aligned_at_offset(svm_region_t * rp, uword size, uword align, uword offset) argument
/vpp/src/vnet/util/
H A Drefcount.c18 void __vlib_refcount_resize(vlib_refcount_per_cpu_t *per_cpu, u32 size) argument
21 vec_validate(new_counter, size);
/vpp/src/vnet/lisp-cp/
H A Dlisp_types.c483 u8 size = ip_version_to_size (ip_addr_version (dst)); local
484 clib_memcpy (ip_addr_bytes (dst), offset + sizeof (u16), size); local
485 return (sizeof (u16) + size);
622 u16 size = 0; local
628 sd_hdr = (lcaf_src_dst_hdr_t *) (p + size);
629 size += sizeof (sd_hdr[0]);
631 INC (size, fid_addr_parse (p + size, src));
632 INC (size, fid_addr_parse (p + size, ds
651 u16 size = sizeof (u16); /* skip AFI */ local
667 u16 size = 0; local
700 u32 size = lcaf_hdr_parse (offset, lcaf); local
898 u16 size = 0, len; local
964 u16 size = 0; local
1005 u16 size = 0; local
1036 u16 size = 0, len; local
1122 u32 size = 0, len; local
[all...]
/vpp/src/plugins/nat/extras/
H A Dnat_ses_open.py38 vm.var(name="ip_src", min_value=ip_src['start'], max_value=ip_src['end'], size=4, op="random")
39 vm.var(name="ip_dst", min_value=ip_dst['start'], max_value=ip_dst['end'], size=4, op="random")
40 vm.var(name="src_port", min_value=src_port['start'], max_value=src_port['end'], size=2, op="random")
41 vm.var(name="dst_port", min_value=dst_port['start'], max_value=dst_port['end'], size=2, op="random")
/vpp/extras/vpp_config/vpplib/
H A DVppHugePageUtil.py65 :returns the hugepage total, hugepage free, hugepage size,
81 size = re.findall(r'Hugepagesize:\s+\w+\s+\w+', stdout)
87 size = size[0].split(':')[1].lstrip()
90 return total, free, size, memtotal, memfree
109 print (" {:30}: {}".format("Huge Page Size", hugepages['size']))
/vpp/src/vlib/
H A Dbuffer.h55 /* Minimum buffer chain segment size. Does not apply to last buffer in chain.
261 @param l - (word) size to check
317 * @param size number of uninitialized bytes
321 vlib_buffer_put_uninit (vlib_buffer_t * b, u16 size) argument
325 b->current_length += size;
331 * @param size number of uninitialized bytes
335 vlib_buffer_push_uninit (vlib_buffer_t * b, u8 size) argument
337 ASSERT (b->current_data + VLIB_BUFFER_PRE_DATA_SIZE >= size);
338 b->current_data -= size;
339 b->current_length += size;
350 vlib_buffer_make_headroom(vlib_buffer_t * b, u8 size) argument
[all...]
/vpp/src/vppinfra/linux/
H A Dmem.c60 static u32 size = 0; local
63 if (size)
68 * say anything about it. Use the regular page size as a default.
70 size = clib_mem_get_page_size () / 1024;
79 if (unformat (&input, "Hugepagesize:%_%u kB", &size))
87 return 1024ULL * size;
248 err = clib_error_return_unix (0, "cannot determine page size");
272 n_pages = ((a->size - 1) >> log2_page_size) + 1;
304 addr = mmap (uword_to_pointer (a->requested_va, void *), a->size,
324 CLIB_MEM_UNPOISON (addr, a->size);
348 clib_mem_vm_reserve(uword start, uword size, u32 log2_page_sz) argument
[all...]
/vpp/src/plugins/vmxnet3/
H A Dcli.c35 u32 size; local
52 else if (unformat (line_input, "rx-queue-size %u", &size))
53 args.rxq_size = size;
54 else if (unformat (line_input, "tx-queue-size %u", &size))
55 args.txq_size = size;
56 else if (unformat (line_input, "num-tx-queues %u", &size))
57 args.txq_num = size;
58 else if (unformat (line_input, "num-rx-queues %u", &size))
[all...]
/vpp/src/plugins/marvell/pp2/
H A Dpp2_test.c53 u16 size; local
60 else if (unformat (i, "rx-queue-size %u", &size))
61 args.rx_q_sz = size;
62 else if (unformat (i, "tx-queue-size %u", &size))
63 args.tx_q_sz = size;

Completed in 14 milliseconds

123456789