Lines Matching refs:tb
153 struct rtattr *tb[TCA_BPF_MAX + 1]; in bpf_print_opt() local
158 parse_rtattr_nested(tb, TCA_BPF_MAX, opt); in bpf_print_opt()
163 if (tb[TCA_BPF_CLASSID]) { in bpf_print_opt()
166 sprint_tc_classid(rta_getattr_u32(tb[TCA_BPF_CLASSID]), b1)); in bpf_print_opt()
169 if (tb[TCA_BPF_NAME]) in bpf_print_opt()
170 fprintf(f, "%s ", rta_getattr_str(tb[TCA_BPF_NAME])); in bpf_print_opt()
171 else if (tb[TCA_BPF_FD]) in bpf_print_opt()
172 fprintf(f, "pfd %u ", rta_getattr_u32(tb[TCA_BPF_FD])); in bpf_print_opt()
174 if (tb[TCA_BPF_FLAGS]) { in bpf_print_opt()
175 unsigned int flags = rta_getattr_u32(tb[TCA_BPF_FLAGS]); in bpf_print_opt()
181 if (tb[TCA_BPF_OPS] && tb[TCA_BPF_OPS_LEN]) { in bpf_print_opt()
182 bpf_print_ops(f, tb[TCA_BPF_OPS], in bpf_print_opt()
183 rta_getattr_u16(tb[TCA_BPF_OPS_LEN])); in bpf_print_opt()
187 if (tb[TCA_BPF_POLICE]) { in bpf_print_opt()
189 tc_print_police(f, tb[TCA_BPF_POLICE]); in bpf_print_opt()
192 if (tb[TCA_BPF_ACT]) { in bpf_print_opt()
193 tc_print_action(f, tb[TCA_BPF_ACT]); in bpf_print_opt()