/linux/tools/testing/selftests/tc-testing/tc-tests/filters/ |
H A D | flow.json | 3 "id": "5294", string 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 18 …"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst … 25 "id": "3514", string 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 40 …"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst.… 47 "id": "7534", string 59 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… [all …]
|
H A D | matchall.json | 3 "id": "f62b", string 4 "name": "Add ingress matchall filter for protocol ipv4 and action PASS", 15 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 17 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 18 …"matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*r… 25 "id": "7f09", string 26 "name": "Add egress matchall filter for protocol ipv4 and action PASS", 37 …"cmdUnderTest": "$TC filter add dev $DUMMY parent 1: handle 0x1 prio 1 protocol ip matchall action… 39 "verifyCmd": "$TC filter get dev $DUMMY parent 1: handle 1 prio 1 protocol ip matchall", 40 …"matchPattern": "^filter parent 1: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*ref … [all …]
|
H A D | fw.json | 3 "id": "901f", string 4 "name": "Add fw filter with prio at 32-bit maxixum", 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65535 protocol all fw", 25 "id": "51e2", string 26 "name": "Add fw filter with prio exceeding 32-bit maxixum", 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65536 protocol all fw", 47 "id": "d987", string 61 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw", 69 "id": "c591", string 84 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw", [all …]
|
H A D | u32.json | 3 "id": "afa9", string 15 …"cmdUnderTest": "$TC filter add dev $DEV1 ingress protocol ip prio 1 u32 match ip src 127.0.0.1/32… 18 …"matchPattern": "filter protocol ip pref 1 u32 chain (0[ ]+$|0 fh 800: ht divisor 1|0 fh 800::800 … 25 "id": "6aa7", string 37 …"cmdUnderTest": "$TC filter replace dev $DEV1 ingress protocol ip prio 1 u32 match ip src 127.0.0.… 40 "matchPattern": "filter protocol ip pref 1 u32 chain 0", 47 "id": "bc4d", string 58 …"$TC filter add dev $DEV1 ingress protocol ip prio 1 u32 match ip src 127.0.0.3/32 flowid 1:3 acti… 60 …"cmdUnderTest": "$TC filter replace dev $DEV1 ingress protocol ip prio 1 u32 match ip src 127.0.0.… 63 …"matchPattern": "filter protocol ip pref 1 u32 chain (0[ ]+$|0 fh 800: ht divisor 1|0 fh 800::800 … [all …]
|
H A D | bpf.json | 3 "id": "23c3", string 7 "bpf-filter" 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 100 bpf bytecode … 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 100 bpf", 18 …"matchPattern": "filter parent ffff: protocol ip pref 100 bpf chain [0-9]+ handle 0x1.*bytecode '4… 25 "id": "1563", string 29 "bpf-filter" 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 100 bpf bytecode … 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 100 bpf", 40 …"matchPattern": "filter parent ffff: protocol ip pref 100 bpf chain [0-9]+ handle 0x1.*bytecode '4… [all …]
|
H A D | flower.json | 3 "id": "e41d", string 15 "cmdUnderTest": "bash -c \"find $BATCH_DIR/add* -print | xargs -n 1 -P 10 $TC -b\"", 17 "verifyCmd": "$TC -s filter show dev $DEV2 ingress", 18 "matchPattern": "filter protocol ip pref 1 flower chain 0 handle", 22 "/bin/rm -rf $BATCH_DIR" 26 "id": "6f52", string 37 "$TC -b $BATCH_DIR/add_0", 40 "cmdUnderTest": "bash -c \"find $BATCH_DIR/del* -print | xargs -n 1 -P 10 $TC -b\"", 42 "verifyCmd": "$TC -s filter show dev $DEV2 ingress", 43 "matchPattern": "filter protocol ip pref 1 flower chain 0 handle", [all …]
|
/linux/tools/testing/selftests/tc-testing/tc-tests/infra/ |
H A D | actions.json | 3 "id": "abdc", string 16 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 18 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 19 "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 26 "id": "7a70", string 37 "$TC action add action mpls pop protocol ipv4 index 1" 39 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 41 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 42 "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 49 "id": "d241", string [all …]
|
H A D | qdiscs.json | 3 "id": "ca5e", string 21 "ping -c1 -W0.01 -I $DUMMY 10.10.10.1 || true", 25 "cmdUnderTest": "ping -c1 -W0.01 -I $DUMMY 10.10.10.1", 27 "verifyCmd": "$TC -s qdisc ls dev $DUMMY", 36 "id": "e4b7", string 51 "ping -c1 -W0.01 -I $DUMMY 10.10.10.1 || true", 55 "cmdUnderTest": "ping -c1 -W0.01 -I $DUMMY 10.10.10.1", 66 "id": "33a9", string 85 "ping -c1 -W0.01 -I $DUMMY 10.10.10.1 || true" 99 "id": "a4b9", string [all …]
|
/linux/tools/testing/selftests/tc-testing/tc-tests/actions/ |
H A D | vlan.json | 3 "id": "6f5a", string 23 "matchPattern": "action order [0-9]+: vlan.*pop.*pipe.*index 8 ref", 30 "id": "df35", string 50 "matchPattern": "action order [0-9]+: vlan.*pop.*pass.*index 8 ref", 57 "id": "b0d4", string 77 "matchPattern": "action order [0-9]+: vlan.*pop.*drop.*index 8 ref", 84 "id": "95ee", string 104 "matchPattern": "action order [0-9]+: vlan.*pop.*reclassify.*index 8 ref", 111 "id": "0283", string 131 "matchPattern": "action order [0-9]+: vlan.*pop.*continue.*index 8 ref", [all …]
|
H A D | mpls.json | 3 "id": "a933", string 23 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*pipe.*index 8 ref", 30 "id": "08d1", string 50 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*pass.*index 8 ref", 57 "id": "d786", string 77 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*drop.*index 8 ref", 84 "id": "f334", string 104 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*reclassify.*index 8 ref", 111 "id": "29bd", string 131 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*continue.*index 8 ref", [all …]
|
/linux/drivers/firmware/arm_scmi/ |
H A D | protocols.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * System Control and Management Interface (SCMI) Message Protocol 44 * struct scmi_msg_resp_prot_version - Response for a message 61 * struct scmi_msg - Message(Tx/Rx) structure 72 * struct scmi_msg_hdr - Message(Tx/Rx) header 74 * @id: The identifier of the message being sent 75 * @protocol_id: The identifier of the protocol used to send @id message 85 u8 id; member 94 * struct scmi_xfer - Structure representing a message flow 96 * @transfer_id: Unique ID for debug & profiling purpose [all …]
|
H A D | driver.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * System Control and Management Interface (SCMI) Message Protocol driver 5 * SCMI Message Protocol is used between the System Control Processor(SCP) 7 * provides a mechanism for inter-processor communication between SCP's 14 * Copyright (C) 2018-2025 ARM Ltd. 25 #include <linux/io-64-nonatomic-hi-lo.h> 48 #define SCMI_VENDOR_MODULE_ALIAS_FMT "scmi-protocol-0x%02x-%s" 58 /* Track the unique id for the transfers for debug & profiling purpose */ 64 * struct scmi_xfers_info - Structure to manage transfer information 72 * a number of xfers equal to the maximum allowed in-flight [all …]
|
H A D | notify.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2020-2021 ARM Ltd. 10 * SCMI Protocol specification allows the platform to signal events to 18 * Each SCMI Protocol implementation, during its initialization, registers with 28 * of the SCMI Protocol itself, the underlying notification chains are created 36 * All users provided callbacks and allocated notification-chains are stored in 44 * hash-keys. 47 * as described in the SCMI Protocol specification, while src_id represents an 48 * optional, protocol dependent, source identifier (like domain_id, perf_id 54 * pushes the event-data itself on a protocol-dedicated kfifo queue for further [all …]
|
H A D | notify.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * System Control and Management Interface (SCMI) Message Protocol 7 * Copyright (C) 2020-2021 ARM Ltd. 19 * struct scmi_event - Describes an event to be supported 20 * @id: Event ID 24 * Each SCMI protocol, during its initialization phase, can describe the events 29 u8 id; member 37 * struct scmi_event_ops - Protocol helpers called by the notification core. 41 * protocol 43 * using the proper custom protocol commands. [all …]
|
H A D | base.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * System Control and Management Interface (SCMI) Base Protocol 5 * Copyright (C) 2018-2021 ARM Ltd. 8 #define pr_fmt(fmt) "SCMI Notifications BASE - " fmt 59 * scmi_base_attributes_get() - gets the implementation details 60 * that are associated with the base protocol. 62 * @ph: SCMI protocol handle 71 struct scmi_revision_info *rev = ph->get_priv(ph); in scmi_base_attributes_get() 73 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, in scmi_base_attributes_get() 78 ret = ph->xops->do_xfer(ph, t); in scmi_base_attributes_get() [all …]
|
/linux/include/uapi/linux/ |
H A D | if_ether.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 3 * INET An implementation of the TCP/IP protocol suite for the LINUX 44 * These are the defined Ethernet Protocol ID's. 52 #define ETH_P_IP 0x0800 /* Internet Protocol packet */ 55 #define ETH_P_BPQ 0x08FF /* G8BPQ AX.25 Ethernet Packet [ NOT AN OFFICIALLY REGISTERED ID ] */ 58 #define ETH_P_BATMAN 0x4305 /* B.A.T.M.A.N.-Advanced packet [ NOT AN OFFICIALLY REGISTERED ID ] */ 76 #define ETH_P_SLOW 0x8809 /* Slow Protocol. See 802.3ad 43B */ 77 #define ETH_P_WCCP 0x883E /* Web-cache coordination protocol 78 * defined in draft-wilson-wrec-wccp-v2-00.txt */ 85 #define ETH_P_ATMFATE 0x8884 /* Frame-based ATM Transport [all …]
|
/linux/drivers/usb/common/ |
H A D | usb-otg-fsm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * Jerry Huang <Chang-Ming.Huang@freescale.com> 19 #include <linux/usb/otg-fsm.h> 28 /* Change USB protocol when there is a protocol change */ 29 static int otg_set_protocol(struct otg_fsm *fsm, int protocol) in otg_set_protocol() argument 33 if (fsm->protocol != protocol) { in otg_set_protocol() 34 VDBG("Changing role fsm->protocol= %d; new protocol= %d\n", in otg_set_protocol() 35 fsm->protocol, protocol); in otg_set_protocol() 36 /* stop old protocol */ in otg_set_protocol() 37 if (fsm->protocol == PROTO_HOST) in otg_set_protocol() [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | q_in_q_veto.sh | 2 # SPDX-License-Identifier: GPL-2.0 57 protocol $netdev_proto id 100 2>/dev/null 61 protocol $netdev_proto id 100 2>&1 >/dev/null \ 62 | grep -q mlxsw_spectrum 75 protocol 802.1ad id 100 2>/dev/null 79 protocol 802.1ad id 100 2>&1 >/dev/null \ 80 | grep -q mlxsw_spectrum 98 protocol 802.1ad id 100 2>/dev/null 102 protocol 802.1ad id 100 2>&1 >/dev/null \ 103 | grep -q mlxsw_spectrum [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | tc_actions.sh | 2 # SPDX-License-Identifier: GPL-2.0 60 local protocol=$2 66 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 69 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 70 -t ip -q 75 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 79 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 80 -t ip -q 85 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 87 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower [all …]
|
H A D | tc_vlan_modify.sh | 2 # SPDX-License-Identifier: GPL-2.0 113 tc filter add dev $swp1 ingress protocol all pref 1 handle 1 \ 114 flower action vlan modify id 65 115 tc filter add dev $swp2 ingress protocol all pref 1 handle 1 \ 116 flower action vlan modify id 85 126 tc filter del dev $swp2 ingress protocol all pref 1 handle 1 flower 127 tc filter del dev $swp1 ingress protocol all pref 1 handle 1 flower 140 tc filter add dev $swp1 egress protocol all pref 1 handle 1 \ 141 flower action vlan modify id 85 142 tc filter add dev $swp2 egress protocol all pref 1 handle 1 \ [all …]
|
/linux/drivers/isdn/mISDN/ |
H A D | stack.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 printk(KERN_DEBUG "%s prim(%x) id(%x) %p\n", in _queue_message() 27 __func__, hh->prim, hh->id, skb); in _queue_message() 28 skb_queue_tail(&st->msgq, skb); in _queue_message() 29 if (likely(!test_bit(mISDN_STACK_STOPPED, &st->status))) { in _queue_message() 30 test_and_set_bit(mISDN_STACK_WORK, &st->status); in _queue_message() 31 wake_up_interruptible(&st->workq); in _queue_message() 38 _queue_message(ch->st, skb); in mISDN_queue_message() 43 get_channel4id(struct mISDNstack *st, u_int id) in get_channel4id() argument 47 mutex_lock(&st->lmutex); in get_channel4id() [all …]
|
/linux/Documentation/networking/ |
H A D | phonet.rst | 1 .. SPDX-License-Identifier: GPL-2.0 5 Linux Phonet protocol family 9 ------------ 11 Phonet is a packet protocol used by Nokia cellular modems for both IPC 19 - USB with the CDC Phonet interface, 20 - infrared, 21 - Bluetooth, 22 - an RS232 serial port (with a dedicated "FBUS" line discipline), 23 - the SSI bus with some TI OMAP processors. 27 -------------- [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_parser.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 37 u8 prio; /* 0-3: PG precedence within ALUs (3 highest) */ 41 /* Next protocol Key builder */ 160 u8 cd; /* Control Domain ID */ 201 u16 node_id; /* Node ID of protocol in parse graph */ 208 u32 next_proto; /* next Protocol value (must be last) */ 226 u16 next_node; /* Parser Node ID for the next round */ 228 bool is_pg; /* is protocol group */ 229 u8 proto_id; /* protocol ID or proto group ID */ 231 u8 marker_id; /* marker ID or marker group ID */ [all …]
|
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_fdir.c | 1 // SPDX-License-Identifier: GPL-2.0 31 * iavf_validate_fdir_fltr_masks - validate Flow Director filter fields masks 41 if (fltr->eth_mask.etype && fltr->eth_mask.etype != htons(U16_MAX)) in iavf_validate_fdir_fltr_masks() 44 if (fltr->ip_ver == 4) { in iavf_validate_fdir_fltr_masks() 45 if (fltr->ip_mask.v4_addrs.src_ip && in iavf_validate_fdir_fltr_masks() 46 fltr->ip_mask.v4_addrs.src_ip != htonl(U32_MAX)) in iavf_validate_fdir_fltr_masks() 49 if (fltr->ip_mask.v4_addrs.dst_ip && in iavf_validate_fdir_fltr_masks() 50 fltr->ip_mask.v4_addrs.dst_ip != htonl(U32_MAX)) in iavf_validate_fdir_fltr_masks() 53 if (fltr->ip_mask.tos && fltr->ip_mask.tos != U8_MAX) in iavf_validate_fdir_fltr_masks() 55 } else if (fltr->ip_ver == 6) { in iavf_validate_fdir_fltr_masks() [all …]
|
/linux/net/can/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 10 communications protocol. Development of the CAN bus started in 11 1983 at Robert Bosch GmbH, and the protocol was officially 14 applications. More information on the CAN network protocol family 24 tristate "Raw CAN Protocol (raw access with CAN-ID filtering)" 27 The raw CAN protocol option offers access to the CAN bus via 29 most cases where no higher level protocol is being used. The raw 30 socket has several filter options e.g. ID masking / error frames. 31 To receive/send raw CAN messages, use AF_CAN with protocol CAN_RAW. 34 tristate "Broadcast Manager CAN Protocol (with content filtering)" [all …]
|