* Set dst to bits of src1 that are not in src2 */
| 229 | * Set dst to bits of src1 that are not in src2 |
| 230 | */ |
| 231 | static int |
| 232 | acl_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. |
no outgoing calls
no test coverage detected