/openbmc/linux/net/phonet/ |
H A D | pn_dev.c | 50 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in __phonet_device_alloc() 64 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in __phonet_get() 77 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in __phonet_get_rcu() 89 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in phonet_device_destroy() 132 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in phonet_address_add() 151 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in phonet_address_del() 196 def_dev = phonet_device_get(dev_net(dev)); in phonet_address_get() 254 struct phonet_net *pnn = phonet_pernet(dev_net(dev)); in phonet_route_autodel() 358 struct phonet_net *pnn = phonet_pernet(dev_net(dev)); in phonet_route_add() 375 struct phonet_net *pnn = phonet_pernet(dev_net(dev)); in phonet_route_del()
|
H A D | pn_netlink.c | 40 rtnl_notify(skb, dev_net(dev), 0, in phonet_address_notify() 44 rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_IFADDR, err); in phonet_address_notify() 206 rtnl_notify(skb, dev_net(dev), 0, in rtm_phonet_notify() 210 rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_ROUTE, err); in rtm_phonet_notify()
|
/openbmc/linux/net/bridge/ |
H A D | br_ioctl.c | 87 struct net *net = dev_net(br->dev); in add_del_if() 219 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 226 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 233 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 240 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 280 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 287 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 296 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 310 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
|
H A D | br_input.c | 71 dev_net(indev), NULL, skb, indev, NULL, in br_pass_frame_up() 262 net = dev_net(skb->dev); in nf_hook_bridge_pre() 298 net = dev_net(skb->dev); in nf_hook_bridge_pre() 301 br_handle_frame_finish(dev_net(skb->dev), NULL, skb); in nf_hook_bridge_pre() 402 dev_net(skb->dev), NULL, skb, skb->dev, NULL, in br_handle_frame()
|
/openbmc/linux/net/ipv6/ |
H A D | ip6_vti.c | 185 struct net *net = dev_net(dev); in vti6_tnl_create2() 227 t->net = dev_net(dev); in vti6_tnl_create() 306 t = vti6_tnl_lookup(dev_net(skb->dev), &ipv6h->saddr, &ipv6h->daddr); in vti6_input_proto() 375 XFRM_INC_STATS(dev_net(skb->dev), in vti6_rcv_cb() 390 skb_scrub_packet(skb, !net_eq(t->net, dev_net(skb->dev))); in vti6_rcv_cb() 463 rt = __ip_route_output_key(dev_net(dev), &fl->u.ip4); in vti6_xmit() 473 dst = ip6_route_output(dev_net(dev), NULL, &fl->u.ip6); in vti6_xmit() 535 skb_scrub_packet(skb, !net_eq(t->net, dev_net(dev))); in vti6_xmit() 608 struct net *net = dev_net(skb->dev); in vti6_err() 612 t = vti6_tnl_lookup(dev_net(skb->dev), &iph->daddr, &iph->saddr); in vti6_err() [all …]
|
H A D | ip6_input.c | 305 struct net *net = dev_net(skb->dev); in ipv6_rcv() 335 struct net *net = dev_net(dev); in ipv6_list_rcv() 493 dev_net(skb->dev), NULL, skb, skb->dev, NULL, in ip6_input() 505 __IP6_UPD_PO_STATS(dev_net(skb_dst(skb)->dev), in ip6_mc_input() 512 dev = dev_get_by_index_rcu(dev_net(skb->dev), sdif); in ip6_mc_input() 531 if (atomic_read(&dev_net(skb->dev)->ipv6.devconf_all->mc_forwarding) && in ip6_mc_input()
|
H A D | ndisc.c | 421 struct sock *sk = dev_net(dev)->ipv6.ndisc_sk; in ndisc_alloc_skb() 477 struct net *net = dev_net(skb->dev); in ndisc_send_skb() 535 ifp = ipv6_get_ifaddr(dev_net(dev), solicited_addr, dev, 1); in ndisc_send_na() 543 if (ipv6_dev_get_saddr(dev_net(dev), dev, daddr, in ndisc_send_na() 544 inet6_sk(dev_net(dev)->ipv6.ndisc_sk)->srcprefs, in ndisc_send_na() 690 struct inet6_ifaddr *ifp = ipv6_get_ifaddr(dev_net(dev), saddr, in ndisc_send_rs() 745 if (skb && ipv6_chk_addr_and_flags(dev_net(dev), &ipv6_hdr(skb)->saddr, in ndisc_solicit() 772 n = __pneigh_lookup(&nd_tbl, dev_net(dev), pkey, dev); in pndisc_is_router() 852 ifp = ipv6_get_ifaddr(dev_net(dev), &msg->target, dev, 1); in ndisc_recv_ns() 887 struct net *net = dev_net(dev); in ndisc_recv_ns() [all …]
|
H A D | seg6_iptunnel.c | 131 struct net *net = dev_net(dst->dev); in seg6_do_srh_encap() 208 struct net *net = dev_net(dst->dev); in seg6_do_srh_encap_red() 358 struct net *net = dev_net(skb_dst(skb)->dev); in seg6_do_srh_inline() 489 dev_net(skb->dev), NULL, skb, NULL, in seg6_input_core() 492 return seg6_input_finish(dev_net(skb->dev), NULL, skb); in seg6_input_core() 501 struct net *net = dev_net(skb->dev); in seg6_input_nf() 520 return seg6_input_core(dev_net(skb->dev), NULL, skb); in seg6_input()
|
H A D | icmp.c | 79 struct net *net = dev_net(skb->dev); in icmpv6_err() 476 net = dev_net(skb->dev); in icmp6_send() 682 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, NULL, 0, in ip6_err_gen_icmpv6_unreach() 720 struct net *net = dev_net(skb->dev); in icmpv6_echo_reply() 835 struct net *net = dev_net(skb->dev); in icmpv6_notify() 892 struct net *net = dev_net(skb->dev); in icmpv6_rcv() 924 __ICMP6_INC_STATS(dev_net(dev), idev, ICMP6_MIB_INMSGS); in icmpv6_rcv() 942 ICMP6MSGIN_INC_STATS(dev_net(dev), idev, type); in icmpv6_rcv() 1037 __ICMP6_INC_STATS(dev_net(dev), idev, ICMP6_MIB_CSUMERRORS); in icmpv6_rcv() 1039 __ICMP6_INC_STATS(dev_net(dev), idev, ICMP6_MIB_INERRORS); in icmpv6_rcv()
|
H A D | exthdrs.c | 302 struct net *net = dev_net(skb->dev); in ipv6_destopt_rcv() 308 __IP6_INC_STATS(dev_net(dst->dev), idev, in ipv6_destopt_rcv() 371 struct net *net = dev_net(skb->dev); in ipv6_srh_rcv() 486 struct net *net = dev_net(skb->dev); in ipv6_rpl_srh_rcv() 656 struct net *net = dev_net(skb->dev); in ipv6_rthdr_rcv() 783 if (!ipv6_chk_home_addr(dev_net(skb_dst(skb)->dev), addr)) { in ipv6_rthdr_rcv() 888 return skb_dst(skb) ? dev_net(skb_dst(skb)->dev) : dev_net(skb->dev); in ipv6_skb_net() 1038 struct net *net = dev_net(skb->dev); in ipv6_parse_hopopts() 1138 net = dev_net(skb->dev); in ipv6_push_rthdr4()
|
H A D | ip6_tunnel.c | 256 struct net *net = dev_net(dev); in ip6_tnl_create2() 310 t->net = dev_net(dev); in ip6_tnl_create() 467 struct net *net = dev_net(skb->dev); in ip6_tnl_err() 482 t = ip6_tnl_lookup(dev_net(skb->dev), skb->dev->ifindex, &ipv6h->daddr, &ipv6h->saddr); in ip6_tnl_err() 611 rt = ip_route_output_ports(dev_net(skb->dev), &fl4, NULL, eiph->saddr, in ip4ip6_err() 621 rt = ip_route_output_ports(dev_net(skb->dev), &fl4, NULL, in ip4ip6_err() 678 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, in ip6ip6_err() 875 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(tunnel->dev))); in __ip6_tnl_rcv() 935 t = ip6_tnl_lookup(dev_net(skb->dev), skb->dev->ifindex, &ipv6h->saddr, &ipv6h->daddr); in ipxip6_rcv() 1214 skb_scrub_packet(skb, !net_eq(t->net, dev_net(dev))); in ip6_tnl_xmit() [all …]
|
H A D | ip6_gre.c | 119 struct net *net = dev_net(dev); in ip6gre_tunnel_lookup() 379 nt->net = dev_net(dev); in ip6gre_tunnel_locate() 421 struct net *net = dev_net(skb->dev); in ip6gre_err() 657 fl6->flowi6_uid = sock_net_uid(dev_net(dev), NULL); in prepare_ip6gre_xmit_ipv4() 702 fl6->flowi6_uid = sock_net_uid(dev_net(dev), NULL); in prepare_ip6gre_xmit_ipv6() 729 fl6->flowi6_uid = sock_net_uid(dev_net(dev), NULL); in prepare_ip6gre_xmit_other() 780 fl6->flowi6_uid = sock_net_uid(dev_net(dev), NULL); in __gre6_xmit() 1006 fl6.flowi6_uid = sock_net_uid(dev_net(dev), NULL); in ip6erspan_tunnel_xmit() 1388 ip6_flow_hdr(ipv6h, 0, ip6_make_flowlabel(dev_net(dev), skb, in ip6gre_header() 1489 tunnel->net = dev_net(dev); in ip6gre_tunnel_init_common() [all …]
|
/openbmc/linux/net/ipv4/ |
H A D | ip_input.c | 154 struct net *net = dev_net(dev); in ip_call_ra_chain() 247 struct net *net = dev_net(skb->dev); in ip_local_deliver() 273 __IP_INC_STATS(dev_net(dev), IPSTATS_MIB_INDISCARDS); in ip_rcv_options() 281 if (ip_options_compile(dev_net(dev), opt, skb)) { in ip_rcv_options() 282 __IP_INC_STATS(dev_net(dev), IPSTATS_MIB_INHDRERRORS); in ip_rcv_options() 563 struct net *net = dev_net(dev); in ip_rcv() 654 struct net *net = dev_net(dev); in ip_list_rcv()
|
H A D | ip_vti.c | 52 struct net *net = dev_net(skb->dev); in vti_input() 123 XFRM_INC_STATS(dev_net(skb->dev), in vti_rcv_cb() 138 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(skb->dev))); in vti_rcv_cb() 184 rt = __ip_route_output_key(dev_net(dev), &fl->u.ip4); in vti_xmit() 197 dst = ip6_route_output(dev_net(dev), NULL, &fl->u.ip6); in vti_xmit() 257 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(dev))); in vti_xmit() 321 struct net *net = dev_net(skb->dev); in vti4_err()
|
H A D | icmp.c | 409 struct net *net = dev_net(rt->dst.dev); in icmp_reply() 616 net = dev_net(rt->dst.dev); in __icmp_send() 618 net = dev_net(skb_in->dev); in __icmp_send() 836 __ICMP_INC_STATS(dev_net(skb->dev), ICMP_MIB_INERRORS); in icmp_socket_deliver() 870 net = dev_net(skb_dst(skb)->dev); in icmp_unreach() 981 __ICMP_INC_STATS(dev_net(skb->dev), ICMP_MIB_INERRORS); in icmp_redirect() 1013 net = dev_net(skb_dst(skb)->dev); in icmp_echo() 1044 struct net *net = dev_net(skb->dev); in icmp_build_probe() 1183 __ICMP_INC_STATS(dev_net(skb_dst(skb)->dev), ICMP_MIB_INERRORS); in icmp_timestamp() 1200 struct net *net = dev_net(rt->dst.dev); in icmp_rcv() [all …]
|
H A D | arp.c | 242 neigh->type = inet_addr_type_dev_table(dev_net(dev), dev, addr); in arp_constructor() 352 if (skb && inet_addr_type_dev_table(dev_net(dev), dev, in arp_solicit() 360 if (inet_addr_type_dev_table(dev_net(dev), dev, in arp_solicit() 398 struct net *net = dev_net(in_dev->dev); in arp_ignore() 434 struct net *net = dev_net(in_dev->dev); in arp_accept() 457 struct net *net = dev_net(dev); in arp_filter() 663 dev_net(skb->dev), NULL, skb, NULL, skb->dev, in arp_xmit() 951 arp_process(dev_net(skb->dev), NULL, skb); in parp_redo() 989 dev_net(dev), NULL, skb, dev, NULL, in arp_rcv() 1283 rt_cache_flush(dev_net(dev)); in arp_netdev_event()
|
H A D | fib_frontend.c | 287 net = dev_net(dev); in fib_compute_spec_dst() 348 struct net *net = dev_net(dev); in __fib_validate_source() 426 struct net *net = dev_net(dev); in fib_validate_source() 1072 struct net *net = dev_net(ifa->ifa_dev->dev); in fib_magic() 1320 addr_type = inet_addr_type_dev_table(dev_net(dev), dev, in fib_del_ifaddr() 1330 fib_flush(dev_net(dev)); in fib_del_ifaddr() 1426 fib_flush(dev_net(dev)); in fib_disable_ip() 1428 rt_cache_flush(dev_net(dev)); in fib_disable_ip() 1436 struct net *net = dev_net(dev); in fib_inetaddr_event() 1445 rt_cache_flush(dev_net(dev)); in fib_inetaddr_event() [all …]
|
/openbmc/linux/drivers/net/ |
H A D | vrf.c | 176 return netns_vrf_map(dev_net(dev)); in netns_vrf_map_by_dev() 452 struct net *net = dev_net(skb->dev); in vrf_process_v6_outbound() 533 struct net *net = dev_net(vrf_dev); in vrf_process_v4_outbound() 574 ret = vrf_ip_local_out(dev_net(skb_dst(skb)->dev), skb->sk, skb); in vrf_process_v4_outbound() 670 IP6_INC_STATS(dev_net(dst->dev), in vrf_finish_output6() 758 struct net *net = dev_net(vrf_dev); in vrf_ip6_out_direct() 796 struct net *net = dev_net(dev); in vrf_rt6_release() 818 struct net *net = dev_net(dev); in vrf_rt6_create() 988 struct net *net = dev_net(vrf_dev); in vrf_ip_out_direct() 1043 struct net *net = dev_net(dev); in vrf_rtable_release() [all …]
|
/openbmc/linux/include/linux/ |
H A D | netfilter_netdev.h | 33 dev_net(skb->dev), NULL); in nf_hook_ingress() 103 dev_net(dev), NULL); in nf_hook_egress()
|
/openbmc/linux/net/caif/ |
H A D | caif_dev.c | 112 caif_device_list(dev_net(dev)); in caif_get() 320 struct cfcnfg *cfg = get_cfcnfg(dev_net(dev)); in caif_enroll_dev() 324 caifdevs = caif_device_list(dev_net(dev)); in caif_enroll_dev() 375 cfg = get_cfcnfg(dev_net(dev)); in caif_device_notify() 376 caifdevs = caif_device_list(dev_net(dev)); in caif_device_notify()
|
H A D | chnl_net.c | 256 result = caif_connect_client(dev_net(dev), &priv->conn_req, in chnl_net_open() 267 lldev = __dev_get_by_index(dev_net(dev), llifindex); in chnl_net_open() 326 caif_disconnect_client(dev_net(dev), &priv->chnl); in chnl_net_open() 340 caif_disconnect_client(dev_net(dev), &priv->chnl); in chnl_net_stop()
|
/openbmc/linux/net/mctp/ |
H A D | neigh.c | 28 struct net *net = dev_net(mdev->dev); in mctp_neigh_add() 73 struct net *net = dev_net(mdev->dev); in mctp_neigh_remove_dev() 91 struct net *net = dev_net(mdev->dev); in mctp_neigh_remove() 281 struct net *net = dev_net(mdev->dev); in mctp_neigh_lookup()
|
/openbmc/linux/net/core/ |
H A D | netdev-genl.c | 47 if (!genl_has_listeners(&netdev_nl_family, dev_net(netdev), in netdev_genl_dev_notify() 62 genlmsg_multicast_netns(&netdev_nl_family, dev_net(netdev), ntf, in netdev_genl_dev_notify()
|
/openbmc/linux/net/netfilter/ |
H A D | nf_conntrack_bpf.c | 259 nfct = __bpf_nf_ct_alloc_entry(dev_net(ctx->rxq->dev), bpf_tuple, tuple__sz, in bpf_xdp_ct_alloc() 294 caller_net = dev_net(ctx->rxq->dev); in bpf_xdp_ct_lookup() 327 net = skb->dev ? dev_net(skb->dev) : sock_net(skb->sk); in bpf_skb_ct_alloc() 362 caller_net = skb->dev ? dev_net(skb->dev) : sock_net(skb->sk); in bpf_skb_ct_lookup()
|
/openbmc/linux/net/xfrm/ |
H A D | xfrm_interface_core.c | 249 struct net *net = dev_net(dev); in xfrmi_create() 389 xnet = !net_eq(xi->net, dev_net(skb->dev)); in xfrmi_rcv_cb() 397 XFRM_INC_STATS(dev_net(skb->dev), in xfrmi_rcv_cb() 506 xfrmi_scrub_packet(skb, !net_eq(xi->net, dev_net(dev))); in xfrmi_xmit2() 543 dst = ip6_route_output(dev_net(dev), NULL, &fl.u.ip6); in xfrmi_xmit() 560 rt = __ip_route_output_key(dev_net(dev), &fl.u.ip4); in xfrmi_xmit() 590 struct net *net = dev_net(skb->dev); in xfrmi4_err() 651 struct net *net = dev_net(skb->dev); in xfrmi6_err() 827 struct net *net = dev_net(dev); in xfrmi_newlink() 1023 spi = xfrm6_tunnel_spi_lookup(dev_net(skb->dev), saddr); in xfrmi6_rcv_tunnel()
|