Home
last modified time | relevance | path

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

12

/linux/Documentation/netlink/specs/
H A 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 …]
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
11 -
12 name: ifinfo-flags
15 -
17 -
19 -
21 -
23 -
[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/Documentation/networking/
H A 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 …]
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/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>
102 * - qdisc return codes
103 * - driver transmit return codes
104 * - errno values
108 * the driver transmit return codes though - when qdiscs are used, the actual
115 /* qdisc ->enqueue() return codes. */
125 #define net_xmit_errno(e) ((e) != NET_XMIT_CN ? -ENOBUFS : 0)
145 * - successful transmission (rc == NETDEV_TX_OK) in dev_xmit_complete()
[all …]
/linux/net/ethtool/
H A Dcommon.c1 // SPDX-License-Identifier: GPL-2.0-only
13 [NETIF_F_SG_BIT] = "tx-scatter-gather",
14 [NETIF_F_IP_CSUM_BIT] = "tx-checksum-ipv4",
15 [NETIF_F_HW_CSUM_BIT] = "tx-checksum-ip-generic",
16 [NETIF_F_IPV6_CSUM_BIT] = "tx-checksum-ipv6",
18 [NETIF_F_FRAGLIST_BIT] = "tx-scatter-gather-fraglist",
19 [NETIF_F_HW_VLAN_CTAG_TX_BIT] = "tx-vlan-hw-insert",
21 [NETIF_F_HW_VLAN_CTAG_RX_BIT] = "rx-vlan-hw-parse",
22 [NETIF_F_HW_VLAN_CTAG_FILTER_BIT] = "rx-vlan-filter",
23 [NETIF_F_HW_VLAN_STAG_TX_BIT] = "tx-vlan-stag-hw-insert",
[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_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/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>
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/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/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/drivers/net/wireless/ath/wil6210/
H A 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 …]
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/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
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 …]
H A Den_ethtool.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
48 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_ethtool_get_drvinfo()
51 strscpy(drvinfo->driver, KBUILD_MODNAME, sizeof(drvinfo->driver)); in mlx5e_ethtool_get_drvinfo()
52 count = snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in mlx5e_ethtool_get_drvinfo()
54 fw_rev_min(mdev), fw_rev_sub(mdev), mdev->board_id); in mlx5e_ethtool_get_drvinfo()
55 if (count >= sizeof(drvinfo->fw_version)) in mlx5e_ethtool_get_drvinfo()
56 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in mlx5e_ethtool_get_drvinfo()
60 strscpy(drvinfo->bus_info, dev_name(mdev->device), in mlx5e_ethtool_get_drvinfo()
61 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>
20 #include <net/gro.h>
55 static int debug = -1;
80 /* hns3_pci_tbl - PCI Device ID Table
393 granule = 1 << __ffs(domain->pgsize_bitmap); in hns3_dma_map_sync()
396 iotlb_gather.end = iova + granule - 1; in hns3_dma_map_sync()
406 napi_schedule_irqoff(&tqp_vector->napi); in hns3_irq_handle()
407 tqp_vector->event_cnt++; in hns3_irq_handle()
[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 …]

12