Home
last modified time | relevance | path

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

/linux-6.1.9/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.1.9/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.c921 struct rdma_dev_net *rnet) in add_one_compat_dev() argument
934 if (net_eq(read_pnet(&rnet->net), in add_one_compat_dev()
944 cdev = xa_load(&device->compat_devs, rnet->id); in add_one_compat_dev()
949 ret = xa_reserve(&device->compat_devs, rnet->id, GFP_KERNEL); in add_one_compat_dev()
960 rdma_init_coredev(cdev, device, read_pnet(&rnet->net)); in add_one_compat_dev()
973 ret = xa_err(xa_store(&device->compat_devs, rnet->id, in add_one_compat_dev()
988 xa_release(&device->compat_devs, rnet->id); in add_one_compat_dev()
1019 struct rdma_dev_net *rnet; in add_compat_devs() local
1026 xa_for_each (&rdma_nets, index, rnet) { in add_compat_devs()
1027 ret = add_one_compat_dev(device, rnet); in add_compat_devs()
[all …]
Dcore_priv.h361 int rdma_nl_net_init(struct rdma_dev_net *rnet);
362 void rdma_nl_net_exit(struct rdma_dev_net *rnet);
/linux-6.1.9/tools/testing/selftests/net/
Dxfrm_policy.sh36 local rnet=$5
39 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu…
41 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
49 local rnet=$5
53 …me proto esp spi $spi_in enc aes $KEY_AES auth sha1 $KEY_SHA mode tunnel sel src $rnet dst $lnet
54 …mote proto esp spi $spi_out enc aes $KEY_AES auth sha1 $KEY_SHA mode tunnel sel src $lnet dst $rnet
56 do_esp_policy $ns $me $remote $lnet $rnet
121 local rnet=$3
123 ip -net $ns xfrm policy get src $lnet dst $rnet dir out > /dev/null
126 echo "FAIL: ip -net $ns xfrm policy get src $lnet dst $rnet dir out"
[all …]
/linux-6.1.9/tools/testing/selftests/netfilter/
Dnft_flowtable.sh506 local rnet=$5
510 …$me proto esp spi $spi_in enc aes $KEY_AES auth sha1 $KEY_SHA mode tunnel sel src $rnet dst $lnet
511 …mote proto esp spi $spi_out enc aes $KEY_AES auth sha1 $KEY_SHA mode tunnel sel src $lnet dst $rnet
514 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu…
516 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…