Home
last modified time | relevance | path

Searched +full:tx +full:- +full:rings +full:- +full:empty (Results 1 – 25 of 73) sorted by relevance

123

/freebsd/sys/contrib/device-tree/Bindings/soc/qcom/
H A Dqcom,wcnss.txt6 - compatible:
11 - qcom,smd-channel:
18 - qcom,mmio:
20 Value type: <prop-encoded-array>
27 - firmware-name:
41 - compatible:
45 "qcom,wcnss-bt"
47 - local-bd-address:
55 - compatible:
59 "qcom,wcnss-wlan",
[all …]
H A Dqcom,wcnss.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Andy Gross <agross@kernel.org>
11 - Bjorn Andersson <bjorn.andersson@linaro.org>
21 firmware-name:
32 - qcom,riva"
33 - qcom,pronto"
35 qcom,smd-channels:
46 - $ref: /schemas/net/bluetooth/bluetooth-controller.yaml#
[all …]
/freebsd/tools/tools/netmap/
H A Dpkt-gen.81 .\" Copyright (c) 2016, George V. Neville-Neil
30 .Nm pkt-gen
34 .Bl -item -compact
43 .Op Fl d Ar dst_ip[:port[-dst_ip:port]]
44 .Op Fl s Ar src_ip[:port[-src_ip:port]]
65 .Bl -tag -width Ds
85 .Cm tx
90 for client-side ping-pong operation, and
92 for server-side ping-pong operation.
98 .Cm tx
[all …]
H A Dpkt-gen.c2 * Copyright (C) 2011-2014 Matteo Landi, Luigi Rizzo. All rights reserved.
3 * Copyright (C) 2013-2015 Universita` di Pisa. All rights reserved.
28 * $Id: pkt-gen.c 12346 2013-06-12 17:36:25Z luigi $
133 n->octet[0], n->octet[1], n->octet[2], in ether_ntoa()
134 n->octet[3], n->octet[4], n->octet[5]); in ether_ntoa()
184 static const char *default_payload = "netmap pkt-gen DIRECT payload\n"
187 static const char *indirect_payload = "netmap pkt-gen indirect payload\n"
193 #define VIRT_HDR_1 10 /* length of a base vnet-hdr */
194 #define VIRT_HDR_2 12 /* length of the extenede vnet-hdr */
220 ((af) == AF_INET ? (p)->ipv4.f: (p)->ipv6.f)
[all …]
/freebsd/lib/libnetmap/
H A Dlibnetmap.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
32 /* if thread-safety is not needed, define LIBNETMAP_NOTHREADSAFE before including
59 * vale (followed by a possibly empty id)
61 * the id (an empty id selects the default switch)
78 * -NN bind individual NIC ring pair
83 * z zero copy monitor (both tx and rx)
84 * t monitor tx side (copy monitor)
87 * T bind only TX ring(s)
94 * option:key1=value1,key2=value2,... (multi-key option)
[all …]
/freebsd/sys/net/
H A Dnetmap.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (C) 2011-2014 Matteo Landi, Luigi Rizzo. All rights reserved.
48 * Some fields should be cache-aligned to reduce contention.
56 * --- Netmap data structures ---
68 +---->+---------------+
71 +----------------+ / | other fields |
75 | | / +---------------+
77 | txring_ofs[0] | (rel.to nifp)--' | flags, ptr |
78 | txring_ofs[1] | +---------------+
[all …]
/freebsd/share/man/man4/
H A Dnetmap.41 .\" Copyright (c) 2011-2014 Matteo Landi, Luigi Rizzo, Universita` di Pisa
45 .Bl -tag -width XXXX
51 implementing a very fast and modular in-kernel software switch/dataplane;
72 35-40 Mpps on 40 Gbit/s NICs (limited by the hardware);
79 which uses unmodified device drivers and is 3-5 times faster than
98 supports both non-blocking I/O through
136 .Em ( rings )
145 the rings, and possibly implement zero-copy forwarding
174 Ports and rings are created and controlled through a file descriptor,
186 .Bl -tag -width XXXX
[all …]
/freebsd/sys/dev/netmap/
H A Dnetmap_kern.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (C) 2011-2014 Matteo Landi, Luigi Rizzo
5 * Copyright (C) 2013-2016 Universita` di Pisa
92 #define NM_MTX_T struct sx /* OS-specific mutex (sleepable) */
102 #define MBUF_LEN(m) ((m)->m_pkthdr.len)
103 #define MBUF_TXQ(m) ((m)->m_pkthdr.flowid)
104 #define MBUF_TRANSMIT(na, ifp, m) ((na)->if_transmit(ifp, m))
105 #define GEN_TX_MBUF_IFP(m) ((m)->m_pkthdr.rcvif)
106 #define GEN_TX_MBUF_NA(m) ((struct netmap_adapter *)(m)->m_ext.ext_arg1)
[all …]
H A Dnetmap_monitor.c2 * Copyright (C) 2014-2016 Giuseppe Lettieri
35 * with as many pairs of netmap rings as the monitored adapter.
36 * However, only the rx rings are actually used. Each monitor rx ring receives
37 * the traffic transiting on both the tx and rx corresponding rings in the
39 * to intercept tx only, rx only, or both tx and rx traffic.
40 * The slots containing traffic intercepted in the tx direction will have
48 * Monitors can be either zero-copy or copy-based.
52 * - For tx traffic, this is when the application sends them, before they are
55 * - For rx traffic, this is when they are received by the adapter, before
60 * Zero-copy monitors only see the frames after they have been consumed:
[all …]
H A Dnetmap_bdg.c2 * Copyright (C) 2013-2016 Universita` di Pisa
31 --- VALE SWITCH ---
44 On the rx ring, the per-port lock is grabbed initially to reserve
48 (A similar thing is done on the tx ring for NIC and host stack
54 * OS-specific code that is used only within this file.
55 * Other OS-specific code that must be accessed by drivers
114 struct nm_bridge *b = vp->na_bdg; in netmap_bdg_name()
117 return b->bdg_basename; in netmap_bdg_name()
145 int colon_pos = -1; in nm_bdg_name_validate()
149 return -1; in nm_bdg_name_validate()
[all …]
H A Dnetmap.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (C) 2011-2014 Matteo Landi
5 * Copyright (C) 2011-2016 Luigi Rizzo
6 * Copyright (C) 2011-2016 Giuseppe Lettieri
7 * Copyright (C) 2011-2016 Vincenzo Maffione
40 * The memory pool contains packet buffers and "netmap rings",
41 * i.e. user-accessible copies of the interface's queues.
65 The netmap rings and data structures may be shared among multiple
75 Within the kernel, access to the netmap rings is protected as follows:
[all …]
H A Dnetmap_pipe.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (C) 2014-2018 Giuseppe Lettieri
95 if (npipes <= na->na_max_pipes) in nm_pipe_alloc()
99 if (npipes < na->na_next_pipe || npipes > NM_MAXPIPES) in nm_pipe_alloc()
102 old_len = sizeof(struct netmap_pipe_adapter *)*na->na_max_pipes; in nm_pipe_alloc()
104 npa = nm_os_realloc(na->na_pipes, len, old_len); in nm_pipe_alloc()
108 na->na_pipes = npa; in nm_pipe_alloc()
109 na->na_max_pipes = npipes; in nm_pipe_alloc()
118 if (na->na_pipes) { in netmap_pipe_dealloc()
[all …]
H A Dnetmap_generic.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (C) 2013-2016 Vincenzo Maffione
5 * Copyright (C) 2013-2016 Luigi Rizzo
35 * have native support. TX and RX rings are emulated as follows:
38 * We preallocate a block of TX mbufs (roughly as many as
39 * tx descriptors; the number is not critical) to speed up
52 * TX:
86 #define MBUF_RXQ(m) ((m)->m_pkthdr.flowid)
93 #define MBUF_TXQ(m) 0//((m)->m_pkthdr.flowid)
[all …]
H A Dnetmap_vale.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (C) 2013-2016 Universita` di Pisa
94 * for rings and buffers.
95 * The virtual interfaces use per-queue lock instead of core lock.
96 * In the tx loop, we aggregate traffic in batches to make all operations
172 for (; likely(l > 0); l -= NM_BUF_ALIGN) { in pkt_copy()
187 * Free the forwarding tables for rings attached to switch ports.
196 nrings = na->num_tx_rings; in nm_free_bdgfwd()
197 kring = na->tx_rings; in nm_free_bdgfwd()
[all …]
H A Dnetmap_mem2.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (C) 2012-2014 Matteo Landi
5 * Copyright (C) 2012-2016 Luigi Rizzo
6 * Copyright (C) 2012-2016 Giuseppe Lettieri
98 /* ---------------------------------------------------*/
113 /* ---------------------------------------------------*/
134 #define NMA_LOCK_INIT(n) NM_MTX_INIT((n)->nm_mtx)
135 #define NMA_LOCK_DESTROY(n) NM_MTX_DESTROY((n)->nm_mtx)
136 #define NMA_LOCK(n) NM_MTX_LOCK((n)->nm_mtx)
[all …]
/freebsd/sys/dev/qat/qat_common/
H A Dadf_transport.c1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright(c) 2007-2022 Intel Corporation */
28 return data - mult; in adf_modulo()
34 if (((size - 1) & addr) != 0) in adf_check_ring_alignment()
54 mtx_lock(&bank->lock); in adf_reserve_ring()
55 if (bank->ring_mask & (1 << ring)) { in adf_reserve_ring()
56 mtx_unlock(&bank->lock); in adf_reserve_ring()
59 bank->ring_mask |= (1 << ring); in adf_reserve_ring()
60 mtx_unlock(&bank->lock); in adf_reserve_ring()
67 mtx_lock(&bank->lock); in adf_unreserve_ring()
[all …]
/freebsd/sys/dev/thunderbolt/
H A Dnhi_reg.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
42 #define GENMASK(h, l) (((~0U) >> (31 - (h))) ^ ((~0U) >> (31 - (l)) >> 1))
60 * 32 transmit and receive rings are available, with Ring 0 being the most
62 * TX and RX descriptors are packed together. There are only definitions
81 * One 32-bit status register encodes one status bit per ring indicates that
87 * TX and RX Tables. These are 32 byte control fields for each ring.
94 #define TX_TABLE_ITE (1 << 27) /* Isoch tx enable */
95 #define TX_TABLE_E2E (1 << 28) /* End-to-end flow control */
103 #define RX_TABLE_E2E (1 << 28) /* End-to-end flow control */
[all …]
/freebsd/sys/contrib/alpine-hal/
H A Dal_hal_udma.h1 /*-
10 found at http://www.gnu.org/licenses/gpl-2.0.html
60 /* *INDENT-OFF* */
64 /* *INDENT-ON* */
78 /* Statistics - TBD */
82 /* TX */
87 } tx; member
88 /* TX Meta, used by upper layer */
103 /* TX desc length and control fields */
132 /* TX/RX descriptor Target-ID field (in the buffer address 64 bit field) */
[all …]
/freebsd/sys/dev/hyperv/vmbus/
H A Dvmbus_reg.h1 /*-
41 * Hyper-V SynIC message format.
60 * Hyper-V SynIC event flags
64 #define VMBUS_EVTFLAG_MASK (VMBUS_EVTFLAG_LEN - 1)
74 * Hyper-V Monitor Notification Facility
106 * If br_windex == br_rindex, this bufring is empty; this
116 * For TX bufring, host set this to 1, when it is processing
117 * the TX bufring, so that we can safely skip the TX event
128 * WS2012/Win8 and later versions of Hyper-V implement interrupt
130 * is set by the host on the host->guest buffer ring, and by the
[all …]
/freebsd/sys/contrib/device-tree/Bindings/remoteproc/
H A Dqcom,wcnss-pil.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/remoteproc/qcom,wcnss-pil.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Bjorn Andersson <andersson@kernel.org>
21 - items:
22 - enum:
23 - qcom,pronto-v1-pil
24 - qcom,pronto-v2-pil
25 - qcom,pronto-v3-pil
[all …]
/freebsd/sys/dev/qcom_ess_edma/
H A Dqcom_ess_edma.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
77 if (ofw_bus_is_compatible(dev, "qcom,ess-edma") == 0) in qcom_ess_edma_probe()
90 if (intr->irq_res == NULL) in qcom_ess_edma_release_intr()
93 if (intr->irq_intr != NULL) in qcom_ess_edma_release_intr()
94 bus_teardown_intr(sc->sc_dev, intr->irq_res, intr->irq_intr); in qcom_ess_edma_release_intr()
95 if (intr->irq_res != NULL) in qcom_ess_edma_release_intr()
96 bus_release_resource(sc->sc_dev, SYS_RES_IRQ, intr->irq_rid, in qcom_ess_edma_release_intr()
97 intr->irq_res); in qcom_ess_edma_release_intr()
105 struct qcom_ess_edma_tx_state *txs = &sc->sc_tx_state[queue_id]; in qcom_ess_edma_tx_queue_xmit()
[all …]
/freebsd/sys/dev/xen/netback/
H A Dnetback.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2009-2011 Spectra Logic Corporation
80 #include <xen/xen-os.h>
86 /*--------------------------- Compile-time Tunables --------------------------*/
88 /*---------------------------------- Macros ----------------------------------*/
94 #define XNB_SG 1 /* netback driver supports feature-sg */
95 #define XNB_GSO_TCPV4 0 /* netback driver supports feature-gso-tcpv4 */
96 #define XNB_RX_COPY 1 /* netback driver supports feature-rx-copy */
97 #define XNB_RX_FLIP 0 /* netback driver does not support feature-rx-flip */
[all …]
/freebsd/sys/dev/qlxgb/
H A Dqla_hw.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2011-2012 Qlogic Corporation
87 dev = ha->pci_dev; in qla_hw_add_sysctls()
92 sysctl_num_rds_rings, "Number of Rcv Descriptor Rings"); in qla_hw_add_sysctls()
97 sysctl_num_sds_rings, "Number of Status Descriptor Rings"); in qla_hw_add_sysctls()
109 if (ha->hw.dma_buf.flags.context) { in qla_free_dma()
110 qla_free_dmabuf(ha, &ha->hw.dma_buf.context); in qla_free_dma()
111 ha->hw.dma_buf.flags.context = 0; in qla_free_dma()
114 if (ha->hw.dma_buf.flags.sds_ring) { in qla_free_dma()
[all …]
/freebsd/sys/dev/iwm/
H A Dif_iwm.c20 /*-
21 * Based on BSD-licensed source modules in the Linux iwlwifi driver,
34 * Copyright(c) 2007 - 2013 Intel Corporation. All rights reserved.
55 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
60 * Copyright(c) 2005 - 2013 Intel Corporation. All rights reserved.
90 /*-
91 * Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
173 #define mtodoff(m, t, off) ((t)((m)->m_data + (off)))
230 #define IWM_RIDX_MAX (nitems(iwm_rates)-1)
440 dlen < sizeof(l->size) + l->size * sizeof(*l->cs)) in iwm_store_cscheme()
[all …]
/freebsd/sys/dev/ena/
H A Dena.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2015-2024 Amazon.com, Inc. or its affiliates.
210 device_t pdev = adapter->pdev; in ena_dma_alloc()
215 maxsize = ((size - 1) / PAGE_SIZE + 1) * PAGE_SIZE; in ena_dma_alloc()
217 dma_space_addr = ENA_DMA_BIT_MASK(adapter->dma_width); in ena_dma_alloc()
232 &dma->tag); in ena_dma_alloc()
238 error = bus_dma_tag_set_domain(dma->tag, domain); in ena_dma_alloc()
245 error = bus_dmamem_alloc(dma->tag, (void **)&dma->vaddr, in ena_dma_alloc()
246 BUS_DMA_COHERENT | BUS_DMA_ZERO, &dma->map); in ena_dma_alloc()
[all …]

123