Home
last modified time | relevance | path

Searched +full:hw +full:- +full:gro (Results 1 – 25 of 45) sorted by relevance

12

/linux-6.15/Documentation/netlink/specs/
Dnetdev.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
9 -
11 name: xdp-act
12 render-max: true
14 -
19 -
23 -
24 name: ndo-xmit
27 -
28 name: xsk-zerocopy
[all …]
Drt_link.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 name: rt-link
4 protocol: netlink-raw
11 -
12 name: ifinfo-flags
15 -
17 -
19 -
21 -
23 -
[all …]
/linux-6.15/Documentation/networking/
Dnetdev-features.rst1 .. SPDX-License-Identifier: GPL-2.0
8 Michał Mirosław <mirq-linux@rere.qmqm.pl>
24 1. netdev->hw_features set contains features whose state may possibly
29 2. netdev->features set contains features which are currently enabled
33 3. netdev->vlan_features set contains features whose state is inherited
34 by child VLAN devices (limits netdev->features set). This is currently
38 4. netdev->wanted_features set contains feature set requested by user.
40 some device-specific conditions change. This set is internal to
48 When current feature set (netdev->features) is to be changed, new set
52 returns success) replaces value stored in netdev->features.
[all …]
Dtls-offload.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
13 For details regarding the user-facing interface refer to the TLS
18 * Software crypto mode (``TLS_SW``) - CPU handles the cryptography.
24 * Packet-based NIC offload mode (``TLS_HW``) - the NIC handles crypto
28 (``ethtool`` flags ``tls-hw-tx-offload`` and ``tls-hw-rx-offload``).
29 * Full TCP NIC offload mode (``TLS_HW_RECORD``) - mode of operation where
33 abilities or QoS and packet scheduling (``ethtool`` flag ``tls-hw-record``).
36 offload opt-in or opt-out on per-connection basis is not currently supported.
39 --
52 --
[all …]
/linux-6.15/include/linux/
Dnetdev_features.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
22 NETIF_F_HW_VLAN_CTAG_TX_BIT, /* Transmit VLAN CTAG HW acceleration */
23 NETIF_F_HW_VLAN_CTAG_RX_BIT, /* Receive VLAN CTAG HW acceleration */
35 NETIF_F_GSO_ROBUST_BIT, /* ... ->SKB_GSO_DODGY */
46 NETIF_F_GSO_PARTIAL_BIT, /* ... Only segment inner-most L4
62 NETIF_F_NTUPLE_BIT, /* N-tuple filters supported */
65 NETIF_F_NOCACHE_COPY_BIT, /* Use no-cache copyfromuser */
69 NETIF_F_HW_VLAN_STAG_TX_BIT, /* Transmit VLAN STAG HW acceleration */
70 NETIF_F_HW_VLAN_STAG_RX_BIT, /* Receive VLAN STAG HW acceleration */
83 NETIF_F_GRO_FRAGLIST_BIT, /* Fraglist GRO */
[all …]
Dnetdevice.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
13 * Corey Minyard <wf-rch!minyard@relay.EU.net>
54 #include <net/dropreason-core.h>
105 * - qdisc return codes
106 * - driver transmit return codes
107 * - errno values
111 * the driver transmit return codes though - when qdiscs are used, the actual
118 /* qdisc ->enqueue() return codes. */
128 #define net_xmit_errno(e) ((e) != NET_XMIT_CN ? -ENOBUFS : 0)
148 * - successful transmission (rc == NETDEV_TX_OK) in dev_xmit_complete()
[all …]
/linux-6.15/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
Dcounters.rst1 .. SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
13 - `Overview`_
14 - `Groups`_
15 - `Types`_
16 - `Descriptions`_
27 ----------------------------------------
29 ---------------------------------------- ---------------------------------------- |
32 | ------------------- --------------- | | ------------------- --------------- | |
34 | ------------------- --------------- | | ------------------- --------------- | |
36 | ------------------- | | ------------------- | |
[all …]
/linux-6.15/drivers/net/ethernet/fungible/funeth/
Dfuneth_txrx.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
40 #define FUNETH_CQE_INFO_OFFSET (FUNETH_CQE_SIZE - sizeof(struct fun_cqe_info))
55 /* Per packet tailroom. Present only for 1-frag packets. */
84 u64 tx_tso; /* # of non-encapsulated TSO super-packets */
85 u64 tx_encap_tso; /* # of encapsulated TSO super-packets */
86 u64 tx_uso; /* # of non-encapsulated UDP LSO super-packets */
92 u64 tx_tls_pkts; /* # of Tx TLS packets offloaded to HW */
93 u64 tx_tls_bytes; /* Tx bytes of HW-handled TLS payload */
107 u32 mask; /* queue depth - 1 */
112 volatile __be64 *hw_wb; /* HW write-back location */
[all …]
/linux-6.15/net/ipv6/
Dudp_offload.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * IPV6 GSO/GRO offload support
16 #include <net/gro.h>
22 struct sk_buff *segs = ERR_PTR(-EINVAL); in udp6_ufo_fragment()
33 if (skb->encapsulation && skb_shinfo(skb)->gso_type & in udp6_ufo_fragment()
40 if (!(skb_shinfo(skb)->gso_type & (SKB_GSO_UDP | SKB_GSO_UDP_L4))) in udp6_ufo_fragment()
46 if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) in udp6_ufo_fragment()
49 mss = skb_shinfo(skb)->gso_size; in udp6_ufo_fragment()
50 if (unlikely(skb->len <= mss)) in udp6_ufo_fragment()
53 /* Do software UFO. Complete and fill in the UDP checksum as HW cannot in udp6_ufo_fragment()
[all …]
/linux-6.15/net/ethtool/
Dcommon.c1 // SPDX-License-Identifier: GPL-2.0-only
17 [NETIF_F_SG_BIT] = "tx-scatter-gather",
18 [NETIF_F_IP_CSUM_BIT] = "tx-checksum-ipv4",
19 [NETIF_F_HW_CSUM_BIT] = "tx-checksum-ip-generic",
20 [NETIF_F_IPV6_CSUM_BIT] = "tx-checksum-ipv6",
22 [NETIF_F_FRAGLIST_BIT] = "tx-scatter-gather-fraglist",
23 [NETIF_F_HW_VLAN_CTAG_TX_BIT] = "tx-vlan-hw-insert",
25 [NETIF_F_HW_VLAN_CTAG_RX_BIT] = "rx-vlan-hw-parse",
26 [NETIF_F_HW_VLAN_CTAG_FILTER_BIT] = "rx-vlan-filter",
27 [NETIF_F_HW_VLAN_STAG_TX_BIT] = "tx-vlan-stag-hw-insert",
[all …]
/linux-6.15/net/ipv4/
Dudp_offload.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * IPV4 GSO/GRO offload support
10 #include <net/gro.h>
22 int tnl_hlen = skb_inner_mac_header(skb) - skb_transport_header(skb); in __skb_udp_tunnel_segment()
24 struct sk_buff *segs = ERR_PTR(-EINVAL); in __skb_udp_tunnel_segment()
26 u16 mac_offset = skb->mac_header; in __skb_udp_tunnel_segment()
27 __be16 protocol = skb->protocol; in __skb_udp_tunnel_segment()
28 u16 mac_len = skb->mac_len; in __skb_udp_tunnel_segment()
37 * We cannot rely on the value contained in uh->len as it is in __skb_udp_tunnel_segment()
40 * IP or IPv6 frame that was already limited to 64K - 1. in __skb_udp_tunnel_segment()
[all …]
/linux-6.15/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
3 * Copyright (c) 2015-2017 QLogic Corporation
4 * Copyright (c) 2019-2020 Marvell International Ltd.
13 #include <net/gro.h>
34 /* In case lazy-allocation is allowed, postpone allocation until the in qede_alloc_rx_buffer()
38 if (allow_lazy && likely(rxq->filled_buffers > 12)) { in qede_alloc_rx_buffer()
39 rxq->filled_buffers--; in qede_alloc_rx_buffer()
45 return -ENOMEM; in qede_alloc_rx_buffer()
50 mapping = dma_map_page(rxq->dev, data, 0, in qede_alloc_rx_buffer()
51 PAGE_SIZE, rxq->data_direction); in qede_alloc_rx_buffer()
[all …]
Dqede.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
3 * Copyright (c) 2015-2017 QLogic Corporation
4 * Copyright (c) 2019-2020 Marvell International Ltd.
177 &(edev)->flags)
184 #define QEDE_MAX_RSS_CNT(edev) ((edev)->dev_info.num_queues)
185 #define QEDE_MAX_TSS_CNT(edev) ((edev)->dev_info.num_queues)
187 ((edev)->dev_info.common.dev_type == QED_DEV_TYPE_BB)
189 ((edev)->dev_info.common.dev_type == QED_DEV_TYPE_AH)
201 #define QEDE_QUEUE_CNT(edev) ((edev)->num_queues)
202 #define QEDE_RSS_COUNT(edev) ((edev)->num_queues - (edev)->fp_num_tx)
[all …]
/linux-6.15/drivers/net/ethernet/intel/ice/
Dice_txrx_lib.c1 // SPDX-License-Identifier: GPL-2.0
12 * ice_release_rx_desc - Store the new tail and head values
18 u16 prev_ntu = rx_ring->next_to_use & ~0x7; in ice_release_rx_desc()
20 rx_ring->next_to_use = val; in ice_release_rx_desc()
23 rx_ring->next_to_alloc = val; in ice_release_rx_desc()
34 * applicable for weak-ordered memory model archs, in ice_release_rx_desc()
35 * such as IA-64). in ice_release_rx_desc()
38 writel(val, rx_ring->tail); in ice_release_rx_desc()
43 * ice_get_rx_hash - get RX hash value from descriptor
52 if (unlikely(rx_desc->wb.rxdid != ICE_RXDID_FLEX_NIC)) in ice_get_rx_hash()
[all …]
/linux-6.15/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.h3 * Copyright (c) 2007-2013 Broadcom Corporation
32 extern int bnx2x_load_count[2][3]; /* per-path: 0-common, 1-port0, 2-port1 */
39 dma_free_coherent(&bp->pdev->dev, size, (void *)x, y); \
55 void *x = dma_alloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL); \
64 void *x = dma_alloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL); \
80 * bnx2x_send_unload_req - request unload mode from the MCP.
90 * bnx2x_send_unload_done - send UNLOAD_DONE command to the MCP.
98 * bnx2x_config_rss_pf - configure RSS parameters in a PF.
103 * @config_hash: re-configure RSS hash keys configuration
110 * bnx2x__init_func_obj - init function object
[all …]
Dbnx2x_cmn.c3 * Copyright (c) 2007-2013 Broadcom Corporation
28 #include <net/gro.h>
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-6.15/drivers/net/ethernet/intel/idpf/
Didpf.h1 /* SPDX-License-Identifier: GPL-2.0-only */
19 #include <net/gro.h>
25 #define GETMAXVAL(num_bits) GENMASK((num_bits) - 1, 0)
33 #define IDPF_DFLT_MBX_ID -1
37 ((IDPF_CTLQ_MAX_BUF_LEN - (struct_sz)) / (chunk_sz))
64 * enum idpf_state - State machine to handle bring up
78 * enum idpf_flags - Hard reset causes.
80 * @IDPF_HR_DRV_LOAD: Set on driver load for a clean HW
98 * enum idpf_cap_field - Offsets into capabilities struct for specific caps
112 IDPF_BASE_CAPS = -1,
[all …]
/linux-6.15/net/core/
Ddev.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * Florian la Roche <rzsfl@rz.uni-sb.de>
19 * D.J. Barrow : Fixed bug where dev->refcnt gets set
64 * Pekka Riikonen : Netdev boot-time settings code
66 * indefinitely on dev->refcnt
67 * J Hadi Salim : - Backlog queue sampling
68 * - netif_rx() feedback
108 #include <net/gro.h>
169 #include "net-sysfs.h"
189 unsigned int val = net->dev_base_seq + 1; in dev_base_seq_inc()
[all …]
/linux-6.15/drivers/net/wireless/ath/wil6210/
Dtxrx.h1 /* SPDX-License-Identifier: ISC */
3 * Copyright (c) 2012-2016 Qualcomm Atheros, Inc.
4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
26 return le32_to_cpu(addr->addr_low) | in wil_desc_addr()
27 ((u64)le16_to_cpu(addr->addr_high) << 32); in wil_desc_addr()
33 addr->addr_low = cpu_to_le32(lower_32_bits(pa)); in wil_desc_addr_set()
34 addr->addr_high = cpu_to_le16((u16)upper_32_bits(pa)); in wil_desc_addr_set()
37 /* Tx descriptor - MAC part
66 * bit 18..19 : l2_translation_type:2 00 - bypass, 01 - 802.3, 10 - 802.11
229 #define DMA_CFG_DESC_TX_0_L4_TYPE_MSK 0xC0000000 /* L4 type: 0-UDP, 2-TCP */
[all …]
Dtxrx.c1 // SPDX-License-Identifier: ISC
3 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc.
4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
25 MODULE_PARM_DESC(rx_align_2, " align Rx buffers on 4*n+2, default - no");
29 MODULE_PARM_DESC(rx_large_buf, " allocate 8KB RX buffers, default - no");
39 /* wil_ring_wmark_low - low watermark for available descriptor space */
42 return ring->size / 8; in wil_ring_wmark_low()
45 /* wil_ring_wmark_high - high watermark for available descriptor space */
48 return ring->size / 4; in wil_ring_wmark_high()
71 struct wil_ring *vring = &wil->ring_tx[i]; in wil_is_tx_idle()
[all …]
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c2 * Copyright (c) 2015-2016, Mellanox Technologies. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
83 /* Our HW-GRO implementation relies on "KSM Mkey" for in mlx5e_hw_gro_supported()
123 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_update_carrier()
132 if (up == netif_carrier_ok(priv->netdev)) in mlx5e_update_carrier()
133 netif_carrier_event(priv->netdev); in mlx5e_update_carrier()
135 netdev_info(priv->netdev, "Link up\n"); in mlx5e_update_carrier()
136 netif_carrier_on(priv->netdev); in mlx5e_update_carrier()
138 netdev_info(priv->netdev, "Link down\n"); in mlx5e_update_carrier()
[all …]
/linux-6.15/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright (c) 2016-2017 Hisilicon Limited.
4 #include <linux/dma-mapping.h>
19 #include <net/gro.h>
54 static int debug = -1;
79 /* hns3_pci_tbl - PCI Device ID Table
387 napi_schedule_irqoff(&tqp_vector->napi); in hns3_irq_handle()
388 tqp_vector->event_cnt++; in hns3_irq_handle()
398 for (i = 0; i < priv->vector_num; i++) { in hns3_nic_uninit_irq()
399 tqp_vectors = &priv->tqp_vector[i]; in hns3_nic_uninit_irq()
[all …]
/linux-6.15/drivers/net/wwan/t7xx/
Dt7xx_hif_dpmaif_rx.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2021-2022, Intel Corporation.
23 #include <linux/dma-direction.h>
24 #include <linux/dma-mapping.h>
44 #include <net/gro.h>
75 value = FIELD_GET(PD_PIT_H_BID, le32_to_cpu(pit_info->pd.footer)); in t7xx_normal_pit_bid()
77 value += FIELD_GET(PD_PIT_BUFFER_ID, le32_to_cpu(pit_info->header)); in t7xx_normal_pit_bid()
84 struct dpmaif_rx_queue *rxq = &dpmaif_ctrl->rxq[q_num]; in t7xx_dpmaif_update_bat_wr_idx()
85 struct dpmaif_bat_request *bat_req = rxq->bat_req; in t7xx_dpmaif_update_bat_wr_idx()
88 if (!rxq->que_started) { in t7xx_dpmaif_update_bat_wr_idx()
[all …]
/linux-6.15/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c2 * This file is part of the Chelsio T4 PCI-E SR-IOV Virtual Function Ethernet
5 * Copyright (c) 2009-2010 Chelsio Communications, Inc. All rights reserved.
17 * - Redistributions of source code must retain the above
21 * - Redistributions in binary form must reproduce the above
43 #include <linux/dma-mapping.h>
63 * 64-bit PCI DMA addresses.
106 ETHTXQ_MAX_SGL_LEN = ((3 * (ETHTXQ_MAX_FRAGS-1))/2 +
107 ((ETHTXQ_MAX_FRAGS-1) & 1) +
140 * in-line room in skb's to accommodate pulling in RX_PULL_LEN bytes
189 * get_buf_addr - return DMA buffer address of software descriptor
[all …]
/linux-6.15/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright (c) 2016-2017 Hisilicon Limited.
38 /* hclgevf_cmd_send - send command to command queue
39 * @hw: pointer to the hw struct
46 int hclgevf_cmd_send(struct hclgevf_hw *hw, struct hclge_desc *desc, int num) in hclgevf_cmd_send() argument
48 return hclge_comm_cmd_send(&hw->hw, desc, num); in hclgevf_cmd_send()
51 static void hclgevf_trace_cmd_send(struct hclge_comm_hw *hw, struct hclge_desc *desc, in hclgevf_trace_cmd_send() argument
56 trace_hclge_vf_cmd_send(hw, desc, 0, num); in hclgevf_trace_cmd_send()
62 trace_hclge_vf_cmd_send(hw, &desc[i], i, num); in hclgevf_trace_cmd_send()
65 static void hclgevf_trace_cmd_get(struct hclge_comm_hw *hw, struct hclge_desc *desc, in hclgevf_trace_cmd_get() argument
[all …]

12