Home
last modified time | relevance | path

Searched refs:bound_dev_if (Results 1 – 25 of 28) sorted by relevance

12

/openbmc/linux/include/net/
H A Dinet_sock.h121 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in inet_request_bound_dev_if() local
125 if (!bound_dev_if && READ_ONCE(net->ipv4.sysctl_tcp_l3mdev_accept)) in inet_request_bound_dev_if()
129 return bound_dev_if; in inet_request_bound_dev_if()
145 static inline bool inet_bound_dev_eq(bool l3mdev_accept, int bound_dev_if, in inet_bound_dev_eq() argument
148 if (!bound_dev_if) in inet_bound_dev_eq()
150 return bound_dev_if == dif || bound_dev_if == sdif; in inet_bound_dev_eq()
153 static inline bool inet_sk_bound_dev_eq(struct net *net, int bound_dev_if, in inet_sk_bound_dev_eq() argument
158 bound_dev_if, dif, sdif); in inet_sk_bound_dev_eq()
160 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif); in inet_sk_bound_dev_eq()
H A Draw.h88 static inline bool raw_sk_bound_dev_eq(struct net *net, int bound_dev_if, in raw_sk_bound_dev_eq() argument
93 bound_dev_if, dif, sdif); in raw_sk_bound_dev_eq()
95 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif); in raw_sk_bound_dev_eq()
H A Dudp.h248 static inline bool udp_sk_bound_dev_eq(struct net *net, int bound_dev_if, in udp_sk_bound_dev_eq() argument
253 bound_dev_if, dif, sdif); in udp_sk_bound_dev_eq()
255 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif); in udp_sk_bound_dev_eq()
H A Dsock.h3005 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in sk_dev_equal_l3scope() local
3008 if (!bound_dev_if || bound_dev_if == dif) in sk_dev_equal_l3scope()
3012 if (mdif && mdif == bound_dev_if) in sk_dev_equal_l3scope()
H A Dip.h276 int bound_dev_if; member
/openbmc/linux/net/l2tp/
H A Dl2tp_ip6.c62 int bound_dev_if; in __l2tp_ip6_bind_lookup() local
67 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in __l2tp_ip6_bind_lookup()
68 if (bound_dev_if && dif && bound_dev_if != dif) in __l2tp_ip6_bind_lookup()
266 int bound_dev_if; in l2tp_ip6_bind() local
294 bound_dev_if = sk->sk_bound_dev_if; in l2tp_ip6_bind()
303 bound_dev_if = addr->l2tp_scope_id; in l2tp_ip6_bind()
308 if (!bound_dev_if) in l2tp_ip6_bind()
312 dev = dev_get_by_index_rcu(sock_net(sk), bound_dev_if); in l2tp_ip6_bind()
328 if (__l2tp_ip6_bind_lookup(net, &addr->l2tp_addr, NULL, bound_dev_if, in l2tp_ip6_bind()
337 sk->sk_bound_dev_if = bound_dev_if; in l2tp_ip6_bind()
H A Dl2tp_ip.c53 int bound_dev_if; in __l2tp_ip_bind_lookup() local
58 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in __l2tp_ip_bind_lookup()
59 if (bound_dev_if && dif && bound_dev_if != dif) in __l2tp_ip_bind_lookup()
/openbmc/linux/net/sctp/
H A Dendpointola.c252 int bound_dev_if = READ_ONCE(ep->base.sk->sk_bound_dev_if); in sctp_endpoint_is_match() local
256 sctp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif) && in sctp_endpoint_is_match()
304 int bound_dev_if = READ_ONCE(ep->base.sk->sk_bound_dev_if); in sctp_endpoint_is_peeled_off() local
315 bound_dev_if, bound_dev_if)) in sctp_endpoint_is_peeled_off()
H A Dinput.c984 bool sctp_sk_bound_dev_eq(struct net *net, int bound_dev_if, int dif, int sdif) in sctp_sk_bound_dev_eq() argument
991 return inet_bound_dev_eq(l3mdev_accept, bound_dev_if, dif, sdif); in sctp_sk_bound_dev_eq()
1003 int bound_dev_if; in sctp_addrs_lookup_transport() local
1017 bound_dev_if = READ_ONCE(t->asoc->base.sk->sk_bound_dev_if); in sctp_addrs_lookup_transport()
1018 if (sctp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif) && in sctp_addrs_lookup_transport()
H A Dipv6.c687 int type, res, bound_dev_if; in sctp_v6_available() local
702 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in sctp_v6_available()
703 if (bound_dev_if) { in sctp_v6_available()
705 dev = dev_get_by_index_rcu(net, bound_dev_if); in sctp_v6_available()
/openbmc/linux/drivers/infiniband/core/
H A Daddr.c182 header->ifindex = dev_addr->bound_dev_if; in ib_nl_ip_send_msg()
241 dev_addr->bound_dev_if = dev->ifindex; in rdma_copy_src_l2_addr()
280 if (dev_addr->bound_dev_if) { in rdma_translate_ip()
281 dev = dev_get_by_index(dev_addr->net, dev_addr->bound_dev_if); in rdma_translate_ip()
402 fl4.flowi4_oif = addr->bound_dev_if; in addr4_resolve()
431 fl6.flowi6_oif = addr->bound_dev_if; in addr6_resolve()
542 addr->bound_dev_if = ndev->ifindex; in set_addr_netns_by_gid_rcu()
549 addr->bound_dev_if = 0; in rdma_addr_set_net_defaults()
H A Dcma.c473 int ifindex_b = id_priv->id.route.addr.dev_addr.bound_dev_if; in compare_netdev_and_ip()
514 node_id_priv->id.route.addr.dev_addr.bound_dev_if, in cma_add_id_to_tree()
572 id_priv->id.route.addr.dev_addr.bound_dev_if, in cma_remove_id_from_tree()
690 int bound_if_index = dev_addr->bound_dev_if; in cma_validate_port()
1780 (!!addr->dev_addr.bound_dev_if == in cma_match_net_dev()
1781 (addr->dev_addr.bound_dev_if == net_dev->ifindex))) in cma_match_net_dev()
1997 if (dev_addr->bound_dev_if) in destroy_mc()
1999 dev_addr->bound_dev_if); in destroy_mc()
3113 if (!addr->dev_addr.bound_dev_if) in cma_iboe_set_path_rec_l2_fields()
3117 addr->dev_addr.bound_dev_if); in cma_iboe_set_path_rec_l2_fields()
[all …]
/openbmc/linux/samples/bpf/
H A Dtest_cgrp2_sock.c44 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, bound_dev_if)), in prog_load()
45 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, bound_dev_if)), in prog_load()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sock_fields.c64 dst->bound_dev_if = src->bound_dev_if; in skcpy()
/openbmc/linux/net/sched/
H A Dem_meta.c314 int bound_dev_if; in META_COLLECTOR() local
321 bound_dev_if = READ_ONCE(skb->sk->sk_bound_dev_if); in META_COLLECTOR()
322 if (bound_dev_if == 0) { in META_COLLECTOR()
330 bound_dev_if); in META_COLLECTOR()
/openbmc/linux/net/netfilter/
H A Dnf_conntrack_proto.c333 int bound_dev_if; in ipv6_getorigdst() local
341 bound_dev_if = sk->sk_bound_dev_if; in ipv6_getorigdst()
366 sin6.sin6_scope_id = ipv6_iface_scope_id(&sin6.sin6_addr, bound_dev_if); in ipv6_getorigdst()
/openbmc/linux/include/rdma/
H A Dib_addr.h41 int bound_dev_if; member
/openbmc/linux/net/xdp/
H A Dxsk.c1092 int bound_dev_if; in xsk_bind() local
1106 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in xsk_bind()
1107 if (bound_dev_if && bound_dev_if != sxdp->sxdp_ifindex) in xsk_bind()
/openbmc/linux/net/ipv6/
H A Dudp.c125 int bound_dev_if, score; in compute_score() local
152 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in compute_score()
153 dev_match = udp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif); in compute_score()
156 if (bound_dev_if) in compute_score()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsock_fields.c73 sk->state, sk->bound_dev_if, sk->family, sk->type, sk->protocol, in print_sk()
H A Dctx_rewrite.c124 N(CGROUP_SOCK, struct bpf_sock, bound_dev_if),
/openbmc/linux/include/net/sctp/
H A Dsctp.h163 bool sctp_sk_bound_dev_eq(struct net *net, int bound_dev_if, int dif, int sdif);
/openbmc/linux/net/ipv4/
H A Dip_output.c1614 oif = arg->bound_dev_if; in ip_send_unicast_reply()
1634 sk->sk_bound_dev_if = arg->bound_dev_if; in ip_send_unicast_reply()
/openbmc/linux/net/core/
H A Dsock.c728 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in sock_getbindtodevice() local
732 if (bound_dev_if == 0) { in sock_getbindtodevice()
741 ret = netdev_get_name(net, devname, bound_dev_if); in sock_getbindtodevice()
/openbmc/linux/include/uapi/linux/
H A Dbpf.h6201 __u32 bound_dev_if; member

12