/openbmc/linux/drivers/infiniband/sw/rdmavt/ |
H A D | mcast.c | 1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause 12 #include "mcast.h" 15 * rvt_driver_mcast_init - init resources for multicast 26 spin_lock_init(&rdi->n_mcast_grps_lock); in rvt_driver_mcast_init() 30 * rvt_mcast_qp_alloc - alloc a struct to link a QP to mcast GID struct 41 mqp->qp = qp; in rvt_mcast_qp_alloc() 50 struct rvt_qp *qp = mqp->qp; in rvt_mcast_qp_free() 59 * rvt_mcast_alloc - allocate the multicast GID structure 67 struct rvt_mcast *mcast; in rvt_mcast_alloc() local 69 mcast = kzalloc(sizeof(*mcast), GFP_KERNEL); in rvt_mcast_alloc() [all …]
|
/openbmc/linux/Documentation/userspace-api/netlink/ |
H A D | netlink-raw.rst | 1 .. SPDX-License-Identifier: BSD-3-Clause 8 families such as ``NETLINK_ROUTE`` which use the ``netlink-raw`` protocol 14 The netlink-raw schema extends the :doc:`genetlink-legacy <genetlink-legacy>` 20 ------- 28 .. code-block:: yaml 30 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 32 name: rt-addr 33 protocol: netlink-raw 38 -------------------------- 46 .. code-block:: yaml [all …]
|
H A D | specs.rst | 1 .. SPDX-License-Identifier: BSD-3-Clause 17 - the C uAPI header 18 - documentation of the protocol as a ReST file 19 - policy tables for input attribute validation 20 - operation tables 25 See :doc:`intro-specs` for a practical starting guide. 28 ``((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)`` 40 - ``genetlink`` - most streamlined, should be used by all new families 41 - ``genetlink-c`` - superset of ``genetlink`` with extra attributes allowing 45 - ``genetlink-legacy`` - Generic Netlink catch all schema supporting quirks of [all …]
|
/openbmc/linux/Documentation/netlink/specs/ |
H A D | handshake.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 15 - 17 name: handler-class 18 value-start: 0 20 - 22 name: msg-type 23 value-start: 0 25 - 28 value-start: 0 31 attribute-sets: [all …]
|
H A D | netdev.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 9 - 11 name: xdp-act 12 render-max: true 14 - 19 - 23 - 24 name: ndo-xmit 27 - 28 name: xsk-zerocopy [all …]
|
H A D | rt_link.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 name: rt-link 4 protocol: netlink-raw 11 - 12 name: ifinfo-flags 15 - 17 - 19 - 21 - 23 - [all …]
|
H A D | rt_addr.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 name: rt-addr 4 protocol: netlink-raw 11 - 15 - 16 name: ifa-family 18 - 19 name: ifa-prefixlen 21 - 22 name: ifa-flags [all …]
|
H A D | ovs_vport.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 5 protocol: genetlink-legacy 6 uapi-header: linux/openvswitch.h 12 - 13 name: ovs-header 16 - 17 name: dp-ifindex 19 - 20 name: vport-type 22 enum-name: ovs-vport-type [all …]
|
H A D | ovs_datapath.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 5 protocol: genetlink-legacy 6 uapi-header: linux/openvswitch.h 12 - 13 name: ovs-header 16 - 17 name: dp-ifindex 19 - 20 name: user-features 22 name-prefix: ovs-dp-f- [all …]
|
H A D | ovs_flow.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 5 protocol: genetlink-legacy 6 uapi-header: linux/openvswitch.h 12 - 13 name: ovs-header 18 - 19 name: dp-ifindex 24 - 25 name: ovs-flow-stats 28 - [all …]
|
/openbmc/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 …]
|
/openbmc/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 12 len-or-define: 14 pattern: ^[0-9A-Za-z_]+( - 1)?$ 21 required: [ name, doc, attribute-sets, operations ] 36 uapi-header: 37 description: Path to the uAPI header, default is linux/${family-name}.h 51 description: For C-compatible languages, header which already defines this value. [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)?$ 21 required: [ name, doc, attribute-sets, operations ] 35 enum: [ genetlink, genetlink-c ] 36 uapi-header: 37 description: Path to the uAPI header, default is linux/${family-name}.h [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 12 len-or-define: 14 pattern: ^[0-9A-Za-z_]+( - 1)?$ 21 required: [ name, doc, attribute-sets, operations ] 35 enum: [ genetlink, genetlink-c, genetlink-legacy ] # Trim 36 uapi-header: 37 description: Path to the uAPI header, default is linux/${family-name}.h [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 12 len-or-define: 14 pattern: ^[0-9A-Za-z_]+( - 1)?$ 21 required: [ name, doc, attribute-sets, operations ] 31 enum: [ netlink-raw ] # Trim 32 # Start netlink-raw 34 description: Protocol number to use for netlink-raw [all …]
|
/openbmc/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 69 IB_UVERBS_NUM_DYNAMIC_MINOR = IB_UVERBS_MAX_DEVICES - IB_UVERBS_NUM_FIXED_MINOR, 93 * Must be called with the ufile->device->disassociate_srcu held, and the lock 103 struct ib_ucontext *ucontext = smp_load_acquire(&ufile->ucontext); in ib_uverbs_get_ucontext_file() 105 if (!srcu_dereference(ufile->device->ib_dev, in ib_uverbs_get_ucontext_file() 106 &ufile->device->disassociate_srcu)) in ib_uverbs_get_ucontext_file() 107 return ERR_PTR(-EIO); in ib_uverbs_get_ucontext_file() 110 return ERR_PTR(-EINVAL); in ib_uverbs_get_ucontext_file() 118 struct ib_pd *pd = mw->pd; in uverbs_dealloc_mw() [all …]
|
H A D | uverbs.h | 18 * - Redistributions of source code must retain the above 22 * - Redistributions in binary form must reproduce the above 60 udata->inbuf = ibuf; in ib_uverbs_init_udata() 61 udata->outbuf = obuf; in ib_uverbs_init_udata() 62 udata->inlen = ilen; in ib_uverbs_init_udata() 63 udata->outlen = olen; in ib_uverbs_init_udata() 105 const struct attribute_group *groups[2]; member 201 /* lock for mcast list */ 292 res = attr->port_cap_flags & ~(u32)IB_UVERBS_PCF_IP_BASED_GIDS; in make_port_cap_flags() 294 if (attr->ip_gids) in make_port_cap_flags() [all …]
|
/openbmc/linux/Documentation/networking/ |
H A D | statistics.rst | 1 .. SPDX-License-Identifier: GPL-2.0 14 - standard interface statistics based on 16 - protocol-specific statistics; and 17 - driver-defined statistics available via ethtool. 20 ----------------------------- 25 $ ip -s -s link show dev ens4u1u1 28 RX: bytes packets errors dropped overrun mcast 38 Note that `-s` has been specified twice to see all members of 40 If `-s` is specified once the detailed errors won't be shown. 42 `ip` supports JSON formatting via the `-j` option. [all …]
|
/openbmc/qemu/hw/net/rocker/ |
H A D | rocker-hmp-cmds.c | 10 * the COPYING file in the top-level directory. 12 * Contributions after 2012-01-13 are licensed under the terms of the 20 #include "qapi/qapi-commands-rocker.h" 34 monitor_printf(mon, "name: %s\n", rocker->name); in hmp_rocker() 35 monitor_printf(mon, "id: 0x%" PRIx64 "\n", rocker->id); in hmp_rocker() 36 monitor_printf(mon, "ports: %d\n", rocker->ports); in hmp_rocker() 55 for (port = list; port; port = port->next) { in hmp_rocker_ports() 56 monitor_printf(mon, "%10s %-4s %-3s %2s %s\n", in hmp_rocker_ports() 57 port->value->name, in hmp_rocker_ports() 58 port->value->enabled ? port->value->link_up ? in hmp_rocker_ports() [all …]
|
/openbmc/linux/tools/net/ynl/lib/ |
H A D | nlspec.py | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 37 self.ident_name = self.name.replace('-', '_') 119 value_start = self.yaml.get('value-start', 0) 166 self.is_multi = yaml.get('multi-attr', False) 168 self.sub_type = yaml.get('sub-type') 169 self.byte_order = yaml.get('byte-order') 171 self.display_hint = yaml.get('display-hint') 190 self.subset_of = self.yaml.get('subset-of', None) 244 self.byte_order = yaml.get('byte-order') 247 self.display_hint = yaml.get('display-hint') [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | wmi.h | 1 /* SPDX-License-Identifier: ISC */ 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 6 * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved. 29 * 1. Add new WMI commands ONLY within the specified range - 0x9000 - 0x9fff 45 * variable is already 4-byte aligned by virtue of being a u32 527 * for wmi_services is 64 as target is using only 4-bits of each 32-bit 533 __le32_to_cpu((wmi_svc_bmap)[((svc_id) - (len)) / 28]) & \ 534 BIT(((((svc_id) - (len)) % 28) & 0x1f) + 4)) [all …]
|
/openbmc/linux/include/rdma/ |
H A D | rdma_vt.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright(c) 2016 - 2019 Intel Corporation. 40 /* non-zero when timer is set */ 82 /* Hot-path per CPU counters to avoid cacheline trading to update */ 347 /* Driver specific QP modification/notification-of */ 424 u32 n_mcast_grps_allocated; /* number of mcast groups allocated */ 432 * rvt_set_ibdev_name - Craft an IB device name from client info 447 dev_set_name(&rdi->ibdev.dev, fmt, name, unit); in rvt_set_ibdev_name() 448 strscpy(rdi->ibdev.name, dev_name(&rdi->ibdev.dev), IB_DEVICE_NAME_MAX); in rvt_set_ibdev_name() 452 * rvt_get_ibdev_name - return the IB name [all …]
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_verbs.c | 2 * Copyright (c) 2012 - 2018 Intel Corporation. All rights reserved. 3 * Copyright (c) 2006 - 2012 QLogic Corporation. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 91 "Maximum number of multicast groups to support"); 140 struct rvt_sge *sg_list = ss->sg_list; in qib_count_sge() 141 struct rvt_sge sge = ss->sge; in qib_count_sge() 142 u8 num_sge = ss->num_sge; in qib_count_sge() 148 if (((long) sge.vaddr & (sizeof(u32) - 1)) || in qib_count_sge() 149 (len != length && (len & (sizeof(u32) - 1)))) { in qib_count_sge() [all …]
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | verbs.c | 1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause 3 * Copyright(c) 2015 - 2020 Intel Corporation. 68 "Maximum number of multicast groups to support"); 111 MODULE_PARM_DESC(wss_threshold, "Percentage (1-100) of LLC to use as a threshold for a cacheless co… 135 * Length of header by opcode, 0 --> not supported 276 if (!(ib_rvt_state_ops[packet->qp->state] & RVT_PROCESS_RECV_OK)) in qp_ok() 278 if (((packet->opcode & RVT_OPCODE_QP_MASK) == in qp_ok() 279 packet->qp->allowed_ops) || in qp_ok() 280 (packet->opcode == IB_OPCODE_CNP)) in qp_ok() 281 return opcode_handler_tbl[packet->opcode]; in qp_ok() [all …]
|