| /linux/Documentation/netlink/specs/ |
| H A D | nlctrl.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 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 [all …]
|
| H A D | rt-link.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 3 name: rt-link 4 protocol: netlink-raw 5 uapi-header: linux/rtnetlink.h 8 doc: >- 12 - 13 name: ifinfo-flags 16 enum-name: net-device-flags 17 name-prefix: iff- [all …]
|
| H A D | rt-neigh.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 3 name: rt-neigh 4 protocol: netlink-raw 5 uapi-header: linux/rtnetlink.h 8 doc: >- 12 - 16 - 17 name: ndm-family 19 - [all …]
|
| H A D | rt-addr.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 3 name: rt-addr 4 protocol: netlink-raw 5 uapi-header: linux/rtnetlink.h 8 doc: >- 12 - 16 - 17 name: ifa-family 19 - [all …]
|
| H A D | dev-energymodel.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 5 --- 6 name: dev-energymodel 13 uapi-header: linux/dev_energymodel.h 16 - 18 name: perf-state-flags 20 - 21 name: perf-state-inefficient 22 doc: >- 23 The performance state is inefficient. There is in this perf-domain, [all …]
|
| H A D | rt-route.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 3 name: rt-route 4 protocol: netlink-raw 5 uapi-header: linux/rtnetlink.h 8 doc: >- 12 - 13 name: rtm-type 14 name-prefix: rtn- 15 enum-name: [all …]
|
| H A D | nfsd.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 5 uapi-header: linux/nfsd_netlink.h 10 - 12 name: cache-type 14 - 16 name: export-flags 19 - readonly 20 - insecure-port 21 - rootsquash [all …]
|
| H A D | ovpn.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 5 # Copyright (c) 2024-2025, OpenVPN Inc. 7 --- 15 - 17 name: nonce-tail-size 19 - 21 name: cipher-alg 22 entries: [none, aes-gcm, chacha20-poly1305] 23 - 25 name: del-peer-reason [all …]
|
| H A D | nl80211.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 4 protocol: genetlink-legacy 6 doc: >- 10 - 14 - unspec 15 - get-wiphy 16 - set-wiphy 17 - new-wiphy 18 - del-wiphy [all …]
|
| H A D | dpll.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 8 - 16 - 20 - 23 render-max: true 24 - 26 name: lock-status 31 - 37 - [all …]
|
| H A D | netdev.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 5 doc: >- 9 - 11 name: page-size 17 - 19 name: xdp-act 20 render-max: true 22 - 24 doc: >- [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| H A D | bridge_mcast.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 19 INIT_LIST_HEAD(&bridge->mdb_list); in mlx5_esw_bridge_mdb_init() 20 return rhashtable_init(&bridge->mdb_ht, &mdb_ht_params); in mlx5_esw_bridge_mdb_init() 25 rhashtable_destroy(&bridge->mdb_ht); in mlx5_esw_bridge_mdb_cleanup() 32 return xa_load(&entry->ports, mlx5_esw_bridge_port_key(port)); in mlx5_esw_bridge_mdb_port_lookup() 38 int err = xa_insert(&entry->ports, mlx5_esw_bridge_port_key(port), port, GFP_KERNEL); in mlx5_esw_bridge_mdb_port_insert() 41 entry->num_ports++; in mlx5_esw_bridge_mdb_port_insert() 48 xa_erase(&entry->ports, mlx5_esw_bridge_port_key(port)); in mlx5_esw_bridge_mdb_port_remove() 49 entry->num_ports--; in mlx5_esw_bridge_mdb_port_remove() 60 int num_dests = entry->num_ports, i = 0; in mlx5_esw_bridge_mdb_flow_create() [all …]
|
| H A D | legacy.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 25 struct mlx5_core_dev *dev = esw->dev; in esw_create_legacy_vepa_table() 33 return -EOPNOTSUPP; in esw_create_legacy_vepa_table() 46 esw->fdb_table.legacy.vepa_fdb = fdb; in esw_create_legacy_vepa_table() 53 esw_debug(esw->dev, "Destroy FDB Table\n"); in esw_destroy_legacy_fdb_table() 54 if (!esw->fdb_table.legacy.fdb) in esw_destroy_legacy_fdb_table() 57 if (esw->fdb_table.legacy.promisc_grp) in esw_destroy_legacy_fdb_table() 58 mlx5_destroy_flow_group(esw->fdb_table.legacy.promisc_grp); in esw_destroy_legacy_fdb_table() 59 if (esw->fdb_table.legacy.allmulti_grp) in esw_destroy_legacy_fdb_table() 60 mlx5_destroy_flow_group(esw->fdb_table.legacy.allmulti_grp); in esw_destroy_legacy_fdb_table() [all …]
|
| /linux/tools/net/ynl/pyynl/lib/ |
| H A D | doc_generator.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8; mode: python -*- 40 def headroom(level: int) -> str: 45 def bold(text: str) -> str: 50 def inline(text: str) -> str: 55 def sanitize(text: str) -> str: 60 def rst_fields(self, key: str, value: str, level: int = 0) -> str: 64 def rst_definition(self, key: str, value: Any, level: int = 0) -> str: 68 def rst_paragraph(self, paragraph: str, level: int = 0) -> str: 72 def rst_bullet(self, item: str, level: int = 0) -> str: [all …]
|
| H A D | nlspec.py | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 # pylint: disable=missing-function-docstring, too-many-instance-attributes, too-many-branches 47 self.ident_name = self.name.replace('-', '_') 128 value_start = self.yaml.get('value-start', 0) 175 sub-message type 177 is_auto_scalar bool, attr is a variable-size scalar 185 self.is_multi = yaml.get('multi-attr', False) 187 self.sub_type = yaml.get('sub-type') 188 self.byte_order = yaml.get('byte-order') 190 self.display_hint = yaml.get('display-hint') [all …]
|
| /linux/drivers/infiniband/core/ |
| H A D | uverbs_main.c | 18 * - Redistributions of source code must retain the above 22 * - Redistributions in binary form must reproduce the above 71 IB_UVERBS_NUM_DYNAMIC_MINOR = IB_UVERBS_MAX_DEVICES - IB_UVERBS_NUM_FIXED_MINOR, 97 struct ib_pd *pd = mw->pd; in uverbs_dealloc_mw() 100 ret = mw->device->ops.dealloc_mw(mw); in uverbs_dealloc_mw() 104 atomic_dec(&pd->usecnt); in uverbs_dealloc_mw() 114 uverbs_destroy_api(dev->uapi); in ib_uverbs_release_dev() 115 cleanup_srcu_struct(&dev->disassociate_srcu); in ib_uverbs_release_dev() 116 mutex_destroy(&dev->lists_mutex); in ib_uverbs_release_dev() 117 mutex_destroy(&dev->xrcd_tree_mutex); in ib_uverbs_release_dev() [all …]
|
| /linux/tools/testing/selftests/drivers/net/bonding/ |
| H A D | bond_options.sh | 2 # SPDX-License-Identifier: GPL-2.0 24 ip -n ${s_ns} link set eth0 type bond_slave prio 10 25 [[ $? -ne 0 ]] && skip=0 28 ip -n ${s_ns} -d link show eth0 | grep -q "prio 10" 29 [[ $? -ne 0 ]] && skip=0 39 ip -n ${s_ns} link add bond1 type bond ns_ip6_target ${g_ip6} 40 [[ $? -ne 0 ]] && skip=0 43 ip -n ${s_ns} -d link show bond1 | grep -q "ns_ip6_target ${g_ip6}" 44 [[ $? -ne 0 ]] && skip=0 46 ip -n ${s_ns} link del bond1 [all …]
|
| /linux/Documentation/netlink/ |
| H A D | genetlink.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 15 len-or-define: 17 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 19 len-or-limit: 20 # literal int, const name, or limit based on fixed-width type 21 # e.g. u8-min, u16-max, etc. [all …]
|
| H A D | genetlink-c.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-c.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 16 len-or-limit: 17 # literal int, const name, or limit based on fixed-width type 18 # e.g. u8-min, u16-max, etc. 20 pattern: ^[0-9A-Za-z_-]+$ [all …]
|
| H A D | genetlink-legacy.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 15 len-or-define: 17 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 19 len-or-limit: 20 # literal int, const name, or limit based on fixed-width type 21 # e.g. u8-min, u16-max, etc. [all …]
|
| H A D | netlink-raw.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 12 name-cap: 14 pattern: ^[0-9a-zA-Z-]+$ 18 len-or-define: 20 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 22 len-or-limit: [all …]
|
| /linux/tools/testing/selftests/net/ovpn/ |
| H A D | ovpn-cli.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2020-2025 OpenVPN, Inc. 147 ret = nl_recvmsgs(ctx->nl_sock, ctx->nl_cb); in ovpn_nl_recvmsgs() 150 case -NLE_INTR: in ovpn_nl_recvmsgs() 152 "netlink received interrupt due to signal - ignoring\n"); in ovpn_nl_recvmsgs() 154 case -NLE_NOMEM: in ovpn_nl_recvmsgs() 157 case -NLE_AGAIN: in ovpn_nl_recvmsgs() 159 "netlink reports blocking read - aborting wait\n"); in ovpn_nl_recvmsgs() 164 ret, nl_geterror(-ret)); in ovpn_nl_recvmsgs() 181 ctx->nl_sock = nl_socket_alloc(); in nl_ctx_alloc_flags() [all …]
|
| /linux/drivers/s390/net/ |
| H A D | qeth_l3_main.c | 1 // SPDX-License-Identifier: GPL-2.0 61 if (query->is_multicast) { in qeth_l3_find_addr_by_ip() 62 hash_for_each_possible(card->rx_mode_addrs, addr, hnode, key) in qeth_l3_find_addr_by_ip() 66 hash_for_each_possible(card->ip_htable, addr, hnode, key) in qeth_l3_find_addr_by_ip() 80 for (j = 7; j >= 0; --j) { in qeth_l3_convert_addr_to_bits() 95 if (!card->ipato.enabled) in qeth_l3_is_addr_covered_by_ipato() 97 if (addr->type != QETH_IP_TYPE_NORMAL) in qeth_l3_is_addr_covered_by_ipato() 100 qeth_l3_convert_addr_to_bits((u8 *) &addr->u, addr_bits, in qeth_l3_is_addr_covered_by_ipato() 101 (addr->proto == QETH_PROT_IPV4) ? 4 : 16); in qeth_l3_is_addr_covered_by_ipato() 102 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_is_addr_covered_by_ipato() [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | mac80211.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2012-2014, 2018-2026 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 20 #include "iwl-drv.h" 21 #include "iwl-op-mode.h" 22 #include "iwl-io.h" 25 #include "time-event.h" 26 #include "iwl-nvm-utils.h" 27 #include "iwl-phy-db.h" [all …]
|
| /linux/drivers/net/ethernet/rocker/ |
| H A D | rocker_ofdpa.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * drivers/net/ethernet/rocker/rocker_ofdpa.c - Rocker switch OF-DPA-like 6 * Copyright (c) 2014-2016 Jiri Pirko <jiri@mellanox.com> 257 vlan_id = ofdpa_port->internal_vlan_id; in ofdpa_port_vid_to_vlan() 277 return ofdpa_port->bridge_dev && in ofdpa_port_is_slave() 278 !strcmp(ofdpa_port->bridge_dev->rtnl_link_ops->kind, kind); in ofdpa_port_is_slave() 310 entry->key.ig_port.in_pport)) in ofdpa_cmd_flow_tbl_add_ig_port() 311 return -EMSGSIZE; in ofdpa_cmd_flow_tbl_add_ig_port() 313 entry->key.ig_port.in_pport_mask)) in ofdpa_cmd_flow_tbl_add_ig_port() 314 return -EMSGSIZE; in ofdpa_cmd_flow_tbl_add_ig_port() [all …]
|