Home
last modified time | relevance | path

Searched +full:tx +full:- +full:csum +full:- +full:limit (Results 1 – 25 of 68) sorted by relevance

123

/linux/Documentation/devicetree/bindings/net/
H A Dmarvell,armada-370-neta.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/net/marvell,armada-370-neta.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Marcin Wojtas <marcin.s.wojtas@gmail.com>
13 - $ref: /schemas/net/ethernet-controller.yaml#
18 - marvell,armada-370-neta
19 - marvell,armada-xp-neta
20 - marvell,armada-3700-neta
21 - marvell,armada-ac5-neta
[all …]
/linux/drivers/net/ethernet/sun/
H A Dsungem.h1 /* SPDX-License-Identifier: GPL-2.0 */
30 #define GREG_CFG_TXDMALIM 0x0000003e /* TX DMA grant limit */
31 #define GREG_CFG_RXDMALIM 0x000007c0 /* RX DMA grant limit */
39 * This auto-clearing does not occur when the alias at GREG_STAT2
45 #define GREG_STAT_TXINTME 0x00000001 /* TX INTME frame transferred */
46 #define GREG_STAT_TXALL 0x00000002 /* All TX frames transferred */
47 #define GREG_STAT_TXDONE 0x00000004 /* One TX frame transferred */
52 #define GREG_STAT_TXMAC 0x00004000 /* TX MAC signalled interrupt */
69 * signalled to the cpu. GREG_IACK can be used to clear specific top-level
96 * This register is used to perform a global reset of the RX and TX portions
[all …]
H A Dsungem.c1 // SPDX-License-Identifier: GPL-2.0
30 #include <linux/dma-mapping.h>
92 * that their tx/rx fifos are of a different size and
93 * they only support 10/100 speeds. -DaveM
96 * the BCM54xx PHYs. -BenH
120 int limit = 10000; in __sungem_phy_read() local
127 writel(cmd, gp->regs + MIF_FRAME); in __sungem_phy_read()
129 while (--limit) { in __sungem_phy_read()
130 cmd = readl(gp->regs + MIF_FRAME); in __sungem_phy_read()
137 if (!limit) in __sungem_phy_read()
[all …]
H A Dcassini.c1 // SPDX-License-Identifier: GPL-2.0+
13 * load balancing (non-VLAN mode)
16 * page-based RX descriptor engine with separate completion rings
22 * -- driver allocates pages at a time and keeps reference counts
24 * -- the upper protocol layers assume that the header is in the skb
27 * -- driver appends the rest of the data pages as frags to skbuffs
29 * -- on page reclamation, the driver swaps the page with a spare page.
37 * TX has 4 queues. currently these queues are used in a round-robin
41 * alternatively, the queues can be configured via use of the all-purpose
49 * encrypted and non-encrypted packets, but we use them for buffering
[all …]
/linux/drivers/net/ethernet/emulex/benet/
H A Dbe.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2005 - 2016 Broadcom
7 * linux-drivers@emulex.com
31 #include <linux/hwmon-sysfs.h>
60 /* Number of bytes of an RX frame that are copied to skb->data */
67 #define BE_MAX_MTU (BE_MAX_JUMBO_FRAME_SIZE - \
71 #define BE_MAX_GSO_SIZE (65535 - 2 * VLAN_HLEN)
105 #define RX_FRAGS_REFILL_WM (RX_Q_LEN - MAX_RX_POST)
111 #define CNTL_SERIAL_NUM_WORD_SZ (sizeof(u16)) /* Byte-sz of serial num word */
134 static inline u32 MODULO(u32 val, u32 limit) in MODULO() argument
[all …]
/linux/drivers/net/ethernet/sgi/
H A Dioc3-eth.c1 // SPDX-License-Identifier: GPL-2.0
8 * o IOC3 ASIC specification 4.51, 1996-04-18
14 * o Use prefetching for large packets. What is a good lower limit for
19 * o For the 2.5 branch kill the mii-tool ioctls.
22 #define IOC3_NAME "ioc3-eth"
23 #define IOC3_VERSION "2.6.3-4"
44 #include <linux/dma-mapping.h>
46 #include <linux/nvmem-consumer.h>
61 #define RX_RING_MASK (RX_RING_ENTRIES - 1)
64 /* 128 TX buffers (not tunable) */
[all …]
/linux/Documentation/networking/device_drivers/ethernet/stmicro/
H A Dstmmac.rst1 .. SPDX-License-Identifier: GPL-2.0+
13 - In This Release
14 - Feature List
15 - Kernel Configuration
16 - Command Line Parameters
17 - Driver Information and Notes
18 - Debug Information
19 - Support
33 (and older) and DesignWare(R) Cores Ethernet Quality-of-Service version 4.0
35 DesignWare(R) Cores XGMAC - 10G Ethernet MAC and DesignWare(R) Cores
[all …]
/linux/drivers/net/usb/
H A Dsmsc95xx.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * Copyright (C) 2007-2008 SMSC
11 /* Tx command words */
17 #define TX_CMD_B_CSUM_ENABLE (0x00004000) /* TX Checksum Enable */
38 /* SCSRs - System Control and Status Registers */
53 #define INT_STS_TX_STOP_ (0x00020000) /* TX Stopped */
57 #define INT_STS_TDFU_ (0x00002000) /* TX Data FIFO Underrun */
58 #define INT_STS_TDFO_ (0x00001000) /* TX Data FIFO Overrun */
94 #define TX_FIFO_INF_FREE_ (0x0000FFFF) /* TX Data FIFO Free Space */
167 #define STRAP_STATUS_PWR_SEL_ (0x00000020) /* Device self-powered */
[all …]
/linux/drivers/net/ethernet/
H A Djme.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright (c) 2009 - 2010 Guo-Fu Tseng <cooldavid@cooldavid.org>
9 * Author: Guo-Fu Tseng <cooldavid@cooldavid.org>
35 static int force_pseudohp = -1;
36 static int no_pseudohp = -1;
37 static int no_extplug = -1;
40 "Enable pseudo hot-plug feature manually by driver instead of BIOS.");
42 MODULE_PARM_DESC(no_pseudohp, "Disable pseudo hot-plug feature.");
45 "Do not use external plug signal for pseudo hot-plug.");
59 for (i = JME_PHY_TIMEOUT * 50 ; i > 0 ; --i) { in jme_mdio_read()
[all …]
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_singleq_txrx.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * idpf_tx_singleq_csum - Enable tx checksum offloads
34 if (skb->ip_summed != CHECKSUM_PARTIAL) in idpf_tx_singleq_csum()
41 l2_len = ip.hdr - skb->data; in idpf_tx_singleq_csum()
43 is_tso = !!(off->tx_flags & IDPF_TX_FLAGS_TSO); in idpf_tx_singleq_csum()
44 if (skb->encapsulation) { in idpf_tx_singleq_csum()
48 if (off->tx_flags & IDPF_TX_FLAGS_IPV4) { in idpf_tx_singleq_csum()
57 l4_proto = ip.v4->protocol; in idpf_tx_singleq_csum()
58 } else if (off->tx_flags & IDPF_TX_FLAGS_IPV6) { in idpf_tx_singleq_csum()
61 l4_proto = ip.v6->nexthdr; in idpf_tx_singleq_csum()
[all …]
H A Didpf_txrx.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #define idpf_tx_buf_next(buf) (*(u32 *)&(buf)->priv)
14 * idpf_chk_linearize - Check if skb exceeds max descriptors per packet
37 * idpf_tx_timeout - Respond to a Tx Hang
39 * @txqueue: TX queue
45 adapter->tx_timeout_count++; in idpf_tx_timeout()
47 netdev_err(netdev, "Detected Tx timeout: Count %d, Queue %d\n", in idpf_tx_timeout()
48 adapter->tx_timeout_count, txqueue); in idpf_tx_timeout()
50 set_bit(IDPF_HR_FUNC_RESET, adapter->flags); in idpf_tx_timeout()
51 queue_delayed_work(adapter->vc_event_wq, in idpf_tx_timeout()
[all …]
/linux/drivers/net/xen-netback/
H A Dxenbus.c1 // SPDX-License-Identifier: GPL-2.0-or-later
28 struct xenvif_queue *queue = m->private; in xenvif_read_io_ring()
29 struct xen_netif_tx_back_ring *tx_ring = &queue->tx; in xenvif_read_io_ring()
30 struct xen_netif_rx_back_ring *rx_ring = &queue->rx; in xenvif_read_io_ring()
33 if (tx_ring->sring) { in xenvif_read_io_ring()
34 struct xen_netif_tx_sring *sring = tx_ring->sring; in xenvif_read_io_ring()
36 seq_printf(m, "Queue %d\nTX: nr_ents %u\n", queue->id, in xenvif_read_io_ring()
37 tx_ring->nr_ents); in xenvif_read_io_ring()
39 sring->req_prod, in xenvif_read_io_ring()
40 sring->req_prod - sring->rsp_prod, in xenvif_read_io_ring()
[all …]
/linux/drivers/net/ethernet/myricom/myri10ge/
H A Dmyri10ge.c2 * myri10ge.c: Myricom Myri-10G Ethernet driver.
4 * Copyright (C) 2005 - 2011 Myricom, Inc.
34 * http://www.myri.com/scs/download-Myri10GE.html
49 #include <linux/dma-mapping.h>
78 #define MYRI10GE_VERSION_STR "1.5.3-1.534"
135 int mask; /* number of rx slots -1 */
146 int mask; /* number of transmit slots -1 */
174 struct myri10ge_tx_buf tx; /* transmit ring */ member
274 {[0 ... (MYRI10GE_MAX_BOARDS - 1)] = NULL };
281 MODULE_PARM_DESC(myri10ge_ecrc_enable, "Enable Extended CRC on PCI-E");
[all …]
/linux/drivers/net/ethernet/alacritech/
H A Dslicoss.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #include <linux/dma-mapping.h>
66 return (idx + 1) & (qlen - 1); in slic_next_queue_idx()
74 return (qlen - (put_idx - done_idx) - 1); in slic_get_free_queue_descs()
75 return (done_idx - put_idx - 1); in slic_get_free_queue_descs()
80 struct slic_stat_queue *stq = &sdev->stq; in slic_next_compl_idx()
81 unsigned int active = stq->active_array; in slic_next_compl_idx()
86 descs = stq->descs[active]; in slic_next_compl_idx()
87 stat = &descs[stq->done_idx]; in slic_next_compl_idx()
89 if (!stat->status) in slic_next_compl_idx()
[all …]
/linux/drivers/net/ethernet/pasemi/
H A Dpasemi_mac.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2006-2007 PA Semi, Inc
17 #include <asm/dma-mapping.h>
40 * - Multicast support
41 * - Large MTU support
42 * - Multiqueue RX/TX
63 static int debug = -1; /* -1 == use DEFAULT_MSG_ENABLE as value */
85 return pasemi_read_mac_reg(mac->dma_if, reg); in read_mac_reg()
91 pasemi_write_mac_reg(mac->dma_if, reg, val); in write_mac_reg()
106 return mac->rx; in rx_ring()
[all …]
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_cmn.c3 * Copyright (c) 2007-2013 Broadcom Corporation
14 * UDP CSUM errata workaround by Arik Gendelman
47 netif_napi_add(bp->dev, &bnx2x_fp(bp, i, napi), bnx2x_poll); in bnx2x_add_all_napi_cnic()
57 netif_napi_add(bp->dev, &bnx2x_fp(bp, i, napi), bnx2x_poll); in bnx2x_add_all_napi()
74 * bnx2x_move_fp - move content of the fastpath structure.
80 * Makes sure the contents of the bp->fp[to].napi is kept
88 struct bnx2x_fastpath *from_fp = &bp->fp[from]; in bnx2x_move_fp()
89 struct bnx2x_fastpath *to_fp = &bp->fp[to]; in bnx2x_move_fp()
90 struct bnx2x_sp_objs *from_sp_objs = &bp->sp_objs[from]; in bnx2x_move_fp()
91 struct bnx2x_sp_objs *to_sp_objs = &bp->sp_objs[to]; in bnx2x_move_fp()
[all …]
/linux/include/uapi/linux/
H A Dethtool.h1 /* 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/hisilicon/hns3/
H A Dhns3_enet.c1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright (c) 2016-2017 Hisilicon Limited.
4 #include <linux/dma-mapping.h>
55 static int debug = -1;
80 /* hns3_pci_tbl - PCI Device ID Table
388 napi_schedule_irqoff(&tqp_vector->napi); in hns3_irq_handle()
389 tqp_vector->event_cnt++; in hns3_irq_handle()
399 for (i = 0; i < priv->vector_num; i++) { in hns3_nic_uninit_irq()
400 tqp_vectors = &priv->tqp_vector[i]; in hns3_nic_uninit_irq()
402 if (tqp_vectors->irq_init_flag != HNS3_VECTOR_INITED) in hns3_nic_uninit_irq()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dfarch.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright 2005-2006 Fen Systems Ltd.
5 * Copyright 2006-2013 Solarflare Communications Inc.
27 /* Falcon-architecture (SFC9000-family) support */
40 * that we only get 1 TX event per descriptor cache means the NIC
69 _EFX_CHANNEL_MAGIC(_EFX_CHANNEL_MAGIC_TEST, (_channel)->channel)
78 (_tx_queue)->queue)
91 efx_sram_writeq(efx, efx->membase + efx->type->buf_tbl_base, in efx_write_buf_tbl()
98 return ((a->u64[0] ^ b->u64[0]) & mask->u64[0]) || in efx_masked_compare_oword()
99 ((a->u64[1] ^ b->u64[1]) & mask->u64[1]); in efx_masked_compare_oword()
[all …]
/linux/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_eth.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later
3 * Copyright 2008 - 2016 Freescale Semiconductor Inc.
29 #include <linux/dma-mapping.h>
46 static int debug = -1;
52 MODULE_PARM_DESC(tx_timeout, "The Tx timeout in ms");
71 * The size in bytes of the ingress tail-drop threshold on FMan ports.
82 * 1G ports. The 1G dTSECs can quite easily be flooded by cores doing Tx in a
86 * - avoiding the device staying congested for a prolonged time (risking
87 * the netdev watchdog to fire - see also the tx_timeout module param);
88 * - affecting performance of protocols such as TCP, which otherwise
[all …]
/linux/drivers/net/
H A Dvirtio_net.c1 // SPDX-License-Identifier: GPL-2.0-or-later
33 static bool csum = true, gso = true, napi_tx = true; variable
34 module_param(csum, bool, 0444);
41 #define VIRTIO_O2F_DELTA (VIRTIO_FEATURES_MAP_MIN - \
67 * at once, the weight is chosen so that the EWMA will be insensitive to short-
134 #define VIRTNET_SQ_STAT(name, m) {name, offsetof(struct virtnet_sq_stats, m), -1}
135 #define VIRTNET_RQ_STAT(name, m) {name, offsetof(struct virtnet_rq_stats, m), -1}
180 {#name, offsetof(struct virtio_net_stats_cvq, name), -1}
183 {#name, offsetof(struct virtio_net_stats_rx_ ## class, rx_ ## name), -1}
186 {#name, offsetof(struct virtio_net_stats_tx_ ## class, tx_ ## name), -1}
[all …]
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_main.c1 // SPDX-License-Identifier: GPL-2.0-only
3 This is the driver for the ST MAC 10/100/1000 on-chip Ethernet controllers.
6 Copyright(C) 2007-2011 STMicroelectronics Ltd
29 #include <linux/dma-mapping.h>
57 * with fine resolution and binary rollover. This avoid non-monotonic behavior
64 #define TSO_MAX_BUFF_SIZE (SZ_16K - 1)
72 static int debug = -1;
74 MODULE_PARM_DESC(debug, "Message Level (-1: default, 0: no output, 16: all)");
76 static int phyaddr = -1;
80 #define STMMAC_TX_THRESH(x) ((x)->dma_conf.dma_tx_size / 4)
[all …]
/linux/drivers/net/ethernet/packetengines/
H A Dhamachi.c1 /* 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/include/xen/interface/io/
H A Dnetif.h1 /* SPDX-License-Identifier: MIT */
5 * Unified network-device I/O interface for Xen guest OSes.
7 * Copyright (c) 2003-2004, Keir Fraser
38 * feature 'feature-rx-notify' via xenbus. Otherwise the backend will assume
43 * "feature-split-event-channels" is introduced to separate guest TX
48 * channels for TX and RX, advertise them to backend as
49 * "event-channel-tx" and "event-channel-rx" respectively. If frontend
50 * doesn't want to use this feature, it just writes "event-channel"
56 * If supported, the backend will write the key "multi-queue-max-queues" to
60 * key "multi-queue-num-queues", set to the number they wish to use, which
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_txrx.c1 // SPDX-License-Identifier: GPL-2.0
26 * ice_prgm_fdir_fltr - Program a Flow Director filter
44 /* VSI and Tx ring */ in ice_prgm_fdir_fltr()
46 return -ENOENT; in ice_prgm_fdir_fltr()
47 tx_ring = vsi->tx_rings[0]; in ice_prgm_fdir_fltr()
48 if (!tx_ring || !tx_ring->desc) in ice_prgm_fdir_fltr()
49 return -ENOENT; in ice_prgm_fdir_fltr()
50 dev = tx_ring->dev; in ice_prgm_fdir_fltr()
53 for (i = ICE_FDIR_CLEAN_DELAY; ICE_DESC_UNUSED(tx_ring) < 2; i--) { in ice_prgm_fdir_fltr()
55 return -EAGAIN; in ice_prgm_fdir_fltr()
[all …]

123