/linux/tools/testing/selftests/net/netfilter/ |
H A D | nft_nat.sh | 11 checktool "nft --version" "run test without nft tool" 12 checktool "socat -h" "run test without socat" 20 rm -f "$INFILE" "$OUTFILE" 38 ip -net "$ns0" link set veth0 up 39 ip -net "$ns0" addr add 10.0.1.1/24 dev veth0 40 ip -net "$ns0" addr add dead:1::1/64 dev veth0 nodad 42 ip -net "$ns0" link set veth1 up 43 ip -net "$ns0" addr add 10.0.2.1/24 dev veth1 44 ip -net "$ns0" addr add dead:2::1/64 dev veth1 nodad 51 ip -net "$ns" link set eth0 up [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_bpf2bpf.c | 1 // SPDX-License-Identifier: GPL-2.0 8 struct meta { struct 22 struct meta *meta = (struct meta *)data; in on_sample() argument 23 struct ipv4_packet *trace_pkt_v4 = data + sizeof(*meta); in on_sample() 24 unsigned char *raw_pkt = data + sizeof(*meta); in on_sample() 27 ASSERT_GE(size, sizeof(pkt_v4) + sizeof(*meta), "check_size"); in on_sample() 28 ASSERT_EQ(meta->ifindex, if_nametoindex("lo"), "check_meta_ifindex"); in on_sample() 29 ASSERT_EQ(meta->pkt_len, tst_ctx->pkt_size, "check_meta_pkt_len"); in on_sample() 33 if (meta->pkt_len > sizeof(pkt_v4)) { in on_sample() 34 for (int i = 0; i < meta->pkt_len - sizeof(pkt_v4); i++) in on_sample() [all …]
|
H A D | xdp_metadata.c | 1 // SPDX-License-Identifier: GPL-2.0 35 #define FAMILY AF_INET macro 80 xsk->umem_area = mmap(NULL, UMEM_SIZE, PROT_READ | PROT_WRITE, mmap_flags, -1, 0); in open_xsk() 81 if (!ASSERT_NEQ(xsk->umem_area, MAP_FAILED, "mmap")) in open_xsk() 82 return -1; in open_xsk() 84 ret = xsk_umem__create(&xsk->umem, in open_xsk() 85 xsk->umem_area, UMEM_SIZE, in open_xsk() 86 &xsk->fill, in open_xsk() 87 &xsk->comp, in open_xsk() 92 ret = xsk_socket__create(&xsk->socket, ifindex, QUEUE_ID, in open_xsk() [all …]
|
H A D | setget_sockopt.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) Meta Platforms, Inc. and affiliates. */ 16 #define CG_NAME "/setget-sockopt-test" 26 return -1; in create_netns() 29 return -1; in create_netns() 33 return -1; in create_netns() 37 return -1; in create_netns() 42 static void test_tcp(int family) in test_tcp() argument 44 struct setget_sockopt__bss *bss = skel->bss; in test_tcp() 49 sfd = start_server(family, SOCK_STREAM, in test_tcp() [all …]
|
/linux/Documentation/netlink/specs/ |
H A D | nlctrl.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 4 protocol: genetlink-legacy 5 uapi-header: linux/genetlink.h 8 genetlink meta-family that exposes information about all genetlink 12 - 13 name: op-flags 15 enum-name: 17 - admin-perm 18 - cmd-cap-do 19 - cmd-cap-dump [all …]
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | marvell,prestera.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: Marvell Prestera switch family 10 - Miquel Raynal <miquel.raynal@bootlin.com> 15 - items: 16 - enum: 17 - marvell,prestera-98dx3236 18 - marvell,prestera-98dx3336 19 - marvell,prestera-98dx4251 [all …]
|
/linux/Documentation/devicetree/bindings/clock/ |
H A D | fsl,imx8m-anatop.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/clock/fsl,imx8m-anatop.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NXP i.MX8M Family Anatop Module 10 - Peng Fan <peng.fan@nxp.com> 13 NXP i.MX8M Family anatop PLL module which generates PLL to CCM root. 18 - enum: 19 - fsl,imx8mm-anatop 20 - fsl,imx8mq-anatop [all …]
|
H A D | samsung,s2mps11.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: Samsung S2M and S5M family clock generator block 10 - Krzysztof Kozlowski <krzk@kernel.org> 13 This is a part of device tree bindings for S2M and S5M family of Power 20 dt-bindings/clock/samsung,s2mps11.h header. 28 - samsung,s2mps11-clk 29 - samsung,s2mps13-clk # S2MPS13 and S2MPS15 30 - samsung,s2mps14-clk [all …]
|
H A D | brcm,kona-ccu.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/clock/brcm,kona-ccu.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Broadcom Kona family clock control units (CCU) 10 - Florian Fainelli <florian.fainelli@broadcom.com> 11 - Ray Jui <rjui@broadcom.com> 12 - Scott Branden <sbranden@broadcom.com> 19 - include/dt-bindings/clock/bcm281xx.h for BCM281XX family 20 - include/dt-bindings/clock/bcm21664.h for BCM21664 family [all …]
|
/linux/Documentation/devicetree/bindings/reset/ |
H A D | st,stih407-picophyreset.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/reset/st,stih407-picophyreset.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics STi family Sysconfig Picophy SoftReset Controller 10 - Peter Griffin <peter.griffin@linaro.org> 14 disable on-chip PicoPHY USB2 phy(s) using "softreset" control bits found in 15 the STi family SoC system configuration registers. 24 const: st,stih407-picophyreset 26 '#reset-cells': [all …]
|
H A D | st,stih407-powerdown.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/reset/st,stih407-powerdown.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics STi family Sysconfig Peripheral Powerdown Reset Controller 10 - Srinivas Kandagatla <srinivas.kandagatla@st.com> 14 disable on-chip peripheral controllers such as USB and SATA, using 15 "powerdown" control bits found in the STi family SoC system configuration 26 const: st,stih407-powerdown 28 '#reset-cells': [all …]
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | nxp,isp1760.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: NXP ISP1760 family controller 10 - Sebastian Siewior <bigeasy@linutronix.de> 11 - Laurent Pinchart <laurent.pinchart@ideasonboard.com> 14 NXP ISP1760 family, which includes ISP1760/1761/1763 devicetree controller 20 - nxp,usb-isp1760 21 - nxp,usb-isp1761 22 - nxp,usb-isp1763 [all …]
|
/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A D | ti,pruss-intc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/ti,pruss-intc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TI PRU-ICSS Local Interrupt Controller 10 - Suman Anna <s-anna@ti.com> 13 Each PRU-ICSS has a single interrupt controller instance that is common 22 The property "ti,irqs-reserved" is used for denoting the connection 28 The K3 family of SoCs can handle 160 input events that can be mapped to 20 30 through 19) are connected to new sub-modules within the ICSSG instances. [all …]
|
/linux/net/netfilter/ |
H A D | nft_meta.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2008-2009 Patrick McHardy <kaber@trash.net> 42 secs -= NFT_META_SECS_PER_MINUTE * sys_tz.tz_minuteswest; in nft_meta_weekday() 83 const struct sk_buff *skb = pkt->skb; in nft_meta_get_eval_pkttype_lo() 87 if (ipv4_is_multicast(ip_hdr(skb)->daddr)) in nft_meta_get_eval_pkttype_lo() 96 switch (skb->protocol) { in nft_meta_get_eval_pkttype_lo() 106 if (ipv4_is_multicast(iph->daddr)) in nft_meta_get_eval_pkttype_lo() 134 struct sock *sk = skb_to_full_sk(pkt->skb); in nft_meta_get_eval_skugid() 140 read_lock_bh(&sk->sk_callback_lock); in nft_meta_get_eval_skugid() 141 sock = sk->sk_socket; in nft_meta_get_eval_skugid() [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | cirrus,cs530x.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: Cirrus Logic cs530x family of audio ADCs 10 - Paul Handrigan <paulha@opensource.cirrus.com> 11 - patches@opensource.cirrus.com 14 The CS530X devices are a family of high performance audio ADCs. 17 - $ref: dai-common.yaml# 22 - cirrus,cs5302 23 - cirrus,cs5304 [all …]
|
H A D | ti,j721e-cpb-audio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 5 --- 6 $id: http://devicetree.org/schemas/sound/ti,j721e-cpb-audio.yaml# 7 $schema: http://devicetree.org/meta-schemas/core.yaml# 12 - Peter Ujfalusi <peter.ujfalusi@gmail.com> 18 In order to support 48KHz and 44.1KHz family of sampling rates the parent 24 48KHz family: 25 PLL4 ---> PLL4_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk 26 |-> PLL4_HSDIV2 ---> AUDIO_REFCLK2 ---> pcm3168a.SCKI 28 44.1KHz family: [all …]
|
/linux/Documentation/devicetree/bindings/arm/ |
H A D | microchip,sparx5.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Lars Povlsen <lars.povlsen@microchip.com> 13 The Microchip Sparx5 SoC is a ARMv8-based used in a family of 14 gigabit TSN-capable gigabit switches. 16 The SparX-5 Ethernet switch family provides a rich set of switching 17 features such as advanced TCAM-based VLAN and QoS processing 19 TCAM-based frame processing using versatile content aware processor 27 - description: The Sparx5 pcb125 board is a modular board, [all …]
|
/linux/Documentation/devicetree/bindings/remoteproc/ |
H A D | renesas,rcar-rproc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/renesas,rcar-rproc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Renesas R-Car remote processor controller 10 - Julien Massot <julien.massot@iot.bzh> 14 boots firmwares on the Renesas R-Car family chipset. 15 R-Car gen3 family may have a realtime processor, this processor shares peripheral 20 const: renesas,rcar-cr7 25 power-domains: [all …]
|
H A D | ti,pru-rproc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/ti,pru-rproc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Suman Anna <s-anna@ti.com> 13 Each Programmable Real-Time Unit and Industrial Communication Subsystem 14 (PRU-ICSS or PRUSS) has two 32-bit load/store RISC CPU cores called 15 Programmable Real-Time Units (PRUs), each represented by a node. Each PRU 17 use the Data RAMs present within the PRU-ICSS for code execution. 27 corresponding PRU-ICSS node. Each node can optionally be rendered inactive by [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | cgrp_ls_attach_cgroup.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2022 Meta Platforms, Inc. and affiliates. */ 30 if (ctx->family != AF_INET6 || ctx->user_family != AF_INET6) in set_cookie() 33 sk = ctx->sk; in set_cookie() 42 tcp_sk->inet_conn.icsk_inet.sk.sk_cgrp_data.cgroup, 0, in set_cookie() 47 p->cookie_value = 0xF; in set_cookie() 48 p->cookie_key = bpf_get_socket_cookie(ctx); in set_cookie() 59 if (ctx->family != AF_INET6 || ctx->op != BPF_SOCK_OPS_TCP_CONNECT_CB) in update_cookie_sockops() 62 sk = ctx->sk; in update_cookie_sockops() 71 tcp_sk->inet_conn.icsk_inet.sk.sk_cgrp_data.cgroup, 0, 0); in update_cookie_sockops() [all …]
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | microchip,pac1934.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Marius Cristea <marius.cristea@microchip.com> 13 This device is part of the Microchip family of Power Monitors with 16 …oads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/PAC1931-Family-Data-Sheet-DS20005850E.… 21 - microchip,pac1931 22 - microchip,pac1932 23 - microchip,pac1933 24 - microchip,pac1934 [all …]
|
H A D | microchip,mcp3564.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Microchip MCP346X and MCP356X ADC Family 10 - Marius Cristea <marius.cristea@microchip.com> 13 Bindings for the Microchip family of 153.6 ksps, Low-Noise 16/24-Bit 14 Delta-Sigma ADCs with an SPI interface. Datasheet can be found here: 16 …s/aemDocuments/documents/MSLD/ProductDocuments/DataSheets/MCP3561-2-4-Family-Data-Sheet-DS20006181… 18 …ds/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3561_2_4R-Data-Sheet-DS200006391C.pdf 20 …ProductDocuments/DataSheets/MCP3461-2-4-Two-Four-Eight-Channel-153.6-ksps-Low-Noise-16-Bit-Delta-S… [all …]
|
/linux/Documentation/devicetree/bindings/media/i2c/ |
H A D | st,st-vgxy61.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/media/i2c/st,st-vgxy61.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: STMicroelectronics VGxy61 HDR Global Shutter Sensor Family 11 - Benjamin Mugnier <benjamin.mugnier@foss.st.com> 12 - Sylvain Petinot <sylvain.petinot@foss.st.com> 14 description: |- 15 STMicroelectronics VGxy61 family has a CSI-2 output port. CSI-2 output is a 19 - VG5661 and VG6661 are 1.6 Mpx (1464 x 1104) monochrome and color sensors. [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | bq2515x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: TI bq2515x 500-mA Linear charger family 11 - Andrew Davis <afd@ti.com> 14 The BQ2515x family is a highly integrated battery charge management IC that 17 push-button controller. 26 - ti,bq25150 27 - ti,bq25155 33 ac-detect-gpios: [all …]
|
/linux/Documentation/devicetree/bindings/net/bluetooth/ |
H A D | brcm,bcm4377-bluetooth.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/bluetooth/brcm,bcm4377-bluetooth.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Broadcom BCM4377 family PCIe Bluetooth Chips 10 - Sven Peter <sven@svenpeter.dev> 13 This binding describes Broadcom BCM4377 family PCIe-attached bluetooth chips 14 usually found in Apple machines. The Wi-Fi part of the chip is described in 15 bindings/net/wireless/brcm,bcm4329-fmac.yaml. 18 - $ref: bluetooth-controller.yaml# [all …]
|