Lines Matching defs:kind
319 if (nla_put_string(skb, TCA_KIND, ops->kind))
601 if (act->id == a->id || (strcmp(act->kind, a->kind) == 0)) {
636 static struct tc_action_ops *tc_lookup_action_n(char *kind)
640 if (kind) {
643 if (strcmp(kind, a->kind) == 0) {
655 static struct tc_action_ops *tc_lookup_action(struct nlattr *kind)
659 if (kind) {
662 if (nla_strcmp(kind, a->kind) == 0) {
789 if (nla_put_string(skb, TCA_KIND, a->ops->kind))
946 struct nlattr *kind;
955 kind = tb[TCA_ACT_KIND];
956 if (!kind) {
957 NL_SET_ERR_MSG(extack, "TC action kind must be specified");
960 if (nla_strlcpy(act_name, kind, IFNAMSIZ) >= IFNAMSIZ) {
1267 NL_SET_ERR_MSG(extack, "Specified TC action kind not found");
1297 struct nlattr *kind;
1312 kind = tb[TCA_ACT_KIND];
1313 ops = tc_lookup_action(kind);
1589 struct nlattr *kind;
1602 kind = tb2[TCA_ACT_KIND];
1604 return kind;
1619 struct nlattr *kind = NULL;
1629 kind = find_dump_kind(tb);
1630 if (kind == NULL) {
1631 pr_info("tc_dump_action: action bad kind\n");
1635 a_o = tc_lookup_action(kind);