Home
last modified time | relevance | path

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

12

/linux/include/linux/
H A 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 …]
H A 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/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
H A 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/drivers/net/ethernet/fungible/funeth/
H A 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/net/ipv6/
H A 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_typ in udp6_ufo_fragment()
[all...]
/linux/net/ethtool/
H A 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/Documentation/netlink/specs/
H A 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
5 uapi-header: linux/rtnetlink.h
12 -
13 name: ifinfo-flags
16 enum-name: net-device-flags
17 name-prefix: iff-
19 -
21 -
[all …]
/linux/net/ipv4/
H A Dudp_offload.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * IPV4 GSO/GRO offload support
10 #include <net/gro.h>
20 * Dummy GRO tunnel callback, exists mainly to avoid dangling/NULL
27 NAPI_GRO_CB(skb)->flush = 1; in dummy_gro_rcv()
54 bool is_ipv6 = sk->sk_family == AF_INET6; in udp_tunnel_update_gro_lookup()
59 udp_tunnel_gro = &net->ipv4.udp_tunnel_gro[is_ipv6]; in udp_tunnel_update_gro_lookup()
61 hlist_add_head(&up->tunnel_list, &udp_tunnel_gro->list); in udp_tunnel_update_gro_lookup()
62 else if (up->tunnel_list.pprev) in udp_tunnel_update_gro_lookup()
63 hlist_del_init(&up->tunnel_list); in udp_tunnel_update_gro_lookup()
[all …]
/linux/drivers/net/ethernet/qlogic/qede/
H A 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 …]
H A 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/drivers/net/ethernet/intel/ice/
H A 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/drivers/net/ethernet/broadcom/bnx2x/
H A 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 …]
H A 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/Documentation/networking/
H A 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/drivers/net/ethernet/intel/idpf/
H A 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/net/core/
H A 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/drivers/net/ethernet/mellanox/mlx5/core/
H A 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
84 /* Our HW-GRO implementation relies on "KSM Mkey" for in mlx5e_hw_gro_supported()
124 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_update_carrier()
133 if (up == netif_carrier_ok(priv->netdev)) in mlx5e_update_carrier()
134 netif_carrier_event(priv->netdev); in mlx5e_update_carrier()
136 netdev_info(priv->netdev, "Link up\n"); in mlx5e_update_carrier()
137 netif_carrier_on(priv->netdev); in mlx5e_update_carrier()
139 netdev_info(priv->netdev, "Link down\n"); in mlx5e_update_carrier()
[all …]
H A Den_ethtool.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
50 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_ethtool_get_drvinfo()
53 strscpy(drvinfo->driver, KBUILD_MODNAME, sizeof(drvinfo->driver)); in mlx5e_ethtool_get_drvinfo()
54 count = snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in mlx5e_ethtool_get_drvinfo()
56 fw_rev_min(mdev), fw_rev_sub(mdev), mdev->board_id); in mlx5e_ethtool_get_drvinfo()
57 if (count >= sizeof(drvinfo->fw_version)) in mlx5e_ethtool_get_drvinfo()
58 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in mlx5e_ethtool_get_drvinfo()
62 strscpy(drvinfo->bus_info, dev_name(mdev->device), in mlx5e_ethtool_get_drvinfo()
63 sizeof(drvinfo->bus_info)); in mlx5e_ethtool_get_drvinfo()
[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>
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/drivers/net/wireless/ath/wil6210/
H A 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/drivers/net/wwan/t7xx/
H A 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/drivers/net/ethernet/chelsio/cxgb4vf/
H A 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/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A 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 …]
/linux/tools/perf/pmu-events/arch/powerpc/power8/
H A Dother.json11 …"BriefDescription": "Cycles in 2-lpar mode. Threads 0-3 belong to Lpar0 and threads 4-7 belong to …
17 …cles in 4 LPAR mode. Threads 0-1 belong to lpar0, threads 2-3 belong to lpar1, threads 4-5 belong …
36 … scope(Chip) Final pump was group pump and initial pump was chip or final and initial pump was gro"
113 …to the Target Address Prediction from the Count Cache or Link Stack. Only XL-form branches that re…
125 …"BriefDescription": "Conditional Branch Completed on BR0 (1st branch in group) in which the HW pre…
131 …"BriefDescription": "Conditional Branch Completed on BR1 (2nd branch in group) in which the HW pre…
161 …ed. I-form branches do not set this event. In addition, B-form branches which do not use the BHT d…
167 …ed. I-form branches do not set this event. In addition, B-form branches which do not use the BHT d…
197 …ional Branch Completed on BR0 that had its target address predicted. Only XL-form branches set thi…
203 …ional Branch Completed on BR1 that had its target address predicted. Only XL-form branches set thi…
[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...]

12