Lines Matching refs:fib_cfg
693 struct fib_config fib_cfg; in fib_get_nhs() local
700 memset(&fib_cfg, 0, sizeof(fib_cfg)); in fib_get_nhs()
714 fib_cfg.fc_flags = (cfg->fc_flags & ~0xFF) | rtnh->rtnh_flags; in fib_get_nhs()
715 fib_cfg.fc_oif = rtnh->rtnh_ifindex; in fib_get_nhs()
729 ret = fib_gw_from_attr(&fib_cfg.fc_gw4, nla, in fib_get_nhs()
734 if (fib_cfg.fc_gw4) in fib_get_nhs()
735 fib_cfg.fc_gw_family = AF_INET; in fib_get_nhs()
737 ret = fib_gw_from_via(&fib_cfg, nlav, extack); in fib_get_nhs()
748 fib_cfg.fc_flow = nla_get_u32(nla); in fib_get_nhs()
751 fib_cfg.fc_encap = nla_find(attrs, attrlen, RTA_ENCAP); in fib_get_nhs()
757 fib_cfg.fc_encap_type = nla_get_u16(nla); in fib_get_nhs()
760 ret = fib_nh_init(net, nexthop_nh, &fib_cfg, in fib_get_nhs()