MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bkt_key_install

Function bkt_key_install

dpdk/lib/table/rte_swx_table_em.c:146–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146static inline void
147bkt_key_install(struct table *t,
148 struct bucket_extension *bkt,
149 struct rte_swx_table_entry *input,
150 uint32_t bkt_pos,
151 uint32_t bkt_key_id,
152 uint32_t input_sig)
153{
154 uint8_t *bkt_key;
155 uint64_t *bkt_data;
156
157 /* Key signature. */
158 bkt->sig[bkt_pos] = (uint16_t)input_sig;
159
160 /* Key. */
161 bkt->key_id[bkt_pos] = bkt_key_id;
162 bkt_key = table_key(t, bkt_key_id);
163 keycpy(bkt_key, input->key, t->params.key_size);
164
165 /* Key data. */
166 bkt_data = table_key_data(t, bkt_key_id);
167 bkt_data[0] = input->action_id;
168 if (t->params.action_data_size && input->action_data)
169 memcpy(&bkt_data[1], input->action_data, t->params.action_data_size);
170}
171
172static inline void
173bkt_key_data_update(struct table *t,

Callers 1

table_addFunction · 0.85

Calls 4

table_keyFunction · 0.85
table_key_dataFunction · 0.85
keycpyFunction · 0.70
memcpyFunction · 0.50

Tested by

no test coverage detected