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

Function acl_exclude

dpdk/lib/acl/acl_bld.c:231–244  ·  view source on GitHub ↗

* Set dst to bits of src1 that are not in src2 */

Source from the content-addressed store, hash-verified

229 * Set dst to bits of src1 that are not in src2
230 */
231static int
232acl_exclude(struct rte_acl_bitset *dst,
233 struct rte_acl_bitset *src1,
234 struct rte_acl_bitset *src2)
235{
236 uint32_t n;
237 bits_t all_bits = 0;
238
239 for (n = 0; n < RTE_ACL_BIT_SET_SIZE; n++) {
240 dst->bits[n] = src1->bits[n] & ~src2->bits[n];
241 all_bits |= dst->bits[n];
242 }
243 return all_bits != 0;
244}
245
246/*
247 * Add a pointer (ptr) to a node.

Callers 2

acl_copy_ptrFunction · 0.85
acl_merge_trieFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected