• 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()
205 static void print_selector(struct nl_dump_params *p, struct tc_u32_sel *sel, in print_selector() argument
211 if (sel->hmask || sel->hoff) { in print_selector()
216 nl_dump(p, " hash at %u & 0x%x", sel->hoff, sel->hmask); in print_selector()
219 if (sel->flags & (TC_U32_OFFSET | TC_U32_VAROFFSET)) { in print_selector()
220 nl_dump(p, " offset at %u", sel->off); in print_selector()
222 if (sel->flags & TC_U32_VAROFFSET) in print_selector()
224 sel->offoff, ntohs(sel->offmask), sel->offshift); in print_selector()
227 if (sel->flags) { in print_selector()
228 int flags = sel->flags; in print_selector()
244 for (i = 0; i < sel->nkeys; i++) { in print_selector()
245 key = (struct tc_u32_key *) ((char *) sel + sizeof(*sel)) + i; in print_selector()
419 struct tc_u32_sel *sel; in rtnl_u32_set_hashmask() local
427 sel = u32_selector_alloc(u); in rtnl_u32_set_hashmask()
428 if (!sel) in rtnl_u32_set_hashmask()
435 sel = u32_selector(u); in rtnl_u32_set_hashmask()
437 sel->hmask = hashmask; in rtnl_u32_set_hashmask()
438 sel->hoff = offset; in rtnl_u32_set_hashmask()
445 struct tc_u32_sel *sel; in rtnl_u32_set_cls_terminal() local
451 sel = u32_selector_alloc(u); in rtnl_u32_set_cls_terminal()
452 if (!sel) in rtnl_u32_set_cls_terminal()
459 sel = u32_selector(u); in rtnl_u32_set_cls_terminal()
461 sel->flags |= TC_U32_TERMINAL; in rtnl_u32_set_cls_terminal()
513 struct tc_u32_sel *sel; in rtnl_u32_set_flags() local
519 sel = u32_selector_alloc(u); in rtnl_u32_set_flags()
520 if (!sel) in rtnl_u32_set_flags()
523 sel->flags |= flags; in rtnl_u32_set_flags()
546 struct tc_u32_sel *sel; in rtnl_u32_add_key() local
553 sel = u32_selector_alloc(u); in rtnl_u32_add_key()
554 if (!sel) in rtnl_u32_add_key()
562 sel = u32_selector(u); in rtnl_u32_add_key()
564 sel->keys[sel->nkeys].mask = mask; in rtnl_u32_add_key()
565 sel->keys[sel->nkeys].val = val & mask; in rtnl_u32_add_key()
566 sel->keys[sel->nkeys].off = off; in rtnl_u32_add_key()
567 sel->keys[sel->nkeys].offmask = offmask; in rtnl_u32_add_key()
568 sel->nkeys++; in rtnl_u32_add_key()
588 struct tc_u32_sel *sel; in rtnl_u32_get_key() local
598 sel = u32_selector(u); in rtnl_u32_get_key()
599 if (index >= sel->nkeys) in rtnl_u32_get_key()
602 *mask = sel->keys[index].mask; in rtnl_u32_get_key()
603 *val = sel->keys[index].val; in rtnl_u32_get_key()
604 *off = sel->keys[index].off; in rtnl_u32_get_key()
605 *offmask = sel->keys[index].offmask; in rtnl_u32_get_key()