Lines Matching defs:attrs

38 	unsigned long attrs;
562 .attrs = 0,
567 .attrs = (1 << SEG6_LOCAL_NH6),
572 .attrs = (1 << SEG6_LOCAL_TABLE),
577 .attrs = (1 << SEG6_LOCAL_OIF),
582 .attrs = (1 << SEG6_LOCAL_NH6),
587 .attrs = (1 << SEG6_LOCAL_NH4),
592 .attrs = (1 << SEG6_LOCAL_TABLE),
597 .attrs = (1 << SEG6_LOCAL_SRH),
602 .attrs = (1 << SEG6_LOCAL_SRH),
608 .attrs = (1 << SEG6_LOCAL_BPF),
659 static int parse_nla_srh(struct nlattr **attrs, struct seg6_local_lwt *slwt)
664 srh = nla_data(attrs[SEG6_LOCAL_SRH]);
665 len = nla_len(attrs[SEG6_LOCAL_SRH]);
711 static int parse_nla_table(struct nlattr **attrs, struct seg6_local_lwt *slwt)
713 slwt->table = nla_get_u32(attrs[SEG6_LOCAL_TABLE]);
734 static int parse_nla_nh4(struct nlattr **attrs, struct seg6_local_lwt *slwt)
736 memcpy(&slwt->nh4, nla_data(attrs[SEG6_LOCAL_NH4]),
760 static int parse_nla_nh6(struct nlattr **attrs, struct seg6_local_lwt *slwt)
762 memcpy(&slwt->nh6, nla_data(attrs[SEG6_LOCAL_NH6]),
786 static int parse_nla_iif(struct nlattr **attrs, struct seg6_local_lwt *slwt)
788 slwt->iif = nla_get_u32(attrs[SEG6_LOCAL_IIF]);
809 static int parse_nla_oif(struct nlattr **attrs, struct seg6_local_lwt *slwt)
811 slwt->oif = nla_get_u32(attrs[SEG6_LOCAL_OIF]);
839 static int parse_nla_bpf(struct nlattr **attrs, struct seg6_local_lwt *slwt)
847 attrs[SEG6_LOCAL_BPF],
903 int (*parse)(struct nlattr **attrs, struct seg6_local_lwt *slwt);
939 static int parse_nla_action(struct nlattr **attrs, struct seg6_local_lwt *slwt)
956 if (desc->attrs & (1 << i)) {
957 if (!attrs[i])
962 err = param->parse(attrs, slwt);
1024 if (slwt->desc->attrs & (1 << SEG6_LOCAL_BPF)) {
1043 if (slwt->desc->attrs & (1 << i)) {
1057 unsigned long attrs;
1062 attrs = slwt->desc->attrs;
1064 if (attrs & (1 << SEG6_LOCAL_SRH))
1067 if (attrs & (1 << SEG6_LOCAL_TABLE))
1070 if (attrs & (1 << SEG6_LOCAL_NH4))
1073 if (attrs & (1 << SEG6_LOCAL_NH6))
1076 if (attrs & (1 << SEG6_LOCAL_IIF))
1079 if (attrs & (1 << SEG6_LOCAL_OIF))
1082 if (attrs & (1 << SEG6_LOCAL_BPF))
1103 if (slwt_a->desc->attrs != slwt_b->desc->attrs)
1107 if (slwt_a->desc->attrs & (1 << i)) {