Home
last modified time | relevance | path

Searched refs:rnet (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/drivers/net/
Drionet.c96 struct rionet_private *rnet = netdev_priv(ndev); in rionet_rx_clean() local
99 i = rnet->rx_slot; in rionet_rx_clean()
102 if (!rnet->rx_skb[i]) in rionet_rx_clean()
105 if (!(data = rio_get_inb_message(rnet->mport, RIONET_MAILBOX))) in rionet_rx_clean()
108 rnet->rx_skb[i]->data = data; in rionet_rx_clean()
109 skb_put(rnet->rx_skb[i], RIO_MAX_MSG_SIZE); in rionet_rx_clean()
110 rnet->rx_skb[i]->protocol = in rionet_rx_clean()
111 eth_type_trans(rnet->rx_skb[i], ndev); in rionet_rx_clean()
112 error = __netif_rx(rnet->rx_skb[i]); in rionet_rx_clean()
121 } while ((i = (i + 1) % RIONET_RX_RING_SIZE) != rnet->rx_slot); in rionet_rx_clean()
[all …]
/linux-6.12.1/drivers/infiniband/core/
Dnetlink.c55 struct rdma_dev_net *rnet = rdma_net_to_dev_net(&init_net); in rdma_nl_chk_listeners() local
57 return netlink_has_listeners(rnet->nl_sock, group); in rdma_nl_chk_listeners()
264 struct rdma_dev_net *rnet = rdma_net_to_dev_net(net); in rdma_nl_unicast() local
267 err = netlink_unicast(rnet->nl_sock, skb, pid, MSG_DONTWAIT); in rdma_nl_unicast()
274 struct rdma_dev_net *rnet = rdma_net_to_dev_net(net); in rdma_nl_unicast_wait() local
277 err = netlink_unicast(rnet->nl_sock, skb, pid, 0); in rdma_nl_unicast_wait()
285 struct rdma_dev_net *rnet = rdma_net_to_dev_net(net); in rdma_nl_multicast() local
287 return nlmsg_multicast(rnet->nl_sock, skb, 0, group, flags); in rdma_nl_multicast()
309 int rdma_nl_net_init(struct rdma_dev_net *rnet) in rdma_nl_net_init() argument
311 struct net *net = read_pnet(&rnet->net); in rdma_nl_net_init()
[all …]
Ddevice.c927 struct rdma_dev_net *rnet) in add_one_compat_dev() argument
940 if (net_eq(read_pnet(&rnet->net), in add_one_compat_dev()
950 cdev = xa_load(&device->compat_devs, rnet->id); in add_one_compat_dev()
955 ret = xa_reserve(&device->compat_devs, rnet->id, GFP_KERNEL); in add_one_compat_dev()
966 rdma_init_coredev(cdev, device, read_pnet(&rnet->net)); in add_one_compat_dev()
979 ret = xa_err(xa_store(&device->compat_devs, rnet->id, in add_one_compat_dev()
994 xa_release(&device->compat_devs, rnet->id); in add_one_compat_dev()
1025 struct rdma_dev_net *rnet; in add_compat_devs() local
1032 xa_for_each (&rdma_nets, index, rnet) { in add_compat_devs()
1033 ret = add_one_compat_dev(device, rnet); in add_compat_devs()
[all …]
Dcore_priv.h358 int rdma_nl_net_init(struct rdma_dev_net *rnet);
359 void rdma_nl_net_exit(struct rdma_dev_net *rnet);
/linux-6.12.1/tools/testing/selftests/net/
Dxfrm_policy.sh35 local rnet=$5
38 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu…
40 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
48 local rnet=$5
52 …me proto esp spi $spi_in enc aes $KEY_AES auth sha1 $KEY_SHA mode tunnel sel src $rnet dst $lnet
53 …mote proto esp spi $spi_out enc aes $KEY_AES auth sha1 $KEY_SHA mode tunnel sel src $lnet dst $rnet
55 do_esp_policy $ns $me $remote $lnet $rnet
120 local rnet=$3
122 ip -net $ns xfrm policy get src $lnet dst $rnet dir out > /dev/null
125 echo "FAIL: ip -net $ns xfrm policy get src $lnet dst $rnet dir out"
[all …]
/linux-6.12.1/tools/testing/selftests/net/netfilter/
Dnft_flowtable.sh623 local rnet=$5
627 …esp spi "$spi_in" enc aes "$KEY_AES" auth sha1 "$KEY_SHA" mode tunnel sel src "$rnet" dst "$lnet"
628 … esp spi "$spi_out" enc aes "$KEY_AES" auth sha1 "$KEY_SHA" mode tunnel sel src "$lnet" dst "$rnet"
631 …ip -net "$ns" xfrm policy add src "$lnet" dst "$rnet" dir out tmpl src "$me" dst "$remote" proto e…
633 …ip -net "$ns" xfrm policy add src "$rnet" dst "$lnet" dir fwd tmpl src "$remote" dst "$me" proto e…