Searched refs:pref (Results 1 – 6 of 6) sorted by relevance
/net/core/ |
D | fib_rules.c | 26 u32 pref, u32 table, u32 flags) in fib_default_rule_add() argument 36 r->pref = pref; in fib_default_rule_add() 61 if (rule->pref) in fib_default_rule_pref() 62 return rule->pref - 1; in fib_default_rule_pref() 347 rule->pref = nla_get_u32(tb[FRA_PRIORITY]); in fib_nl_newrule() 395 rule->pref = ops->default_pref(ops); in fib_nl_newrule() 404 if (rule->target <= rule->pref) in fib_nl_newrule() 408 if (r->pref == rule->target) { in fib_nl_newrule() 439 if (r->pref > rule->pref) in fib_nl_newrule() 458 r->target == rule->pref && in fib_nl_newrule() [all …]
|
/net/caif/ |
D | cfcnfg.c | 40 enum cfcnfg_phy_preference pref; member 155 if (phy->up && phy->pref == phy_pref && in cfcnfg_get_phyid() 223 enum cfcnfg_phy_preference pref; in caif_connect_req_to_link_param() local 238 pref = CFPHYPREF_HIGH_BW; in caif_connect_req_to_link_param() 241 pref = CFPHYPREF_LOW_LAT; in caif_connect_req_to_link_param() 246 dev_info = cfcnfg_get_phyid(cnfg, pref); in caif_connect_req_to_link_param() 461 enum cfcnfg_phy_preference pref, in cfcnfg_add_phy_layer() argument 489 phyinfo->pref = pref; in cfcnfg_add_phy_layer()
|
D | caif_dev.c | 312 enum cfcnfg_phy_preference pref; in caif_enroll_dev() local 325 pref = CFPHYPREF_HIGH_BW; in caif_enroll_dev() 328 pref = CFPHYPREF_LOW_LAT; in caif_enroll_dev() 331 pref = CFPHYPREF_HIGH_BW; in caif_enroll_dev() 344 pref, in caif_enroll_dev()
|
/net/ipv6/ |
D | ipv6_sockglue.c | 776 unsigned int pref = 0; in do_ipv6_setsockopt() local 789 pref |= IPV6_PREFER_SRC_PUBLIC; in do_ipv6_setsockopt() 792 pref |= IPV6_PREFER_SRC_TMP; in do_ipv6_setsockopt() 811 pref |= IPV6_PREFER_SRC_COA; in do_ipv6_setsockopt() 831 np->srcprefs = (np->srcprefs & prefmask) | pref; in do_ipv6_setsockopt()
|
D | ndisc.c | 1067 unsigned int pref = 0; in ndisc_router_discovery() local 1167 pref = ra_msg->icmph.icmp6_router_pref; in ndisc_router_discovery() 1169 if (pref == ICMPV6_ROUTER_PREF_INVALID || in ndisc_router_discovery() 1171 pref = ICMPV6_ROUTER_PREF_MEDIUM; in ndisc_router_discovery() 1196 rt = rt6_add_dflt_router(&ipv6_hdr(skb)->saddr, skb->dev, pref); in ndisc_router_discovery() 1214 rt->rt6i_flags = (rt->rt6i_flags & ~RTF_PREF_MASK) | RTF_PREF(pref); in ndisc_router_discovery()
|
D | route.c | 100 const struct in6_addr *gwaddr, unsigned int pref); 704 unsigned int pref; in rt6_route_rcv() local 727 pref = rinfo->route_pref; in rt6_route_rcv() 728 if (pref == ICMPV6_ROUTER_PREF_INVALID) in rt6_route_rcv() 754 rt = rt6_add_route_info(dev, prefix, rinfo->prefix_len, gwaddr, pref); in rt6_route_rcv() 757 (rt->rt6i_flags & ~RTF_PREF_MASK) | RTF_PREF(pref); in rt6_route_rcv() 1943 const struct in6_addr *gwaddr, unsigned int pref) in rt6_add_route_info() argument 1951 RTF_UP | RTF_PREF(pref), in rt6_add_route_info() 1995 unsigned int pref) in rt6_add_dflt_router() argument 2002 RTF_UP | RTF_EXPIRES | RTF_PREF(pref), in rt6_add_dflt_router()
|