Home
last modified time | relevance | path

Searched refs:parms (Results 1 – 24 of 24) sorted by relevance

/net/ipv6/
Dip6_gre.c133 if (!ipv6_addr_equal(local, &t->parms.laddr) || in ip6gre_tunnel_lookup()
134 !ipv6_addr_equal(remote, &t->parms.raddr) || in ip6gre_tunnel_lookup()
135 key != t->parms.i_key || in ip6gre_tunnel_lookup()
144 if (t->parms.link != link) in ip6gre_tunnel_lookup()
158 if (!ipv6_addr_equal(remote, &t->parms.raddr) || in ip6gre_tunnel_lookup()
159 key != t->parms.i_key || in ip6gre_tunnel_lookup()
168 if (t->parms.link != link) in ip6gre_tunnel_lookup()
182 if ((!ipv6_addr_equal(local, &t->parms.laddr) && in ip6gre_tunnel_lookup()
183 (!ipv6_addr_equal(local, &t->parms.raddr) || in ip6gre_tunnel_lookup()
185 key != t->parms.i_key || in ip6gre_tunnel_lookup()
[all …]
Dip6_tunnel.c145 if (ipv6_addr_equal(local, &t->parms.laddr) && in ip6_tnl_lookup()
146 ipv6_addr_equal(remote, &t->parms.raddr) && in ip6_tnl_lookup()
154 if (ipv6_addr_equal(local, &t->parms.laddr) && in ip6_tnl_lookup()
155 ipv6_addr_any(&t->parms.raddr) && in ip6_tnl_lookup()
162 if (ipv6_addr_equal(remote, &t->parms.raddr) && in ip6_tnl_lookup()
163 ipv6_addr_any(&t->parms.laddr) && in ip6_tnl_lookup()
213 struct ip6_tnl __rcu **tp = ip6_tnl_bucket(ip6n, &t->parms); in ip6_tnl_link()
215 if (t->parms.collect_md) in ip6_tnl_link()
232 if (t->parms.collect_md) in ip6_tnl_unlink()
235 for (tp = ip6_tnl_bucket(ip6n, &t->parms); in ip6_tnl_unlink()
[all …]
Dsit.c101 if (local == t->parms.iph.saddr && in ipip6_tunnel_lookup()
102 remote == t->parms.iph.daddr && in ipip6_tunnel_lookup()
103 (!dev || !t->parms.link || ifindex == t->parms.link || in ipip6_tunnel_lookup()
104 sifindex == t->parms.link) && in ipip6_tunnel_lookup()
109 if (remote == t->parms.iph.daddr && in ipip6_tunnel_lookup()
110 (!dev || !t->parms.link || ifindex == t->parms.link || in ipip6_tunnel_lookup()
111 sifindex == t->parms.link) && in ipip6_tunnel_lookup()
116 if (local == t->parms.iph.saddr && in ipip6_tunnel_lookup()
117 (!dev || !t->parms.link || ifindex == t->parms.link || in ipip6_tunnel_lookup()
118 sifindex == t->parms.link) && in ipip6_tunnel_lookup()
[all …]
Dip6_vti.c98 if (ipv6_addr_equal(local, &t->parms.laddr) && in vti6_tnl_lookup()
99 ipv6_addr_equal(remote, &t->parms.raddr) && in vti6_tnl_lookup()
107 if (ipv6_addr_equal(local, &t->parms.laddr) && in vti6_tnl_lookup()
114 if (ipv6_addr_equal(remote, &t->parms.raddr) && in vti6_tnl_lookup()
154 struct ip6_tnl __rcu **tp = vti6_tnl_bucket(ip6n, &t->parms); in vti6_tnl_link()
166 for (tp = vti6_tnl_bucket(ip6n, &t->parms); in vti6_tnl_unlink()
193 strcpy(t->parms.name, dev->name); in vti6_tnl_create2()
225 t->parms = *p; in vti6_tnl_create()
266 if (ipv6_addr_equal(local, &t->parms.laddr) && in vti6_locate()
267 ipv6_addr_equal(remote, &t->parms.raddr)) { in vti6_locate()
[all …]
Dndisc.c120 .parms = {
329 struct neigh_parms *parms; in ndisc_constructor() local
337 parms = in6_dev->nd_parms; in ndisc_constructor()
338 __neigh_parms_put(neigh->parms); in ndisc_constructor()
339 neigh->parms = neigh_parms_clone(parms); in ndisc_constructor()
729 probes -= NEIGH_VAR(neigh->parms, UCAST_PROBES); in ndisc_solicit()
737 } else if ((probes -= NEIGH_VAR(neigh->parms, APP_PROBES)) < 0) { in ndisc_solicit()
1925 err = neigh_sysctl_register(NULL, &nd_tbl.parms, in ndisc_init()
1953 neigh_sysctl_unregister(&nd_tbl.parms); in ndisc_cleanup()
/net/ipv4/
Dip_tunnel.c97 if (local != t->parms.iph.saddr || in ip_tunnel_lookup()
98 remote != t->parms.iph.daddr || in ip_tunnel_lookup()
102 if (!ip_tunnel_key_match(&t->parms, flags, key)) in ip_tunnel_lookup()
105 if (t->parms.link == link) in ip_tunnel_lookup()
112 if (remote != t->parms.iph.daddr || in ip_tunnel_lookup()
113 t->parms.iph.saddr != 0 || in ip_tunnel_lookup()
117 if (!ip_tunnel_key_match(&t->parms, flags, key)) in ip_tunnel_lookup()
120 if (t->parms.link == link) in ip_tunnel_lookup()
130 if ((local != t->parms.iph.saddr || t->parms.iph.daddr != 0) && in ip_tunnel_lookup()
131 (local != t->parms.iph.daddr || !ipv4_is_multicast(local))) in ip_tunnel_lookup()
[all …]
Dipip.c173 ipv4_update_pmtu(skb, net, info, t->parms.link, iph->protocol); in ipip_err()
178 ipv4_redirect(skb, net, t->parms.link, iph->protocol); in ipip_err()
182 if (t->parms.iph.daddr == 0) { in ipip_err()
187 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED) in ipip_err()
226 if (tunnel->parms.iph.protocol != ipproto && in ipip_tunnel_rcv()
227 tunnel->parms.iph.protocol != 0) in ipip_tunnel_rcv()
275 const struct iphdr *tiph = &tunnel->parms.iph; in ipip_tunnel_xmit()
392 memcpy(dev->dev_addr, &tunnel->parms.iph.saddr, 4); in ipip_tunnel_init()
393 memcpy(dev->broadcast, &tunnel->parms.iph.daddr, 4); in ipip_tunnel_init()
416 struct ip_tunnel_parm *parms, bool *collect_md, in ipip_netlink_parms() argument
[all …]
Dip_gre.c196 if (t->parms.iph.daddr == 0 || in ipgre_err()
197 ipv4_is_multicast(t->parms.iph.daddr)) in ipgre_err()
200 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED) in ipgre_err()
458 __be16 flags = tunnel->parms.o_flags; in __gre_xmit()
462 flags, proto, tunnel->parms.o_key, in __gre_xmit()
654 tnl_params = &tunnel->parms.iph; in ipgre_xmit()
657 if (gre_handle_offloads(skb, !!(tunnel->parms.o_flags & TUNNEL_CSUM))) in ipgre_xmit()
698 tunnel->parms.o_flags &= ~TUNNEL_SEQ; in erspan_xmit()
700 erspan_build_header(skb, ntohl(tunnel->parms.o_key), in erspan_xmit()
705 erspan_build_header_v2(skb, ntohl(tunnel->parms.o_key), in erspan_xmit()
[all …]
Dip_vti.c158 skb->mark = be32_to_cpu(tunnel->parms.i_key); in vti_rcv_cb()
203 struct ip_tunnel_parm *parms = &tunnel->parms; in vti_xmit() local
253 if (!vti_state_check(dst->xfrm, parms->iph.daddr, parms->iph.saddr)) { in vti_xmit()
329 fl.flowi_mark = be32_to_cpu(tunnel->parms.o_key); in vti_tunnel_xmit()
358 mark = be32_to_cpu(tunnel->parms.o_key); in vti4_err()
457 struct iphdr *iph = &tunnel->parms.iph; in vti_tunnel_init()
473 struct iphdr *iph = &tunnel->parms.iph; in vti_fb_tunnel_init()
543 struct ip_tunnel_parm *parms, in vti_netlink_parms() argument
546 memset(parms, 0, sizeof(*parms)); in vti_netlink_parms()
548 parms->iph.protocol = IPPROTO_IPIP; in vti_netlink_parms()
[all …]
Darp.c160 .parms = {
225 struct neigh_parms *parms; in arp_constructor() local
241 parms = in_dev->arp_parms; in arp_constructor()
242 __neigh_parms_put(neigh->parms); in arp_constructor()
243 neigh->parms = neigh_parms_clone(parms); in arp_constructor()
373 probes -= NEIGH_VAR(neigh->parms, UCAST_PROBES); in arp_solicit()
380 probes -= NEIGH_VAR(neigh->parms, APP_PROBES); in arp_solicit()
900 NEIGH_VAR(n->parms, LOCKTIME)) || in arp_process()
1301 neigh_sysctl_register(NULL, &arp_tbl.parms, NULL); in arp_init()
/net/lapb/
Dlapb_iface.c196 int lapb_getparms(struct net_device *dev, struct lapb_parms_struct *parms) in lapb_getparms() argument
204 parms->t1 = lapb->t1 / HZ; in lapb_getparms()
205 parms->t2 = lapb->t2 / HZ; in lapb_getparms()
206 parms->n2 = lapb->n2; in lapb_getparms()
207 parms->n2count = lapb->n2count; in lapb_getparms()
208 parms->state = lapb->state; in lapb_getparms()
209 parms->window = lapb->window; in lapb_getparms()
210 parms->mode = lapb->mode; in lapb_getparms()
213 parms->t1timer = 0; in lapb_getparms()
215 parms->t1timer = (lapb->t1timer.expires - jiffies) / HZ; in lapb_getparms()
[all …]
/net/openvswitch/
Dvport-geneve.c51 static struct vport *geneve_tnl_create(const struct vport_parms *parms) in geneve_tnl_create() argument
53 struct net *net = ovs_dp_get_net(parms->dp); in geneve_tnl_create()
54 struct nlattr *options = parms->options; in geneve_tnl_create()
77 &ovs_geneve_vport_ops, parms); in geneve_tnl_create()
85 dev = geneve_dev_create_fb(net, parms->name, NET_NAME_USER, dst_port); in geneve_tnl_create()
106 static struct vport *geneve_create(const struct vport_parms *parms) in geneve_create() argument
110 vport = geneve_tnl_create(parms); in geneve_create()
114 return ovs_netdev_link(vport, parms->name); in geneve_create()
Dvport-gre.c39 static struct vport *gre_tnl_create(const struct vport_parms *parms) in gre_tnl_create() argument
41 struct net *net = ovs_dp_get_net(parms->dp); in gre_tnl_create()
46 vport = ovs_vport_alloc(0, &ovs_gre_vport_ops, parms); in gre_tnl_create()
51 dev = gretap_fb_dev_create(net, parms->name, NET_NAME_USER); in gre_tnl_create()
70 static struct vport *gre_create(const struct vport_parms *parms) in gre_create() argument
74 vport = gre_tnl_create(parms); in gre_create()
78 return ovs_netdev_link(vport, parms->name); in gre_create()
Dvport-vxlan.c71 static struct vport *vxlan_tnl_create(const struct vport_parms *parms) in vxlan_tnl_create() argument
73 struct net *net = ovs_dp_get_net(parms->dp); in vxlan_tnl_create()
74 struct nlattr *options = parms->options; in vxlan_tnl_create()
100 vport = ovs_vport_alloc(0, &ovs_vxlan_netdev_vport_ops, parms); in vxlan_tnl_create()
114 dev = vxlan_dev_create(net, parms->name, NET_NAME_USER, &conf); in vxlan_tnl_create()
135 static struct vport *vxlan_create(const struct vport_parms *parms) in vxlan_create() argument
139 vport = vxlan_tnl_create(parms); in vxlan_create()
143 return ovs_netdev_link(vport, parms->name); in vxlan_create()
Dvport.c119 const struct vport_parms *parms) in ovs_vport_alloc() argument
134 vport->dp = parms->dp; in ovs_vport_alloc()
135 vport->port_no = parms->port_no; in ovs_vport_alloc()
139 if (ovs_vport_set_upcall_portids(vport, parms->upcall_portids)) { in ovs_vport_alloc()
168 static struct vport_ops *ovs_vport_lookup(const struct vport_parms *parms) in ovs_vport_lookup() argument
173 if (ops->type == parms->type) in ovs_vport_lookup()
187 struct vport *ovs_vport_add(const struct vport_parms *parms) in ovs_vport_add() argument
192 ops = ovs_vport_lookup(parms); in ovs_vport_add()
199 vport = ops->create(parms); in ovs_vport_add()
216 request_module("vport-type-%d", parms->type); in ovs_vport_add()
[all …]
Dvport-netdev.c126 static struct vport *netdev_create(const struct vport_parms *parms) in netdev_create() argument
130 vport = ovs_vport_alloc(0, &ovs_netdev_vport_ops, parms); in netdev_create()
134 return ovs_netdev_link(vport, parms->name); in netdev_create()
Ddatapath.c190 static struct vport *new_vport(const struct vport_parms *parms) in new_vport() argument
194 vport = ovs_vport_add(parms); in new_vport()
196 struct datapath *dp = parms->dp; in new_vport()
1608 struct vport_parms parms; in ovs_dp_cmd_new() local
1657 parms.name = nla_data(a[OVS_DP_ATTR_NAME]); in ovs_dp_cmd_new()
1658 parms.type = OVS_VPORT_TYPE_INTERNAL; in ovs_dp_cmd_new()
1659 parms.options = NULL; in ovs_dp_cmd_new()
1660 parms.dp = dp; in ovs_dp_cmd_new()
1661 parms.port_no = OVSP_LOCAL; in ovs_dp_cmd_new()
1662 parms.upcall_portids = a[OVS_DP_ATTR_UPCALL_PID]; in ovs_dp_cmd_new()
[all …]
Dvport-internal_dev.c156 static struct vport *internal_dev_create(const struct vport_parms *parms) in internal_dev_create() argument
163 vport = ovs_vport_alloc(0, &ovs_internal_vport_ops, parms); in internal_dev_create()
170 parms->name, NET_NAME_USER, do_setup); in internal_dev_create()
/net/sched/
Dsch_red.c41 struct red_parms parms; member
65 q->vars.qavg = red_calc_qavg(&q->parms, in red_enqueue()
72 switch (red_action(&q->parms, &q->vars, q->vars.qavg)) { in red_enqueue()
164 opt.set.min = q->parms.qth_min >> q->parms.Wlog; in red_offload()
165 opt.set.max = q->parms.qth_max >> q->parms.Wlog; in red_offload()
166 opt.set.probability = q->parms.max_P; in red_offload()
243 red_set_parms(&q->parms, in red_change()
273 red_adaptative_algo(&q->parms, &q->vars); in red_adaptative_timer()
311 .qth_min = q->parms.qth_min >> q->parms.Wlog, in red_dump()
312 .qth_max = q->parms.qth_max >> q->parms.Wlog, in red_dump()
[all …]
Dsch_gred.c42 struct red_parms parms; member
211 q->vars.qavg = red_calc_qavg(&q->parms, in gred_enqueue()
221 switch (red_action(&q->parms, &q->vars, q->vars.qavg + qavg)) { in gred_enqueue()
339 opt.set.tab[i].min = q->parms.qth_min >> q->parms.Wlog; in gred_offload()
340 opt.set.tab[i].max = q->parms.qth_max >> q->parms.Wlog; in gred_offload()
343 opt.set.tab[i].probability = q->parms.max_P; in gred_offload()
506 red_set_parms(&q->parms, in gred_change_vq()
760 struct nlattr *parms, *vqs, *opts = NULL; in gred_dump() local
782 max_p[i] = q ? q->parms.max_P : 0; in gred_dump()
791 parms = nla_nest_start_noflag(skb, TCA_GRED_PARMS); in gred_dump()
[all …]
Dsch_choke.c53 struct red_parms parms; member
223 const struct red_parms *p = &q->parms; in choke_enqueue()
420 red_set_parms(&q->parms, ctl->qth_min, ctl->qth_max, ctl->Wlog, in choke_change()
447 .qth_min = q->parms.qth_min >> q->parms.Wlog, in choke_dump()
448 .qth_max = q->parms.qth_max >> q->parms.Wlog, in choke_dump()
449 .Wlog = q->parms.Wlog, in choke_dump()
450 .Plog = q->parms.Plog, in choke_dump()
451 .Scell_log = q->parms.Scell_log, in choke_dump()
459 nla_put_u32(skb, TCA_CHOKE_MAX_P, q->parms.max_P)) in choke_dump()
/net/core/
Dneighbour.c449 n->parms = neigh_parms_clone(&tbl->parms); in neigh_alloc()
616 if (n->parms->neigh_setup && in ___neigh_create()
617 (error = n->parms->neigh_setup(n)) < 0) { in ___neigh_create()
622 n->confirmed = jiffies - (NEIGH_VAR(n->parms, BASE_REACHABLE_TIME) << 1); in ___neigh_create()
633 if (n->parms->dead) { in ___neigh_create()
822 static void neigh_parms_destroy(struct neigh_parms *parms);
824 static inline void neigh_parms_put(struct neigh_parms *parms) in neigh_parms_put() argument
826 if (refcount_dec_and_test(&parms->refcnt)) in neigh_parms_put()
827 neigh_parms_destroy(parms); in neigh_parms_put()
858 neigh_parms_put(neigh->parms); in neigh_destroy()
[all …]
/net/xfrm/
Dxfrm_interface_core.c646 struct xfrm_if_parms *parms) in xfrmi_netlink_parms() argument
648 memset(parms, 0, sizeof(*parms)); in xfrmi_netlink_parms()
654 parms->link = nla_get_u32(data[IFLA_XFRM_LINK]); in xfrmi_netlink_parms()
657 parms->if_id = nla_get_u32(data[IFLA_XFRM_IF_ID]); in xfrmi_netlink_parms()
Dxfrm_input.c543 mark = be32_to_cpu(XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4->parms.i_key); in xfrm_input()
547 mark = be32_to_cpu(XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip6->parms.i_key); in xfrm_input()