• Home
  • Raw
  • Download

Lines Matching refs:sel

119 		struct tc_u32_sel *sel;  in u32_msg_parser()  local
127 sel = u->cu_selector->d_data; in u32_msg_parser()
129 (sel->nkeys * sizeof(uint64_t)); in u32_msg_parser()
197 static void print_selector(struct nl_dump_params *p, struct tc_u32_sel *sel, in print_selector() argument
203 if (sel->hmask || sel->hoff) { in print_selector()
208 nl_dump(p, " hash at %u & 0x%x", sel->hoff, sel->hmask); in print_selector()
211 if (sel->flags & (TC_U32_OFFSET | TC_U32_VAROFFSET)) { in print_selector()
212 nl_dump(p, " offset at %u", sel->off); in print_selector()
214 if (sel->flags & TC_U32_VAROFFSET) in print_selector()
216 sel->offoff, ntohs(sel->offmask), sel->offshift); in print_selector()
219 if (sel->flags) { in print_selector()
220 int flags = sel->flags; in print_selector()
236 for (i = 0; i < sel->nkeys; i++) { in print_selector()
237 key = (struct tc_u32_key *) ((char *) sel + sizeof(*sel)) + i; in print_selector()
370 struct tc_u32_sel *sel; in rtnl_u32_set_flags() local
373 sel = u32_selector_alloc(u); in rtnl_u32_set_flags()
374 if (!sel) in rtnl_u32_set_flags()
377 sel->flags |= flags; in rtnl_u32_set_flags()
400 struct tc_u32_sel *sel; in rtnl_u32_add_key() local
404 sel = u32_selector_alloc(u); in rtnl_u32_add_key()
405 if (!sel) in rtnl_u32_add_key()
413 sel = u32_selector(u); in rtnl_u32_add_key()
415 sel->keys[sel->nkeys].mask = mask; in rtnl_u32_add_key()
416 sel->keys[sel->nkeys].val = val & mask; in rtnl_u32_add_key()
417 sel->keys[sel->nkeys].off = off; in rtnl_u32_add_key()
418 sel->keys[sel->nkeys].offmask = offmask; in rtnl_u32_add_key()
419 sel->nkeys++; in rtnl_u32_add_key()