/linux/drivers/usb/gadget/function/ |
H A D | u_ether.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * u_ether.h -- interface to USB gadget "ethernet link" utilities 5 * Copyright (C) 2003-2005,2008 David Brownell 6 * Copyright (C) 2003-2004 Robert Schwebel, Benedikt Spranger 42 * This represents the USB side of an "ethernet" link, managed by a USB 44 * in different configurations could share the same ethernet link/netdev, 47 * There is a current limitation that only one instance of this link may 91 struct eth_dev *gether_setup_name(struct usb_gadget *g, 96 /* gether_setup - initialize one ethernet-over-usb link 97 * @g: gadget to associated with these links [all …]
|
H A D | u_ether.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * u_ether.c -- Ethernet-over-USB link layer utilities for Gadget stack 5 * Copyright (C) 2003-2005,2008 David Brownell 6 * Copyright (C) 2003-2004 Robert Schwebel, Benedikt Spranger 27 * This component encapsulates the Ethernet link glue needed to provide 28 * one (!) network link through the USB gadget stack, normally "usb0". 35 * Link level addressing is handled by this component using module 36 * parameters; if no such parameters are provided, random link level 37 * addresses are used. Each end of the link uses one address. The 41 * The driver which assembles each configuration using such a link is [all …]
|
/linux/Documentation/livepatch/ |
H A D | reliable-stacktrace.rst | 19 functions with live state, and best-effort approaches which can be helpful for 38 * The return code is non-zero to indicate that the trace is not reliable. 47 function should attempt to detect such cases and return a non-zero error 52 3. Compile-time analysis 76 -------------------------------------- 84 * Dynamically generated code (e.g. eBPF) or foreign code (e.g. EFI runtime 89 architectures verify that a stacktrace ends at an expected location, e.g. 95 * On a specific stack expected for a kernel entry point (e.g. if the 99 ------------------------------- 101 Unwinding typically relies on code following specific conventions (e.g. [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | bridge_mdb.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +-----------------------+ +------------------------+ 15 # +----|------------------+ +----|-------------------+ 17 # +----|--------------------------------------------------|-------------------+ 19 # | +--|--------------------------------------------------|-----------------+ | 24 # | +-----------------------------------------------------------------------+ | 25 # +---------------------------------------------------------------------------+ 67 ip link add name br0 type bridge vlan_filtering 1 vlan_default_pvid 0 \ 71 ip link set dev br0 up 73 ip link set dev $swp1 master br0 [all …]
|
H A D | bridge_igmp.sh | 2 # SPDX-License-Identifier: GPL-2.0 59 ip link add dev br0 type bridge mcast_snooping 1 mcast_querier 1 61 ip link set dev $swp1 master br0 62 ip link set dev $swp2 master br0 64 ip link set dev br0 up 65 ip link set dev $swp1 up 66 ip link set dev $swp2 up 71 ip link set dev $swp2 down 72 ip link set dev $swp1 down 74 ip link del dev br0 [all …]
|
H A D | bridge_mld.sh | 2 # SPDX-License-Identifier: GPL-2.0 89 ip link add dev br0 type bridge mcast_snooping 1 mcast_query_response_interval 100 \ 93 ip link set dev $swp1 master br0 94 ip link set dev $swp2 master br0 96 ip link set dev br0 up 97 ip link set dev $swp1 up 98 ip link set dev $swp2 up 106 ip link set dev $swp2 down 107 ip link set dev $swp1 down 109 ip link del dev br0 [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | mad.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright(c) 2015 - 2017 Intel Corporation. 38 #define OPA_NOTICE_TRAP_LWDE_CHG 0x08 /* Link Width Downgrade Enable 41 #define OPA_NOTICE_TRAP_LSE_CHG 0x04 /* Link Speed Enable changed */ 42 #define OPA_NOTICE_TRAP_LWE_CHG 0x02 /* Link Width Enable changed */ 147 * The default link width is multiplied by 1000 300 * struct cc_state combines the (active) per-port congestion control 301 * table, and the (active) per-SL congestion settings. cc_state data 390 #define COUNTER_MASK(q, n) (q << ((9 - n) * 3)) 404 * get_link_speed - determine whether 12.5G or 25G speed [all …]
|
/linux/Documentation/networking/device_drivers/ethernet/netronome/ |
H A D | nfp.rst | 1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 14 - `Overview`_ 15 - `Acquiring Firmware`_ 16 - `Devlink Info`_ 17 - `Configure Device`_ 18 - `Statistics`_ 25 are also incorporated in the companies' family of Agilio SmartNICs. The SR-IOV 35 Firmware files on the host filesystem contain card type (`AMDA-*` string), media 40 `linux-firmware.git` repository. 46 ----------------- [all …]
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | nixge.txt | 4 - compatible: Should be "ni,xge-enet-3.00", but can be "ni,xge-enet-2.00" for 5 older device trees with DMA engines co-located in the address map, 7 - reg: Address and length of the register set for the device. It contains the 8 information of registers in the same order as described by reg-names. 9 - reg-names: Should contain the reg names 12 - interrupts: Should contain tx and rx interrupt 13 - interrupt-names: Should be "rx" and "tx" 14 - phy-mode: See ethernet.txt file in the same directory. 15 - nvmem-cells: Phandle of nvmem cell containing the MAC address 16 - nvmem-cell-names: Should be "address" [all …]
|
/linux/Documentation/networking/device_drivers/ethernet/intel/ |
H A D | ixgbe.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 8 Copyright(c) 1999-2018 Intel Corporation. 13 - Identifying Your Adapter 14 - Command Line Parameters 15 - Additional Configurations 16 - Known Issues 17 - Support 36 ---------------------------------- 38 82599-BASED ADAPTERS 41 - If your 82599-based Intel(R) Network Adapter came with Intel optics or is an [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-net | 35 Values vary based on the lower-level protocol used by the 45 Format is a string, e.g: 00:11:22:33:44:55 for an Ethernet MAC 53 Bitmask to allow forwarding of link local frames with address 54 01-80-C2-00-00-0X on a bridge device. Only values that set bits 57 Default value 0 does not forward any link local frames. 62 0 01-80-C2-00-00-00 Bridge Group Address used for STP 63 1 01-80-C2-00-00-01 (MAC Control) 802.3 used for MAC PAUSE 64 2 01-80-C2-00-00-02 (Link Aggregation) 802.3ad 68 care when forwarding control frames e.g. 802.1X-PAE or LLDP. 76 string, e.g: ff:ff:ff:ff:ff:ff for an Ethernet broadcast MAC [all …]
|
H A D | sysfs-driver-xdata | 1 What: /sys/class/misc/drivers/dw-xdata-pcie.<device>/write 6 will create write TLPs frames - from the Root Complex to the 12 Usage e.g. 13 echo 1 > /sys/class/misc/dw-xdata-pcie.<device>/write 15 echo 0 > /sys/class/misc/dw-xdata-pcie.<device>/write 17 The user can read the current PCIe link throughput generated 20 Usage e.g. 21 cat /sys/class/misc/dw-xdata-pcie.<device>/write 26 What: /sys/class/misc/dw-xdata-pcie.<device>/read 31 will create read TLPs frames - from the Endpoint to the Root [all …]
|
/linux/Documentation/networking/ |
H A D | representors.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 used to control internal switching on SmartNICs. For the closely-related port 10 representors on physical (multi-port) switches, see 14 ---------- 16 Since the mid-2010s, network cards have started offering more complex 17 virtualisation capabilities than the legacy SR-IOV approach (with its simple 18 MAC/VLAN-based switching model) can support. This led to a desire to offload 19 software-defined networks (such as OpenVSwitch) to these NICs to specify the 24 virtual switches and IOV devices. Just as each physical port of a Linux- 36 As a virtual link endpoint, the representor can be configured like any other [all …]
|
/linux/tools/lib/bpf/ |
H A D | usdt.c | 1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 25 /* libbpf's USDT support consists of BPF-side state/code and user-space 26 * state/code working together in concert. BPF-side parts are defined in 27 * usdt.bpf.h header library. User-space state is encapsulated by struct 31 * and IP-to-spec-ID map, which is auxiliary map necessary for kernels that 39 * USDT-related until the very first call to bpf_program__attach_usdt(), which 43 * store it in bpf_object. USDT manager is per-BPF object construct, as each 45 * the expected USDT-related state. There is no coordination between two 47 * existence and libbpf is just oblivious, dealing with bpf_object-specific 52 * From user-space application's point of view, USDT is essentially just [all …]
|
/linux/include/linux/ |
H A D | phylink.h | 24 MLO_AN_FIXED, /* Fixed-link mode */ 25 MLO_AN_INBAND, /* In-band protocol */ 28 * PHYLINK_PCS_NEG_NONE - protocol has no inband capability 29 * PHYLINK_PCS_NEG_OUTBAND - some out of band or fixed link setting 30 * PHYLINK_PCS_NEG_INBAND_DISABLED - inband mode disabled, e.g. 31 * 1000base-X with autoneg off 32 * PHYLINK_PCS_NEG_INBAND_ENABLED - inband mode enabled 34 * PHYLINK_PCS_NEG_INBAND - inband mode selected 35 * PHYLINK_PCS_NEG_ENABLED - negotiation mode enabled 104 * struct phylink_link_state - link state structure [all …]
|
/linux/drivers/staging/most/Documentation/ |
H A D | driver_usage.txt | 5 access a MOST network: The Automotive Information Backbone and the de-facto 6 standard for high-bandwidth automotive multimedia networking. 9 for the efficient and low-cost transport of control, real-time and packet 43 interfaces (e.g. USB, MediaLB, I2C) the hardware provides. 76 of the embedded struct device (e.g. the bus this device belongs to and 104 Standard networking applications (e.g. iperf) can by used to access 108 Standard video applications (e.g. VLC) can by used to access the 112 Standard sound applications (e.g. aplay, arecord, audacity) can by 118 Section 2.1 Configuration and Data Link 125 directory will be used as a reference for the link and it will contain the [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | port.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 64 return -EPERM; in mlx5_port_set_eth_ptys() 101 err = -EINVAL; in mlx5e_port_linkspeed() 104 *speed = info->speed; in mlx5e_port_linkspeed() 118 return -ENOMEM; in mlx5e_port_query_pbmc() 135 return -ENOMEM; in mlx5e_port_set_pbmc() 229 err = -ENOMEM; in mlx5e_port_query_priority2buffer() 261 err = -ENOMEM; in mlx5e_port_set_priority2buffer() 315 #define MLX5E_FEC_OVERRIDE_ADMIN_POLICY(buf, policy, write, link) \ argument [all …]
|
/linux/tools/perf/scripts/perl/Perf-Trace-Util/ |
H A D | Makefile.PL | 1 # SPDX-License-Identifier: GPL-2.0 9 PREREQ_PM => {}, # e.g., Module::Name => 1.1 13 LIBS => [''], # e.g., '-lm' 14 DEFINE => '-I ../..', # e.g., '-DHAVE_SOMETHING' 15 INC => '-I.', # e.g., '-I. -I/usr/include/other' 16 # Un-comment this if you add C files to link with later: 17 OBJECT => 'Context.o', # link all the C files too
|
/linux/drivers/usb/cdns3/ |
H A D | cdnsp-mem.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <linux/dma-mapping.h> 18 #include "cdnsp-gadget.h" 19 #include "cdnsp-trace.h" 42 seg->trbs = dma_pool_zalloc(pdev->segment_pool, flags, &dma); in cdnsp_segment_alloc() 43 if (!seg->trbs) { in cdnsp_segment_alloc() 49 seg->bounce_buf = kzalloc(max_packet, flags | GFP_DMA); in cdnsp_segment_alloc() 50 if (!seg->bounce_buf) in cdnsp_segment_alloc() 57 seg->trbs[i].link.control |= cpu_to_le32(TRB_CYCLE); in cdnsp_segment_alloc() 59 seg->dma = dma; in cdnsp_segment_alloc() [all …]
|
/linux/Documentation/devicetree/bindings/remoteproc/ |
H A D | qcom,glink-rpm-edge.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/qcom,glink-rpm-edge.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Qualcomm G-Link RPM edge 10 Qualcomm G-Link edge, a FIFO based mechanism for communication with Resource 14 - Bjorn Andersson <andersson@kernel.org> 18 const: qcom,glink-rpm 30 - description: rpm_hlos mailbox in APCS 32 qcom,remote-pid: [all …]
|
/linux/drivers/net/phy/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 12 PHYlink models the link between the PHY and MAC, allowing fixed 32 bool "Support LED triggers for tracking link state" 35 Adds support for a set of LED trigger events per-PHY. Link 37 LED class driver. There are triggers for each link speed currently 38 supported by the PHY and also a one common "link" trigger as a 39 logical-or of all the link speed ones. 44 <Speed in megabits>Mbps OR <Speed in gigabits>Gbps OR link 58 tristate "MDIO Bus/PHY emulation with fixed speed/link PHYs" 64 Currently tested with mpc866ads and mpc8349e-mitx. [all …]
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_port.c | 1 // SPDX-License-Identifier: GPL-2.0+ 31 status->an_complete = true; in decode_sgmii_word() 33 status->link = false; in decode_sgmii_word() 39 status->speed = SPEED_10; in decode_sgmii_word() 42 status->speed = SPEED_100; in decode_sgmii_word() 45 status->speed = SPEED_1000; in decode_sgmii_word() 48 status->link = false; in decode_sgmii_word() 52 status->duplex = DUPLEX_FULL; in decode_sgmii_word() 54 status->duplex = DUPLEX_HALF; in decode_sgmii_word() 59 status->link = !(lp_abil & ADVERTISE_RFAULT) && status->link; in decode_cl37_word() [all …]
|
/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | lio_vf_main.c | 7 * Copyright (c) 2003-2016 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 36 static int debug = -1; 65 (CN23XX_DEFAULT_INPUT_JABBER - OCTNIC_GSO_MAX_HEADER_SIZE) 75 struct octeon_device_priv *oct_priv = oct->priv; in lio_wait_for_oq_pkts() 84 if (!(oct->io_qmask.oq & BIT_ULL(i))) in lio_wait_for_oq_pkts() 86 pkt_cnt += octeon_droq_check_hw_for_pkts(oct->droq[i]); in lio_wait_for_oq_pkts() 90 tasklet_schedule(&oct_priv->droq_tasklet); in lio_wait_for_oq_pkts() 95 } while (retry-- && pending_pkts); in lio_wait_for_oq_pkts() 101 * pcierror_quiesce_device - Cause device to go quiet so it can be safely removed/reset/etc [all …]
|
/linux/include/uapi/linux/ |
H A D | landlock.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Landlock - User space API 5 * Copyright © 2017-2020 Mickaël Salaün <mic@digikod.net> 6 * Copyright © 2018-2020 ANSSI 7 * Copyright © 2021-2025 Microsoft Corporation 16 * struct landlock_ruleset_attr - Ruleset definition. 51 * resources (e.g. IPCs). 59 * - %LANDLOCK_CREATE_RULESET_VERSION: Get the highest supported Landlock ABI 61 * - %LANDLOCK_CREATE_RULESET_ERRATA: Get a bitmask of fixed issues. 63 /* clang-format off */ [all …]
|
/linux/Documentation/networking/device_drivers/wwan/ |
H A D | iosm.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 3 .. Copyright (C) 2020-21 Intel Corporation 24 - mbimcli (included with the libmbim [2] library), and 25 - Modem Manager [3] 29 - open the MBIM control channel 30 - configure network connection settings 31 - connect to network 32 - configure IP network interface 37 described in [1] Mobile Broadband Interface Model v1.0 Errata-1. 40 ---------------------------------- [all …]
|