| /mOS-networking-stack/core/src/ |
| H A D | fhash.c | 124 int idx; in HTInsert() local 130 idx = (int)*hash; in HTInsert() 132 idx = HashFlow(item); in HTInsert() 134 assert(idx >=0 && idx < NUM_BINS); in HTInsert() 140 if (!ht->ht_array[idx][i]) { in HTInsert() 188 int idx; in HTSearch() local 193 idx = HashFlow(item); in HTSearch() 196 if (ht->ht_array[idx][i]) { in HTSearch() 203 idx = HashFlow(item); in HTSearch() 204 *hash = idx; in HTSearch() [all …]
|
| H A D | netmap_module.c | 110 int pkt_size, idx; in netmap_send_pkts() local 115 idx = nif; in netmap_send_pkts() 116 pkt_size = npc->snd_pkt_size[idx]; in netmap_send_pkts() 128 if (nm_inject(npc->local_nmd[idx], npc->snd_pktbuf[idx], pkt_size) == 0) { in netmap_send_pkts() 130 pkt_size, idx); in netmap_send_pkts() 139 npc->snd_pkt_size[idx] = 0; in netmap_send_pkts() 148 int idx = nif; in netmap_get_wptr() local 151 if (npc->snd_pkt_size[idx] != 0) in netmap_get_wptr() 154 npc->snd_pkt_size[idx] = pktsize; in netmap_get_wptr() 156 return (uint8_t *)npc->snd_pktbuf[idx]; in netmap_get_wptr() [all …]
|
| H A D | key_value_store.c | 60 int idx; in kvs_insert() local 70 idx = key % ht->num_buckets; in kvs_insert() 71 assert(idx >=0 && idx < ht->num_buckets); in kvs_insert() 84 TAILQ_INSERT_TAIL(&ht->kvs_table[idx], ent, link); in kvs_insert()
|
| H A D | arp.c | 166 int idx = g_config.mos->arp_table->num; in RegisterARPEntry() local 167 g_config.mos->arp_table->ent[idx] = calloc(1, sizeof(struct _arp_entry)); in RegisterARPEntry() 168 if (!g_config.mos->arp_table->ent[idx]) in RegisterARPEntry() 170 g_config.mos->arp_table->ent[idx]->prefix = 32; in RegisterARPEntry() 171 g_config.mos->arp_table->ent[idx]->ip = ip; in RegisterARPEntry() 172 memcpy(g_config.mos->arp_table->ent[idx]->haddr, haddr, ETH_ALEN); in RegisterARPEntry() 173 g_config.mos->arp_table->ent[idx]->mask = -1; in RegisterARPEntry() 174 g_config.mos->arp_table->ent[idx]->masked_ip = ip; in RegisterARPEntry() 176 g_config.mos->arp_table->num = idx + 1; in RegisterARPEntry()
|
| H A D | scalable_event.c | 70 int idx; in dforest_store() local 80 idx = HASHVAL(ev); in dforest_store() 82 g_dfTable[idx] = de; in dforest_store() 85 p = g_dfTable[idx]; in dforest_store() 96 int idx; in dforest_search() local 99 idx = HASHVAL(ev); in dforest_search() 100 if (g_dfTable[idx] == NULL) in dforest_search() 103 for (p = g_dfTable[idx]; in dforest_search() 192 int idx = 0; in stree_create() local 194 idx++; in stree_create() [all …]
|
| H A D | event_callback.c | 31 #define EVENT_FOREACH_START(ev, idx, from, to, map) \ argument 32 do {int idx; for (idx = (from); idx < (to); idx++) { \ 33 const event_t ev = 1L << idx; if (!((map) & (ev))) continue;
|
| H A D | util.c | 47 uint32_t idx = 32; in BuildKeyCache() local 50 for (i = 0; i < cache_len; i++, idx++) { in BuildKeyCache() 51 uint8_t shift = (idx % NBBY); in BuildKeyCache() 55 bit = ((key[idx/NBBY] << shift) & 0x80) ? 1 : 0; in BuildKeyCache()
|
| /mOS-networking-stack/util/ |
| H A D | rss.c | 93 uint32_t idx = 32; in BuildKeyCache() local 96 for (i = 0; i < cache_len; i++, idx++) { in BuildKeyCache() 97 uint8_t shift = (idx % NBBY); in BuildKeyCache() 101 bit = ((key[idx/NBBY] << shift) & 0x80) ? 1 : 0; in BuildKeyCache()
|
| /mOS-networking-stack/core/src/include/ |
| H A D | netmap_user.h | 927 uint32_t i, idx; in nm_inject() local 937 idx = ring->slot[i].buf_idx; in nm_inject() 939 nm_pkt_copy(buf, NETMAP_BUF(ring, idx), size); in nm_inject() 973 u_int idx = ring->slot[i].buf_idx; in nm_dispatch() local 974 u_char *buf = (u_char *)NETMAP_BUF(ring, idx); in nm_dispatch() 997 u_int idx = ring->slot[i].buf_idx; in nm_nextpkt() local 998 u_char *buf = (u_char *)NETMAP_BUF(ring, idx); in nm_nextpkt()
|
| H A D | io_module.h | 70 void (*set_wptr)(struct mtcp_thread_context *ctx, int out_ifidx, int in_ifidx, int idx);
|
| /mOS-networking-stack/core/src/bpf/ |
| H A D | sf_gencode.c | 6995 struct block *gen_byteop(op, idx, val) in gen_byteop() argument 6996 int op, idx, val; in gen_byteop() 7007 return gen_cmp(OR_LINK, (u_int) idx, BPF_B, (bpf_int32) val); 7010 b = gen_cmp_lt(OR_LINK, (u_int) idx, BPF_B, (bpf_int32) val); 7014 b = gen_cmp_gt(OR_LINK, (u_int) idx, BPF_B, (bpf_int32) val);
|