Home
last modified time | relevance | path

Searched +full:rx +full:- +full:eq (Results 1 – 25 of 75) sorted by relevance

123

/Linux-v5.15/tools/testing/selftests/net/forwarding/
Ddevlink_lib.sh2 # SPDX-License-Identifier: GPL-2.0
4 # Kselftest framework requirement - SKIP code is 4.
10 if [[ ! -v DEVLINK_DEV ]]; then
11 DEVLINK_DEV=$(devlink port show "${NETIFS[p1]:-$NETIF_NO_CABLE}" -j \
12 | jq -r '.port | keys[]' | cut -d/ -f-2)
13 if [ -z "$DEVLINK_DEV" ]; then
17 if [[ "$(echo $DEVLINK_DEV | grep -c pci)" -eq 0 ]]; then
22 DEVLINK_VIDDID=$(lspci -s $(echo $DEVLINK_DEV | cut -d"/" -f2) \
23 -n | cut -d" " -f3)
24 elif [[ ! -z "$DEVLINK_DEV" ]]; then
[all …]
/Linux-v5.15/drivers/net/ethernet/emulex/benet/
Dbe_hw.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2005-2016 Broadcom.
7 * linux-drivers@emulex.com
33 #define SLIPORT_SEMAPHORE_OFFSET_SH 0x94 /* PCI-CFG offset */
44 #define POST_STAGE_HOST_RDY 0x2 /* Host has given go-ahed to FW */
127 #define DB_EQ_RING_ID_MASK 0x1FF /* bits 0 - 8 */
128 #define DB_EQ_RING_ID_EXT_MASK 0x3e00 /* bits 9-13 */
129 #define DB_EQ_RING_ID_EXT_MASK_SHIFT (2) /* qid bits 9-13 placing at 11-15 */
131 /* Clear the interrupt for this eq */
136 #define DB_EQ_NUM_POPPED_SHIFT (16) /* bits 16 - 28 */
[all …]
/Linux-v5.15/sound/soc/codecs/
Dwm8996.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * wm8996.h - WM8996 audio codec interface
744 * R0 (0x00) - Software Reset
746 #define WM8996_SW_RESET_MASK 0xFFFF /* SW_RESET - [15:0] */
747 #define WM8996_SW_RESET_SHIFT 0 /* SW_RESET - [15:0] */
748 #define WM8996_SW_RESET_WIDTH 16 /* SW_RESET - [15:0] */
751 * R1 (0x01) - Power Management (1)
783 * R2 (0x02) - Power Management (2)
803 * R3 (0x03) - Power Management (3)
847 * R4 (0x04) - Power Management (4)
[all …]
/Linux-v5.15/tools/testing/selftests/net/
Dudpgro.sh2 # SPDX-License-Identifier: GPL-2.0
6 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)"
11 if [ $ret -eq 0 ]; then
17 local -r jobs="$(jobs -p)"
18 local -r ns="$(ip netns list|grep $PEER_NS)"
20 [ -n "${jobs}" ] && kill -1 ${jobs} 2>/dev/null
21 [ -n "$ns" ] && ip netns del $ns 2>/dev/null
27 ip -netns "${PEER_NS}" link set lo up
34 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24
35 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad
[all …]
Dudpgro_bench.sh2 # SPDX-License-Identifier: GPL-2.0
6 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)"
9 local -r jobs="$(jobs -p)"
10 local -r ns="$(ip netns list|grep $PEER_NS)"
12 [ -n "${jobs}" ] && kill -INT ${jobs} 2>/dev/null
13 [ -n "$ns" ] && ip netns del $ns 2>/dev/null
18 # use 'rx' as separator between sender args and receiver args
19 local -r all="$@"
20 local -r tx_args=${all%rx*}
21 local rx_args=${all#*rx}
[all …]
Drtnetlink.sh5 # set -e
7 devdummy="test-dummy0"
9 # Kselftest framework requirement - SKIP code is 4.
15 if [ $ret -eq 0 ]; then
20 # same but inverted -- used when command must fail for test to pass
23 if [ $1 -eq 0 ]; then
51 ip -$f netconf show dev "$dev" > /dev/null
55 if [ $ret -ne 0 ] ;then
57 test $r -eq 0 && ret=0
65 devbr="test-br0"
[all …]
Dgro.sh2 # SPDX-License-Identifier: GPL-2.0
17 local ARGS=( "--${protocol}" "--dmac" "${SERVER_MAC}" \
18 "--smac" "${CLIENT_MAC}" "--test" "${test}" "--verbose" )
26 ip netns exec server_ns ./gro "${ARGS[@]}" "--rx" "--iface" "server" \
30 ip netns exec client_ns ./gro "${ARGS[@]}" "--iface" "client" \
34 if [[ "${exit_code}" -eq 0 ]]; then
48 if [[ "${exit_code}" -ne 0 ]]; then
53 if [[ ${#failed_tests[@]} -ne 0 ]]; then
64 [-i <DEV>] \
65 [-t data|ack|flags|tcp|ip|large] \
[all …]
Dtoeplitz.sh2 # SPDX-License-Identifier: GPL-2.0
5 # from rxhash to rx queue ('-rss') or (2) rps mapping from rxhash to cpu
6 # ('-rps <rps_map>')
8 # irq-pattern-prefix can be derived from /sys/kernel/irq/*/action,
9 # which is a driver-specific encoding.
11 # invoke as ./toeplitz.sh (-i <iface>) -u|-t -4|-6 \
12 # [(-rss -irq_prefix <irq-pattern-prefix>)|(-rps <rps_map>)]
34 echo $(ethtool -x "${DEV}" |
35 egrep [[:space:]]+[0-9]+:[[:space:]]+ |
36 cut -d: -f2- |
[all …]
/Linux-v5.15/tools/testing/selftests/drivers/net/netdevsim/
Dethtool-ring.sh2 # SPDX-License-Identifier: GPL-2.0-only
4 source ethtool-common.sh
9 echo $(ethtool -g $NSIM_NETDEV | \
10 tail -n +$CURR_SETT_LINE | \
11 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[\t ]/, "", $2); print $2}')
21 if ! ethtool -h | grep -q set-ring >/dev/null; then
22 echo "SKIP: No --set-ring support in ethtool"
28 set -o pipefail
30 declare -A SETTINGS_MAP=(
31 ["rx"]="RX"
[all …]
Dethtool-coalesce.sh2 # SPDX-License-Identifier: GPL-2.0-only
4 source ethtool-common.sh
9 echo $(ethtool -c $NSIM_NETDEV | \
10 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[ \t]/, "", $2); print $2}')
20 if ! ethtool -h | grep -q coalesce; then
21 echo "SKIP: No --coalesce support in ethtool"
27 set -o pipefail
29 declare -A SETTINGS_MAP=(
30 ["rx-frames-low"]="rx-frame-low"
31 ["tx-frames-low"]="tx-frame-low"
[all …]
Dudp_tunnel_nic.sh2 # SPDX-License-Identifier: GPL-2.0-only
30 [ -e /sys/class/net/$dev ] && ip link del dev $dev
36 if [ -e $NSIM_DEV_SYS ]; then
58 [ "$ipver" != '6' ] || ipfl="-6"
84 [ "$ipver" != '6' ] || ipfl="-6"
118 echo -e "port: $((val >> 16))\ttype: $((val & 0xffff))"
134 type_name="vxlan-gpe"
146 local -n expected=$2
149 read -a have < $path
151 if [ ${#expected[@]} -ne ${#have[@]} ]; then
[all …]
/Linux-v5.15/drivers/net/ethernet/microsoft/mana/
Dmana_en.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
25 apc->port_is_up = true; in mana_open()
40 if (!apc->port_is_up) in mana_close()
53 if (skb->protocol == htons(ETH_P_IP)) { in mana_checksum_info()
56 if (ip->protocol == IPPROTO_TCP) in mana_checksum_info()
59 if (ip->protocol == IPPROTO_UDP) in mana_checksum_info()
61 } else if (skb->protocol == htons(ETH_P_IPV6)) { in mana_checksum_info()
64 if (ip6->nexthdr == IPPROTO_TCP) in mana_checksum_info()
67 if (ip6->nexthdr == IPPROTO_UDP) in mana_checksum_info()
78 struct mana_skb_head *ash = (struct mana_skb_head *)skb->head; in mana_map_skb()
[all …]
Dhw_channel.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
9 struct gdma_resource *r = &hwc->inflight_msg_res; in mana_hwc_get_msg_index()
13 down(&hwc->sema); in mana_hwc_get_msg_index()
15 spin_lock_irqsave(&r->lock, flags); in mana_hwc_get_msg_index()
17 index = find_first_zero_bit(hwc->inflight_msg_res.map, in mana_hwc_get_msg_index()
18 hwc->inflight_msg_res.size); in mana_hwc_get_msg_index()
20 bitmap_set(hwc->inflight_msg_res.map, index, 1); in mana_hwc_get_msg_index()
22 spin_unlock_irqrestore(&r->lock, flags); in mana_hwc_get_msg_index()
31 struct gdma_resource *r = &hwc->inflight_msg_res; in mana_hwc_put_msg_index()
34 spin_lock_irqsave(&r->lock, flags); in mana_hwc_put_msg_index()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/
Dreporter_rx.c1 // SPDX-License-Identifier: GPL-2.0
19 return -ENOMEM; in mlx5e_query_rq_state()
39 if (icosq->cc == icosq->pc) in mlx5e_wait_for_icosq_flush()
45 netdev_err(icosq->channel->netdev, in mlx5e_wait_for_icosq_flush()
47 icosq->sqn, icosq->cc, icosq->pc); in mlx5e_wait_for_icosq_flush()
49 return -ETIMEDOUT; in mlx5e_wait_for_icosq_flush()
54 WARN_ONCE(icosq->cc != icosq->pc, "ICOSQ 0x%x: cc (0x%x) != pc (0x%x)\n", in mlx5e_reset_icosq_cc_pc()
55 icosq->sqn, icosq->cc, icosq->pc); in mlx5e_reset_icosq_cc_pc()
56 icosq->cc = 0; in mlx5e_reset_icosq_cc_pc()
57 icosq->pc = 0; in mlx5e_reset_icosq_cc_pc()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Deq.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
3 * Copyright (c) 2013-2021, Mellanox Technologies inc. All rights reserved.
11 #include <linux/mlx5/eq.h>
16 #include "lib/eq.h"
38 * the ci before we polled all the entries in the EQ. MLX5_NUM_SPARE_EQE is
39 * used to set the EQ size, budget must be smaller than the EQ size.
89 static struct mlx5_core_cq *mlx5_eq_cq_get(struct mlx5_eq *eq, u32 cqn) in mlx5_eq_cq_get() argument
91 struct mlx5_cq_table *table = &eq->cq_table; in mlx5_eq_cq_get()
95 cq = radix_tree_lookup(&table->tree, cqn); in mlx5_eq_cq_get()
109 struct mlx5_eq *eq = &eq_comp->core; in mlx5_eq_comp_int() local
[all …]
/Linux-v5.15/tools/testing/selftests/net/mptcp/
Dmptcp_connect.sh2 # SPDX-License-Identifier: GPL-2.0
28 if [ $tc_loss -eq 100 ];then
30 elif [ $tc_loss -ge 10 ]; then
32 elif [ $tc_loss -ge 1 ]; then
39 echo "Usage: $0 [ -a ]"
40 echo -e "\t-d: tc/netem delay in milliseconds, e.g. \"-d 10\" (default random)"
41 echo -e "\t-l: tc/netem loss percentage, e.g. \"-l 0.02\" (default random)"
42 …echo -e "\t-r: tc/netem reorder mode, e.g. \"-r 25% 50% gap 5\", use "-r 0" to disable reordering …
43 …echo -e "\t-e: ethtool features to disable, e.g.: \"-e tso -e gso\" (default: randomly disable any…
44 echo -e "\t-4: IPv4 only: disable IPv6 tests (default: test both IPv4 and IPv6)"
[all …]
/Linux-v5.15/drivers/infiniband/hw/hfi1/
Dpcie.c1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause
3 * Copyright(c) 2015 - 2019 Intel Corporation.
27 struct pci_dev *pdev = dd->pcidev; in hfi1_pcie_init()
43 dd_dev_err(dd, "pci enable failed: error %d\n", -ret); in hfi1_pcie_init()
49 dd_dev_err(dd, "pci_request_regions fails: err %d\n", -ret); in hfi1_pcie_init()
53 ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); in hfi1_pcie_init()
60 ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); in hfi1_pcie_init()
91 * fields required to re-initialize after a chip reset, or for
112 return -EINVAL; in hfi1_pcie_ddinit()
115 dd->kregbase1 = ioremap(addr, RCV_ARRAY); in hfi1_pcie_ddinit()
[all …]
Dplatform.c1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause
39 for (j = sizeof(u64); j != 0; j -= 2) { in validate_scratch_checksum()
61 struct hfi1_pportdata *ppd = dd->pport; in save_platform_config_fields()
67 (dd->hfi1_id ? PORT1_PORT_TYPE_SMASK : in save_platform_config_fields()
69 ppd->port_type = temp_dest >> in save_platform_config_fields()
70 (dd->hfi1_id ? PORT1_PORT_TYPE_SHIFT : in save_platform_config_fields()
74 (dd->hfi1_id ? PORT1_LOCAL_ATTEN_SMASK : in save_platform_config_fields()
76 ppd->local_atten = temp_dest >> in save_platform_config_fields()
77 (dd->hfi1_id ? PORT1_LOCAL_ATTEN_SHIFT : in save_platform_config_fields()
81 (dd->hfi1_id ? PORT1_REMOTE_ATTEN_SMASK : in save_platform_config_fields()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/phy/
Dqcom,ipq806x-usb-phy-ss.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/phy/qcom,ipq806x-usb-phy-ss.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Ansuel Smith <ansuelsmth@gmail.com>
13 DWC3 PHY nodes are defined to describe on-chip Synopsis Physical layer
19 const: qcom,ipq806x-usb-phy-ss
21 "#phy-cells":
31 clock-names:
34 - const: ref
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/
Den_cq.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
51 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_create_cq()
58 return -ENOMEM; in mlx4_en_create_cq()
61 cq->size = entries; in mlx4_en_create_cq()
62 cq->buf_size = cq->size * mdev->dev->caps.cqe_size; in mlx4_en_create_cq()
64 cq->ring = ring; in mlx4_en_create_cq()
65 cq->type = mode; in mlx4_en_create_cq()
66 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_create_cq()
69 * dev->numa_node is used in mtt range allocation flow. in mlx4_en_create_cq()
[all …]
/Linux-v5.15/drivers/firmware/arm_scmi/
Dnotify.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2020-2021 ARM Ltd.
36 * All users provided callbacks and allocated notification-chains are stored in
44 * hash-keys.
51 * Upon reception of a notification message from the platform the SCMI RX ISR
54 * pushes the event-data itself on a protocol-dedicated kfifo queue for further
59 * queued items into the proper notification-chain: notifications processing can
65 * conveyed, converted into a custom per-event report struct, as the void *data
73 #define dev_fmt(fmt) "SCMI Notifications - " fmt
74 #define pr_fmt(fmt) "SCMI Notifications - " fmt
[all …]
/Linux-v5.15/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c4 * Copyright (c) 2003-2014 Chelsio Communications, Inc. All rights reserved.
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
40 #include <linux/dma-mapping.h>
62 * Rx buffer size. We use largish buffers if possible but settle for single
68 # define FL_PG_ORDER (16 - PAGE_SHIFT)
76 * Main body length for sk_buffs used for Rx Ethernet packets with fragments.
91 * Max number of Rx buffers we replenish at a time. Again keep this modest,
97 * Period of the Rx queue check timer. This timer is infrequent as it has
115 #define NOMEM_TMR_IDX (SGE_NTIMERS - 1)
[all …]
/Linux-v5.15/drivers/net/ethernet/ibm/ehea/
Dehea_main.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * Jan-Bernd Themann <themann@de.ibm.com>
46 static int msg_level = -1;
66 "[2^x - 1], x = [7..14]. Default = "
69 "[2^x - 1], x = [7..14]. Default = "
72 "[2^x - 1], x = [7..14]. Default = "
75 "[2^x - 1], x = [7..14]. Default = "
99 .compatible = "IBM,lhea-ethernet",
137 if (!test_bit(__EHEA_DISABLE_PORT_RESET, &port->flags)) in ehea_schedule_port_reset()
138 schedule_work(&port->reset_task); in ehea_schedule_port_reset()
[all …]
/Linux-v5.15/tools/testing/selftests/netfilter/
Dipip-conntrack-mtu.sh2 # SPDX-License-Identifier: GPL-2.0
4 # Kselftest framework requirement - SKIP code is 4.
11 # +--------+ +---------+ +--------+
12 # |Router A|-------|Wanrouter|-------|Router B|
14 # +--------+ +---------+ +--------+
17 #+--------+ +--------+
20 #+--------+ +--------+
26 rnd=$(mktemp -u XXXXXXXX)
27 rx=$(mktemp)
29 r_a="ns-ra-$rnd"
[all …]
/Linux-v5.15/drivers/phy/qualcomm/
Dphy-qcom-ipq806x-usb.c1 // SPDX-License-Identifier: GPL-2.0-only
53 /* SSPHY control registers - Does this need 0x30? */
85 /* RX OVRD IN HI bits */
132 * @base - QCOM DWC3 PHY base virtual address.
133 * @offset - register offset.
134 * @mask - register bitmask specifying what should be updated
135 * @val - value to write.
141 u32 write_val, tmp = readl(phy_dwc3->base + offset); in usb_phy_write_readback()
146 writel(write_val, phy_dwc3->base + offset); in usb_phy_write_readback()
149 tmp = readl(phy_dwc3->base + offset); in usb_phy_write_readback()
[all …]

123