/linux/tools/testing/selftests/net/ |
H A D | udpgro.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 13 if [ $ret -eq 0 ]; then 19 local -r jobs="$(jobs -p)" 20 local -r ns="$(ip netns list|grep $PEER_NS)" 22 [ -n "${jobs}" ] && kill -1 ${jobs} 2>/dev/null 23 [ -n "$ns" ] && ip netns del $ns 2>/dev/null 29 ip -netns "${PEER_NS}" link set lo up 36 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 37 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad [all …]
|
H A D | udpgro_bench.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 13 local -r jobs="$(jobs -p)" 14 local -r ns="$(ip netns list|grep $PEER_NS)" 16 [ -n "${jobs}" ] && kill -INT ${jobs} 2>/dev/null 17 [ -n "$ns" ] && ip netns del $ns 2>/dev/null 22 # use 'rx' as separator between sender args and receiver args 23 local -r all="$@" 24 local -r tx_args=${all%rx*} 25 local rx_args=${all#*rx} [all …]
|
H A D | udpgro_frglist.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 13 local -r jobs="$(jobs -p)" 14 local -r ns="$(ip netns list|grep $PEER_NS)" 16 [ -n "${jobs}" ] && kill -INT ${jobs} 2>/dev/null 17 [ -n "$ns" ] && ip netns del $ns 2>/dev/null 22 # use 'rx' as separator between sender args and receiver args 23 local -r all="$@" 24 local -r tx_args=${all%rx*} 25 local rx_args=${all#*rx} [all …]
|
/linux/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_join.sh | 2 # SPDX-License-Identifier: GPL-2.0 46 declare -A all_tests 47 declare -a only_tests_ids 48 declare -a only_tests_names 49 declare -A failed_tests 102 ip netns exec $netns sysctl -q net.mptcp.pm_type=0 2>/dev/null || true 104 ip netns exec $netns sysctl -q net.mptcp.checksum_enabled=1 120 ip -net "$ns1" addr add 10.0.$i.1/24 dev ns1eth$i 121 ip -net "$ns1" addr add dead:beef:$i::1/64 dev ns1eth$i nodad 122 ip -net "$ns1" link set ns1eth$i up [all …]
|
H A D | mptcp_lib.sh | 2 # SPDX-License-Identifier: GPL-2.0 12 readonly KSFT_TEST="${MPTCP_LIB_KSFT_TEST:-$(basename "${0}" .sh)}" 14 # These variables are used in some selftests, read-only 15 declare -rx MPTCP_LIB_EVENT_CREATED=1 # MPTCP_EVENT_CREATED 16 declare -rx MPTCP_LIB_EVENT_ESTABLISHED=2 # MPTCP_EVENT_ESTABLISHED 17 declare -rx MPTCP_LIB_EVENT_CLOSED=3 # MPTCP_EVENT_CLOSED 18 declare -rx MPTCP_LIB_EVENT_ANNOUNCED=6 # MPTCP_EVENT_ANNOUNCED 19 declare -rx MPTCP_LIB_EVENT_REMOVED=7 # MPTCP_EVENT_REMOVED 20 declare -rx MPTCP_LIB_EVENT_SUB_ESTABLISHED=10 # MPTCP_EVENT_SUB_ESTABLISHED 21 declare -rx MPTCP_LIB_EVENT_SUB_CLOSED=11 # MPTCP_EVENT_SUB_CLOSED [all …]
|
H A D | mptcp_connect.sh | 2 # SPDX-License-Identifier: GPL-2.0 36 port=$((10000 - 1)) 38 if [ $tc_loss -eq 100 ];then 40 elif [ $tc_loss -ge 10 ]; then 42 elif [ $tc_loss -ge 1 ]; then 49 echo "Usage: $0 [ -a ]" 50 echo -e "\t-d: tc/netem delay in milliseconds, e.g. \"-d 10\" (default random)" 51 echo -e "\t-l: tc/netem loss percentage, e.g. \"-l 0.02\" (default random)" 52 …echo -e "\t-r: tc/netem reorder mode, e.g. \"-r 25% 50% gap 5\", use "-r 0" to disable reordering … 53 …echo -e "\t-e: ethtool features to disable, e.g.: \"-e tso -e gso\" (default: randomly disable any… [all …]
|
/linux/drivers/media/i2c/ |
H A D | ds90ub960.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for the Texas Instruments DS90UB960-Q1 video deserializer 12 * - PM for serializer and remote peripherals. We need to manage: 13 * - VPOC 14 * - Power domain? Regulator? Somehow any remote device should be able to 16 * - Link between the deserializer and the serializer 17 * - Related to VPOC management. We probably always want to turn on the VPOC 19 * - Serializer's services: i2c, gpios, power 20 * - The serializer needs to resume before the remote peripherals can 22 * - How to handle gpios? Reserving a gpio essentially keeps the provider [all …]
|
/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-ipq8064-v2.0.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 #include "qcom-ipq8064.dtsi" 6 model = "Qualcomm Technologies, Inc. IPQ8064-v2.0"; 13 stdout-path = "serial0:115200n8"; 16 reserved-memory { 17 #address-cells = <1>; 18 #size-cells = <1>; 23 no-map; 44 compatible = "qcom,pcie-ipq8064-v2"; 48 compatible = "qcom,pcie-ipq8064-v2"; [all …]
|
/linux/Documentation/networking/devlink/ |
H A D | mlx5.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 .. list-table:: Generic parameters implemented 15 * - Name 16 - Mode 17 - Validation 18 * - ``enable_roce`` 19 - driverinit 20 - Type: Boolean 26 * - ``io_eq_size`` 27 - driverinit [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | devlink_lib.sh | 2 # 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/ - [all...] |
/linux/drivers/net/ethernet/emulex/benet/ |
H A D | be_hw.h | 1 /* 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/sound/soc/codecs/ |
H A D | wm8996.h | 1 /* 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/drivers/net/ethernet/microsoft/mana/ |
H A D | hw_channel.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 10 struct gdma_resource *r = &hwc->inflight_msg_res; in mana_hwc_get_msg_index() 14 down(&hwc->sema); in mana_hwc_get_msg_index() 16 spin_lock_irqsave(&r->lock, flags); in mana_hwc_get_msg_index() 18 index = find_first_zero_bit(hwc->inflight_msg_res.map, in mana_hwc_get_msg_index() 19 hwc->inflight_msg_res.size); in mana_hwc_get_msg_index() 21 bitmap_set(hwc->inflight_msg_res.map, index, 1); in mana_hwc_get_msg_index() 23 spin_unlock_irqrestore(&r->lock, flags); in mana_hwc_get_msg_index() 32 struct gdma_resource *r = &hwc->inflight_msg_res; in mana_hwc_put_msg_index() 35 spin_lock_irqsave(&r->lock, flags); in mana_hwc_put_msg_index() [all …]
|
H A D | mana_en.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 37 struct gdma_queue *gdma_q = filp->private_data; in mana_dbg_q_read() 39 return simple_read_from_buffer(buf, count, pos, gdma_q->queue_mem_ptr, in mana_dbg_q_read() 40 gdma_q->queue_size); in mana_dbg_q_read() 60 apc->port_is_up = true; in mana_open() 75 if (!apc->port_is_up) in mana_close() 88 if (skb->protocol == htons(ETH_P_IP)) { in mana_checksum_info() 91 if (ip->protocol == IPPROTO_TCP) in mana_checksum_info() 94 if (ip->protocol == IPPROTO_UDP) in mana_checksum_info() 96 } else if (skb->protocol == htons(ETH_P_IPV6)) { in mana_checksum_info() [all …]
|
/linux/Documentation/devicetree/bindings/media/i2c/ |
H A D | ti,ds90ub960.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Texas Instruments DS90UB9XX Family FPD-Link Deserializer Hubs 10 - Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> 13 The TI DS90UB9XX devices are FPD-Link video deserializers with I2C and GPIO 17 - $ref: /schemas/i2c/i2c-atr.yaml# 22 - ti,ds90ub960-q1 23 - ti,ds90ub9702-q1 33 clock-names: [all …]
|
/linux/tools/testing/selftests/drivers/net/microchip/ |
H A D | ksz9477_qos.sh | 2 # SPDX-License-Identifier: GPL-2.0 38 h1_mac=$(ip -j link show dev ${h1} | jq -e '.[].address') 51 h2_mac=$(ip -j link show dev ${h2} | jq -e '.[].address') 116 echo $(echo "$stats_json" | jq -r "$field_name") 137 $MZ ${h2} -a ${h2_mac} -b ${h1_mac} -p 64 -t icmp echores -c 1 140 # for the RX and TX paths. 155 if [ ${have_vlan} -eq 1 ]; then 169 # Most/all? of the KSZ switches do not provide per-TC counters. There 182 if [ ${rx_ipv} -ge 1 ]; then 188 if [ ${tx_ipv} -ge 2 ]; then [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | reporter_rx.c | 1 // SPDX-License-Identifier: GPL-2.0 33 return -ENOMEM; in mlx5e_query_rq_state() 49 struct mlx5_core_dev *dev = icosq->channel->mdev; in mlx5e_wait_for_icosq_flush() 55 if (icosq->cc == icosq->pc) in mlx5e_wait_for_icosq_flush() 61 netdev_err(icosq->channel->netdev, in mlx5e_wait_for_icosq_flush() 63 icosq->sqn, icosq->cc, icosq->pc); in mlx5e_wait_for_icosq_flush() 65 return -ETIMEDOUT; in mlx5e_wait_for_icosq_flush() 70 WARN_ONCE(icosq->cc != icosq->pc, "ICOSQ 0x%x: cc (0x%x) != pc (0x%x)\n", in mlx5e_reset_icosq_cc_pc() 71 icosq->sqn, icosq->cc, icosq->pc); in mlx5e_reset_icosq_cc_pc() 72 icosq->cc = 0; in mlx5e_reset_icosq_cc_pc() [all …]
|
/linux/drivers/usb/typec/mux/ |
H A D | nb7vpq904m.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * OnSemi NB7VPQ904M Type-C driver 14 #include <drm/bridge/aux-bridge.h> 74 struct mutex lock; /* protect non-concurrent retimer & switch */ 83 u8 eq, out_comp, flat_gain, loss_match; in nb7vpq904m_set_channel() local 86 eq = NB7_IS_CHAN_AD(channel) ? 0x6 : 0x4; in nb7vpq904m_set_channel() 91 eq = 0x4; in nb7vpq904m_set_channel() 97 regmap_update_bits(nb7->regmap, EQ_SETTING_REG(channel), in nb7vpq904m_set_channel() 98 EQ_SETTING_MASK, FIELD_PREP(EQ_SETTING_MASK, eq)); in nb7vpq904m_set_channel() 99 regmap_update_bits(nb7->regmap, OUTPUT_COMPRESSION_AND_POL_REG(channel), in nb7vpq904m_set_channel() [all …]
|
/linux/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | ethtool-ring.sh | 2 # 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 …]
|
H A D | udp_tunnel_nic.sh | 2 # 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 …]
|
H A D | ethtool-coalesce.sh | 2 # 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 …]
|
/linux/drivers/infiniband/hw/mana/ |
H A D | qp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 27 return -ENOMEM; in mana_ib_cfg_vport_steering() 29 mana_gd_init_req_hdr(&req->hdr, MANA_CONFIG_VPORT_RX, req_buf_size, in mana_ib_cfg_vport_steering() 32 req->hdr.req.msg_version = GDMA_MESSAGE_V2; in mana_ib_cfg_vport_steering() 34 req->vport = mpc->port_handle; in mana_ib_cfg_vport_steering() 35 req->rx_enable = 1; in mana_ib_cfg_vport_steering() 36 req->update_default_rxobj = 1; in mana_ib_cfg_vport_steering() 37 req->default_rxobj = default_rxobj; in mana_ib_cfg_vport_steering() 38 req->hdr.dev_id = gc->mana.dev_id; in mana_ib_cfg_vport_steering() 42 req->rss_enable = true; in mana_ib_cfg_vport_steering() [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | pcie.c | 1 // 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() 90 * fields required to re-initialize after a chip reset, or for 111 return -EINVAL; in hfi1_pcie_ddinit() 114 dd->kregbase1 = ioremap(addr, RCV_ARRAY); in hfi1_pcie_ddinit() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eq.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 3 * Copyright (c) 2013-2021, Mellanox Technologies inc. All rights reserved. 10 #include <linux/mlx5/eq.h> 15 #include "lib/eq.h" 40 * the ci before we polled all the entries in the EQ. MLX5_NUM_SPARE_EQE is 41 * used to set the EQ size, budget must be smaller than the EQ size. 94 static struct mlx5_core_cq *mlx5_eq_cq_get(struct mlx5_eq *eq, u32 cqn) in mlx5_eq_cq_get() argument 96 struct mlx5_cq_table *table = &eq->cq_table; in mlx5_eq_cq_get() 100 cq = radix_tree_lookup(&table->tree, cqn); in mlx5_eq_cq_get() 114 struct mlx5_eq *eq = &eq_comp->core; in mlx5_eq_comp_int() local [all …]
|
/linux/arch/arm/boot/dts/st/ |
H A D | stm32mp135f-dhcor-dhsbc.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 6 * DHCR-STM32MP135F-C100-R051-EE-F0409-SPI4-RTC-WBT-I-01LG 7 * DHCOR PCB number: 718-100 or newer 8 * DHSBC PCB number: 719-100 or newer 11 /dts-v1/; 13 #include <dt-bindings/regulator/st,stm32mp13-regulator.h> 16 #include "stm32mp13xx-dhcor-som.dtsi" 20 compatible = "dh,stm32mp135f-dhcor-dhsbc", 21 "dh,stm32mp135f-dhcor-som", 32 stdout-path = "serial0:115200n8"; [all …]
|