| /linux/tools/net/ynl/samples/ |
| H A D | ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include "ethtool-user.h" 16 struct ethtool_rings_get_list *rings; in main() local 23 creq._present.header = 1; /* ethtool needs an empty nest, sigh */ in main() 30 printf(" %8s: ", dev->header.dev_name); in main() 31 if (dev->_present.rx_count) in main() 32 printf("rx %d ", dev->rx_count); in main() 33 if (dev->_present.tx_count) in main() 34 printf("tx %d ", dev->tx_count); in main() 35 if (dev->_present.combined_count) in main() [all …]
|
| /linux/Documentation/networking/ |
| H A D | af_xdp.rst | 1 .. SPDX-License-Identifier: GPL-2.0 20 XDP programs to redirect frames to a memory buffer in a user-space 24 syscall. Associated with each XSK are two rings: the RX ring and the 25 TX ring. A socket can receive packets on the RX ring and it can send 26 packets on the TX ring. These rings are registered and sized with the 28 to have at least one of these rings for each socket. An RX or TX 30 UMEM. RX and TX can share the same UMEM so that a packet does not have 31 to be copied between RX and TX. Moreover, if a packet needs to be kept 37 one of the rings references a frame by referencing its addr. The addr 42 UMEM also has two rings: the FILL ring and the COMPLETION ring. The [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/haswellx/ |
| H A D | uncore-interconnect.json | 111 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Atomic Transactions as Secondary", 116 "PublicDescription": "Counts Timeouts - Set 0 : Cache Inserts of Atomic Transactions as Secondary", 121 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Read Transactions as Secondary", 126 "PublicDescription": "Counts Timeouts - Set 0 : Cache Inserts of Read Transactions as Secondary", 131 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Write Transactions as Secondary", 136 "PublicDescription": "Counts Timeouts - Set 0 : Cache Inserts of Write Transactions as Secondary", 141 "BriefDescription": "Misc Events - Set 0; Fastpath Rejects", 146 "PublicDescription": "Counts Timeouts - Set 0 : Fastpath Rejects", 151 "BriefDescription": "Misc Events - Set 0; Fastpath Requests", 156 "PublicDescription": "Counts Timeouts - Se [all...] |
| /linux/tools/perf/pmu-events/arch/x86/broadwellx/ |
| H A D | uncore-interconnect.json | 111 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Atomic Transactions as Secondary", 116 "PublicDescription": "Counts Timeouts - Set 0 : Cache Inserts of Atomic Transactions as Secondary", 121 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Read Transactions as Secondary", 126 "PublicDescription": "Counts Timeouts - Set 0 : Cache Inserts of Read Transactions as Secondary", 131 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Write Transactions as Secondary", 136 "PublicDescription": "Counts Timeouts - Set 0 : Cache Inserts of Write Transactions as Secondary", 141 "BriefDescription": "Misc Events - Set 0; Fastpath Rejects", 146 "PublicDescription": "Counts Timeouts - Set 0 : Fastpath Rejects", 151 "BriefDescription": "Misc Events - Set 0; Fastpath Requests", 156 "PublicDescription": "Counts Timeouts - Se [all...] |
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_ctrl.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */ 17 /* 64-bit per app capabilities */ 23 * THB-350, 32k needs to be reserved. 51 #define NFP_NET_META_IPSEC 9 /* IPsec SA index for tx and rx */ 61 /* Hash type pre-pended when a RSS hash was computed */ 74 * %NFP_NET_TXR_MAX: Maximum number of TX rings 75 * %NFP_NET_RXR_MAX: Maximum number of RX rings 80 /* Read/Write config words (0x0000 - 0x002c) 83 * %NFP_NET_CFG_TXRS_ENABLE: Bitmask of enabled TX rings [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/jaketown/ |
| H A D | uncore-interconnect.json | 164 "BriefDescription": "BL Ingress Occupancy - DRS", 189 "BriefDescription": "BL Ingress Occupancy - NCB", 214 "BriefDescription": "BL Ingress Occupancy - NCS", 256 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 266 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 276 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 331 …er of cycles when there are pending write ACK's in the switch but the switch->IRP pipeline is not … 353 "BriefDescription": "Direct 2 Core Spawning; Spawn Failure - Egress Credits", 363 "BriefDescription": "Direct 2 Core Spawning; Spawn Failure - Egress and RBT", 373 "BriefDescription": "Direct 2 Core Spawning; Spawn Failure - RBT Not Set", [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/skylakex/ |
| H A D | uncore-interconnect.json | 157 "BriefDescription": "FAF allocation -- sent to ADQ", 186 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Atomic Transactions as Secondary", 196 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Read Transactions as Secondary", 206 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Write Transactions as Secondary", 216 "BriefDescription": "Misc Events - Set 0; Fastpath Rejects", 226 "BriefDescription": "Misc Events - Set 0; Fastpath Requests", 236 "BriefDescription": "Misc Events - Set 0; Fastpath Transfers From Primary to Secondary", 246 "BriefDescription": "Misc Events - Set 0; Prefetch Ack Hints From Primary to Secondary", 256 "BriefDescription": "Misc Events - Se [all...] |
| /linux/tools/perf/pmu-events/arch/x86/cascadelakex/ |
| H A D | uncore-interconnect.json | 157 "BriefDescription": "FAF allocation -- sent to ADQ", 186 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Atomic Transactions as Secondary", 196 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Read Transactions as Secondary", 206 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Write Transactions as Secondary", 216 "BriefDescription": "Misc Events - Set 0; Fastpath Rejects", 226 "BriefDescription": "Misc Events - Set 0; Fastpath Requests", 236 "BriefDescription": "Misc Events - Set 0; Fastpath Transfers From Primary to Secondary", 246 "BriefDescription": "Misc Events - Set 0; Prefetch Ack Hints From Primary to Secondary", 256 "BriefDescription": "Misc Events - Se [all...] |
| /linux/drivers/net/ethernet/google/gve/ |
| H A D | gve.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) 4 * Copyright (C) 2015-2024 Google LLC 10 #include <linux/dma-mapping.h> 35 /* 1 for management, 1 for rx, 1 for tx */ 38 /* Numbers of gve tx/rx stats in stats report. */ 45 /* Numbers of NIC tx/rx stats in stats report. */ 51 #define GVE_DATA_SLOT_ADDR_PAGE_MASK (~(PAGE_SIZE - 1)) 73 (GVE_ADMINQ_BUFFER_SIZE / sizeof(((struct gve_adminq_queried_flow_rule *)0)->location)) 91 /* 2K buffers for DQO-QPL */ 97 * allocs and uses a non-qpl page on the receive path of DQO QPL to free [all …]
|
| /linux/drivers/net/ethernet/sun/ |
| H A D | cassini.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 19 * rings are all offset from 0. 29 /* cassini register map: 2M memory mapped in 32-bit memory space accessible as 30 * 32-bit words. there is no i/o port access. REG_ addresses are 42 * if rx weight == 1 and tx weight == 0, rx == 2x tx transfer credit 62 /* top level interrupts [0-9] are auto-cleared to 0 when the status 63 * register is read. second level interrupts [13 - 18] are cleared at 64 * the source. tx completion register 3 is replicated in [19 - 31] 70 TX FIFO */ 72 TX FIFO. i.e., [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/icelakex/ |
| H A D | uncore-interconnect.json | 111 "BriefDescription": "FAF allocation -- sent to ADQ", 148 … "BriefDescription": "Counts Timeouts - Set 0 : Cache Inserts of Atomic Transactions as Secondary", 158 … "BriefDescription": "Counts Timeouts - Set 0 : Cache Inserts of Read Transactions as Secondary", 168 … "BriefDescription": "Counts Timeouts - Set 0 : Cache Inserts of Write Transactions as Secondary", 178 "BriefDescription": "Counts Timeouts - Set 0 : Fastpath Rejects", 188 "BriefDescription": "Counts Timeouts - Set 0 : Fastpath Requests", 198 … "BriefDescription": "Counts Timeouts - Set 0 : Fastpath Transfers From Primary to Secondary", 208 … "BriefDescription": "Counts Timeouts - Set 0 : Prefetch Ack Hints From Primary to Secondary", 218 "BriefDescription": "Counts Timeouts - Set 0 : Slow path fwpf didn't find prefetch", 228 "BriefDescription": "Misc Events - Set 1 : Lost Forward", [all …]
|
| /linux/drivers/net/ethernet/qualcomm/emac/ |
| H A D | emac-mac.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved. 5 /* EMAC DMA HW engine uses three rings: 6 * Tx: 10 * Ring of descriptors with empty buffers to be filled by Rx HW. 52 #define RRD_NOR(rrd) BITS_GET((rrd)->word[0], 16, 19) 53 /* start consumer index of rfd-ring */ 54 #define RRD_SI(rrd) BITS_GET((rrd)->word[0], 20, 31) 55 /* vlan-tag (CVID, CFI and PRI) */ 56 #define RRD_CVALN_TAG(rrd) BITS_GET((rrd)->word[2], 0, 15) [all …]
|
| /linux/arch/mips/include/asm/sn/ |
| H A D | ioc3.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 50 u8 fill0[0x151 - 0x142 - 1]; 56 u8 fill1[0x159 - 0x153 - 1]; 62 u8 fill2[0x16a - 0x15b - 1]; 67 u8 fill3[0x170 - 0x16b - 1]; 153 u32 pad1[(0x20000 - 0x00154) / 4]; 157 u32 pad2[(0x40000 - 0x20180) / 4]; 160 u32 ssram[(0x80000 - 0x40000) / 4]; 163 0x80000 - Access to the generic devices selected with DEV0 165 0xA0000 - Access to the generic devices selected with DEV1 [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/ivytown/ |
| H A D | uncore-interconnect.json | 164 "BriefDescription": "BL Ingress Occupancy - DRS", 189 "BriefDescription": "BL Ingress Occupancy - NCB", 214 "BriefDescription": "BL Ingress Occupancy - NCS", 236 …ny requests behind it in the switch queue will lose ownership and have to re-acquire it later when… 256 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 266 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 276 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 286 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 341 …er of cycles when there are pending write ACK's in the switch but the switch->IRP pipeline is not … 363 "BriefDescription": "Direct 2 Core Spawning; Spawn Failure - Egress Credits", [all …]
|
| /linux/drivers/net/ethernet/packetengines/ |
| H A D | yellowfin.c | 1 /* yellowfin.c: A Packet Engines G-NIC ethernet driver for linux. */ 3 Written 1997-2001 by Donald Becker. 12 This driver is for the Packet Engines G-NIC PCI Gigabit Ethernet adapter. 22 [link no longer provides useful info -jgarzik] 32 /* The user-configurable values. 40 /* System-wide count of bogus-rx frames. */ 43 static int fifo_cfg = 0x0020; /* Bypass external Tx FIFO. */ 44 #elif defined(YF_NEW) /* A future perfect board :->. */ 49 static const int fifo_cfg = 0x0020; /* Bypass external Tx FIFO. */ 52 /* Set the copy breakpoint for the copy-only-tiny-frames scheme. [all …]
|
| H A D | hamachi.c | 1 /* hamachi.c: A Packet Engines GNIC-II Gigabit Ethernet driver for Linux. */ 3 Written 1998-2000 by Donald Becker. 18 This driver is for the Packet Engines GNIC-II PCI Gigabit Ethernet 23 [link no longer provides useful info -jgarzik] 34 /* A few user-configurable values. */ 42 /* Default values selected by testing on a dual processor PIII-450 */ 53 /* Set the copy breakpoint for the copy-only-tiny-frames scheme. 54 -Setting to > 1518 causes all frames to be copied 55 -Setting to 0 disables copies 69 - The lower 4 bits are reserved for the media type. [all …]
|
| /linux/drivers/net/ethernet/hisilicon/hns3/ |
| H A D | hns3_enet.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 // Copyright (c) 2016-2017 Hisilicon Limited. 70 ((max_frm_size) - (ETH_HLEN + ETH_FCS_LEN + 2 * VLAN_HLEN)) 293 } tx; member 337 u32 send_bytes; /* for tx */ 481 u32 buf_size; /* size for hnae_desc->addr, preset by AE */ 485 /* idx of lastest sent desc, the ring is empty when equal to 493 /* for Tx ring */ 544 /* array of pointers to rings */ 631 int begin = smp_load_acquire(&ring->next_to_clean); in ring_space() [all …]
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 15 * struct iavf_stats - definition for an ethtool statistic 16 * @stat_string: statistic name to display in ethtool -S output 56 /* Stats associated with a Tx or Rx ring */ 58 IAVF_QUEUE_STAT("%s-%u.packets", stats.packets), 59 IAVF_QUEUE_STAT("%s-%u.bytes", stats.bytes), 63 * iavf_add_one_ethtool_stat - copy the stat into the supplied buffer 86 p = (char *)pointer + stat->stat_offset; in iavf_add_one_ethtool_stat() 87 switch (stat->sizeof_stat) { in iavf_add_one_ethtool_stat() [all …]
|
| /linux/drivers/net/ethernet/intel/fm10k/ |
| H A D | fm10k_netdev.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2019 Intel Corporation. */ 10 * fm10k_setup_tx_resources - allocate Tx resources (Descriptors) 11 * @tx_ring: tx descriptor ring (for a specific queue) to setup 17 struct device *dev = tx_ring->dev; in fm10k_setup_tx_resources() 20 size = sizeof(struct fm10k_tx_buffer) * tx_ring->count; in fm10k_setup_tx_resources() 22 tx_ring->tx_buffer = vzalloc(size); in fm10k_setup_tx_resources() 23 if (!tx_ring->tx_buffer) in fm10k_setup_tx_resources() 26 u64_stats_init(&tx_ring->syncp); in fm10k_setup_tx_resources() 29 tx_ring->size = tx_ring->count * sizeof(struct fm10k_tx_desc); in fm10k_setup_tx_resources() [all …]
|
| /linux/Documentation/networking/device_drivers/ethernet/amazon/ |
| H A D | ena.rst | 1 .. SPDX-License-Identifier: GPL-2.0 17 The driver supports a range of ENA devices, is link-speed independent 21 Some ENA devices support SR-IOV. This driver is used for both the 22 SR-IOV Physical Function (PF) and Virtual Function (VF) devices. 25 processing by providing multiple Tx/Rx queue pairs (the maximum number 26 is advertised by the device via the Admin Queue), a dedicated MSI-X 27 interrupt vector per Tx/Rx queue pair, adaptive interrupt moderation, 31 checksum offload. Receive-side scaling (RSS) is supported for multi-core 39 Some of the ENA devices support a working mode called Low-latency 50 ena_eth_com.[ch] Tx/Rx data path. [all …]
|
| /linux/drivers/net/wireless/ath/wcn36xx/ |
| H A D | main.c | 190 return NL80211_IFTYPE_STATION == vif->type ? in get_sta_index() 191 sta_priv->bss_sta_index : in get_sta_index() 192 sta_priv->sta_index; in get_sta_index() 200 if (wcn36xx_firmware_get_feat_caps(wcn->fw_feat_caps, i)) { in wcn36xx_feat_caps_info() 209 struct wcn36xx *wcn = hw->priv; in wcn36xx_start() 263 INIT_LIST_HEAD(&wcn->vif_list); in wcn36xx_start() 264 spin_lock_init(&wcn->dxe_lock); in wcn36xx_start() 265 spin_lock_init(&wcn->survey_lock); in wcn36xx_start() 283 struct wcn36xx *wcn = hw->priv; in wcn36xx_stop() 287 mutex_lock(&wcn->scan_lock); in wcn36xx_stop() [all …]
|
| /linux/drivers/net/ethernet/dlink/ |
| H A D | sundance.c | 3 Written 1999-2000 by Donald Becker. 19 [link no longer provides useful info -jgarzik] 27 /* The user-configurable values. 30 /* Maximum number of multicast addresses to filter (vs. rx-all-multicast). 34 /* Set the copy breakpoint for the copy-only-tiny-frames scheme. 37 need a copy-align. */ 61 Making the Tx ring too large decreases the effectiveness of channel 63 Tx error recovery. 64 Large receive rings merely waste memory. */ 66 #define TX_QUEUE_LEN (TX_RING_SIZE - 1) /* Limit ring entries actually used. */ [all …]
|
| /linux/include/uapi/linux/ |
| H A D | ethtool.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 26 * have the same layout for 32-bit and 64-bit userland. 38 * struct ethtool_cmd - DEPRECATED, link control and status 43 * interface supports autonegotiation or auto-detection. 44 * Read-onl [all...] |
| /linux/drivers/net/ethernet/intel/ixgbevf/ |
| H A D | ixgbevf_main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2024 Intel Corporation. */ 5 Copyright (c)2006 - 2007 Myricom, Inc. for some LRO specific code 42 "Copyright (c) 2009 - 2024 Intel Corporation."; 58 /* ixgbevf_pci_tbl - PCI Device ID Table 88 static int debug = -1; 96 if (!test_bit(__IXGBEVF_DOWN, &adapter->state) && in ixgbevf_service_event_schedule() 97 !test_bit(__IXGBEVF_REMOVING, &adapter->state) && in ixgbevf_service_event_schedule() 98 !test_and_set_bit(__IXGBEVF_SERVICE_SCHED, &adapter->state)) in ixgbevf_service_event_schedule() 99 queue_work(ixgbevf_wq, &adapter->service_task); in ixgbevf_service_event_schedule() [all …]
|
| /linux/drivers/net/ethernet/synopsys/ |
| H A D | dwc-xlgmac-net.c | 5 * This program is dual-licensed; you may select either version 2 of 22 #include "dwc-xlgmac.h" 23 #include "dwc-xlgmac-reg.h" 30 return (ring->dma_desc_count - (ring->cur - ring->dirty)); in xlgmac_tx_avail_desc() 35 return (ring->cur - ring->dirty); in xlgmac_rx_dirty_desc() 43 struct xlgmac_pdata *pdata = channel->pdata; in xlgmac_maybe_stop_tx_queue() 46 netif_info(pdata, drv, pdata->netdev, in xlgmac_maybe_stop_tx_queue() 47 "Tx queue stopped, not enough descriptors available\n"); in xlgmac_maybe_stop_tx_queue() 48 netif_stop_subqueue(pdata->netdev, channel->queue_index); in xlgmac_maybe_stop_tx_queue() 49 ring->tx.queue_stopped = 1; in xlgmac_maybe_stop_tx_queue() [all …]
|