Searched refs:bound_dev_if (Results 1 - 25 of 29) sorted by relevance

12

/linux-master/include/net/
H A Draw.h88 static inline bool raw_sk_bound_dev_eq(struct net *net, int bound_dev_if, argument
93 bound_dev_if, dif, sdif);
95 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif);
H A Dinet_sock.h121 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); local
125 if (!bound_dev_if && READ_ONCE(net->ipv4.sysctl_tcp_l3mdev_accept))
129 return bound_dev_if;
145 static inline bool inet_bound_dev_eq(bool l3mdev_accept, int bound_dev_if, argument
148 if (!bound_dev_if)
150 return bound_dev_if == dif || bound_dev_if == sdif;
153 static inline bool inet_sk_bound_dev_eq(struct net *net, int bound_dev_if, argument
158 bound_dev_if, dif, sdif);
160 return inet_bound_dev_eq(true, bound_dev_if, di
[all...]
H A Dudp.h248 static inline bool udp_sk_bound_dev_eq(struct net *net, int bound_dev_if, argument
253 bound_dev_if, dif, sdif);
255 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif);
H A Dsock.h2920 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); local
2923 if (!bound_dev_if || bound_dev_if == dif)
2927 if (mdif && mdif == bound_dev_if)
H A Dip.h276 int bound_dev_if; member in struct:ip_reply_arg
/linux-master/net/l2tp/
H A Dl2tp_ip6.c62 int bound_dev_if; local
67 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if);
68 if (bound_dev_if && dif && bound_dev_if != dif)
266 int bound_dev_if; local
294 bound_dev_if = sk->sk_bound_dev_if;
303 bound_dev_if = addr->l2tp_scope_id;
308 if (!bound_dev_if)
312 dev = dev_get_by_index_rcu(sock_net(sk), bound_dev_if);
328 if (__l2tp_ip6_bind_lookup(net, &addr->l2tp_addr, NULL, bound_dev_if,
[all...]
H A Dl2tp_ip.c53 int bound_dev_if; local
58 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if);
59 if (bound_dev_if && dif && bound_dev_if != dif)
/linux-master/net/sctp/
H A Dendpointola.c252 int bound_dev_if = READ_ONCE(ep->base.sk->sk_bound_dev_if); local
256 sctp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif) &&
304 int bound_dev_if = READ_ONCE(ep->base.sk->sk_bound_dev_if); local
315 bound_dev_if, bound_dev_if))
H A Dinput.c981 bool sctp_sk_bound_dev_eq(struct net *net, int bound_dev_if, int dif, int sdif) argument
988 return inet_bound_dev_eq(l3mdev_accept, bound_dev_if, dif, sdif);
1000 int bound_dev_if; local
1014 bound_dev_if = READ_ONCE(t->asoc->base.sk->sk_bound_dev_if);
1015 if (sctp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif) &&
/linux-master/samples/bpf/
H A Dtest_cgrp2_sock.c44 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, bound_dev_if)),
45 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, bound_dev_if)),
/linux-master/drivers/infiniband/core/
H A Daddr.c182 header->ifindex = dev_addr->bound_dev_if;
241 dev_addr->bound_dev_if = dev->ifindex;
280 if (dev_addr->bound_dev_if) {
281 dev = dev_get_by_index(dev_addr->net, dev_addr->bound_dev_if);
402 fl4.flowi4_oif = addr->bound_dev_if;
431 fl6.flowi6_oif = addr->bound_dev_if;
542 addr->bound_dev_if = ndev->ifindex;
549 addr->bound_dev_if = 0;
H A Dcma.c473 int ifindex_b = id_priv->id.route.addr.dev_addr.bound_dev_if;
514 node_id_priv->id.route.addr.dev_addr.bound_dev_if,
572 id_priv->id.route.addr.dev_addr.bound_dev_if,
690 int bound_if_index = dev_addr->bound_dev_if;
1778 (!!addr->dev_addr.bound_dev_if ==
1779 (addr->dev_addr.bound_dev_if == net_dev->ifindex)))
1995 if (dev_addr->bound_dev_if)
1997 dev_addr->bound_dev_if);
3111 if (!addr->dev_addr.bound_dev_if)
3115 addr->dev_addr.bound_dev_if);
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_sock_fields.c64 dst->bound_dev_if = src->bound_dev_if;
/linux-master/net/netfilter/
H A Dnf_conntrack_proto.c333 int bound_dev_if; local
341 bound_dev_if = sk->sk_bound_dev_if;
366 sin6.sin6_scope_id = ipv6_iface_scope_id(&sin6.sin6_addr, bound_dev_if);
/linux-master/include/rdma/
H A Dib_addr.h31 * @bound_dev_if: An optional device interface index.
33 * @net: Network namespace containing the bound_dev_if net_dev.
41 int bound_dev_if; member in struct:rdma_dev_addr
/linux-master/net/sched/
H A Dem_meta.c308 /* No error if bound_dev_if is 0, legal userspace check */
314 int bound_dev_if; local
321 bound_dev_if = READ_ONCE(skb->sk->sk_bound_dev_if);
322 if (bound_dev_if == 0) {
330 bound_dev_if);
/linux-master/net/ipv6/
H A Dipv6_sockglue.c519 int bound_dev_if, midx; local
532 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if);
533 if (bound_dev_if &&
534 bound_dev_if != val &&
535 (!midx || midx != bound_dev_if))
H A Dudp.c122 int bound_dev_if, score; local
149 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if);
150 dev_match = udp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif);
153 if (bound_dev_if)
/linux-master/net/ipv4/
H A Dtcp_ao.c1611 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); local
1623 if (!bound_dev_if || bound_dev_if != cmd.ifindex) {
1637 if (bound_dev_if && bound_dev_if != cmd.ifindex)
1639 cmd.ifindex, bound_dev_if);
H A Dip_output.c1615 oif = arg->bound_dev_if;
1635 sk->sk_bound_dev_if = arg->bound_dev_if;
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dsock_fields.c69 printf("%s: state:%u bound_dev_if:%u family:%u type:%u protocol:%u mark:%u priority:%u "
73 sk->state, sk->bound_dev_if, sk->family, sk->type, sk->protocol,
H A Dctx_rewrite.c124 N(CGROUP_SOCK, struct bpf_sock, bound_dev_if),
/linux-master/net/xdp/
H A Dxsk.c1167 int bound_dev_if; local
1181 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if);
1182 if (bound_dev_if && bound_dev_if != sxdp->sxdp_ifindex)
/linux-master/include/net/sctp/
H A Dsctp.h163 bool sctp_sk_bound_dev_eq(struct net *net, int bound_dev_if, int dif, int sdif);
/linux-master/include/uapi/linux/
H A Dbpf.h6319 __u32 bound_dev_if; member in struct:bpf_sock

Completed in 466 milliseconds

12