/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 | handshake.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 7 --- 15 - 17 name: handler-class 18 value-start: 0 20 - 22 name: msg-type 23 value-start: 0 25 - 28 value-start: 0 [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 …]
|
/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 …]
|
/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/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 | 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)?$ 27 required: [ name, doc, attribute-sets, operations ] [all …]
|
/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-2024 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 …]
|
/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 …]
|
H A D | ib_verbs.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 18 #include <linux/dma-mapping.h> 45 #include <linux/pci-tph.h> 202 if (attr->gid_type == IB_GID_TYPE_IB) in rdma_gid_attr_network_type() 205 if (attr->gid_type == IB_GID_TYPE_ROCE) in rdma_gid_attr_network_type() 208 if (ipv6_addr_v4mapped((struct in6_addr *)&attr->gid)) in rdma_gid_attr_network_type() 279 * This device supports a per-devic 2779 const struct attribute_group *groups[4]; global() member [all...] |
/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 …]
|
H A D | chip.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright(c) 2015 - 2020 Intel Corporation. 32 MODULE_PARM_DESC(num_vls, "Set number of Virtual Lanes to use (1-8)"); 78 #define SEC_SC_HALTED 0x4 /* per-context only */ 79 #define SEC_SPC_FREEZE 0x8 /* per-HFI only */ 87 * 0 - User Fecn Handling 88 * 1 - Vnic 89 * 2 - AIP 90 * 3 - Verbs 101 #define emulator_rev(dd) ((dd)->irev >> 8) [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. 143 ret = nl_recvmsgs(ctx->nl_sock, ctx->nl_cb); in ovpn_nl_recvmsgs() 146 case -NLE_INTR: in ovpn_nl_recvmsgs() 148 "netlink received interrupt due to signal - ignoring\n"); in ovpn_nl_recvmsgs() 150 case -NLE_NOMEM: in ovpn_nl_recvmsgs() 153 case -NLE_AGAIN: in ovpn_nl_recvmsgs() 155 "netlink reports blocking read - aborting wait\n"); in ovpn_nl_recvmsgs() 160 ret, nl_geterror(-ret)); in ovpn_nl_recvmsgs() 177 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 62 if (query->is_multicast) { in qeth_l3_find_addr_by_ip() 63 hash_for_each_possible(card->rx_mode_addrs, addr, hnode, key) in qeth_l3_find_addr_by_ip() 67 hash_for_each_possible(card->ip_htable, addr, hnode, key) in qeth_l3_find_addr_by_ip() 81 for (j = 7; j >= 0; --j) { in qeth_l3_convert_addr_to_bits() 96 if (!card->ipato.enabled) in qeth_l3_is_addr_covered_by_ipato() 98 if (addr->type != QETH_IP_TYPE_NORMAL) in qeth_l3_is_addr_covered_by_ipato() 101 qeth_l3_convert_addr_to_bits((u8 *) &addr->u, addr_bits, in qeth_l3_is_addr_covered_by_ipato() 102 (addr->proto == QETH_PROT_IPV4) ? 4 : 16); in qeth_l3_is_addr_covered_by_ipato() 103 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_is_addr_covered_by_ipato() [all …]
|
H A D | qeth_l2_main.c | 1 // SPDX-License-Identifier: GPL-2.0 44 rc = -EOPNOTSUPP; in qeth_l2_setdelmac_makerc() 47 rc = -ENOSPC; in qeth_l2_setdelmac_makerc() 51 rc = -EADDRINUSE; in qeth_l2_setdelmac_makerc() 55 rc = -EADDRNOTAVAIL; in qeth_l2_setdelmac_makerc() 58 rc = -ENOENT; in qeth_l2_setdelmac_makerc() 61 rc = -EIO; in qeth_l2_setdelmac_makerc() 73 return qeth_l2_setdelmac_makerc(card, cmd->hdr.return_code); in qeth_l2_send_setdelmac_cb() 86 return -ENOMEM; in qeth_l2_send_setdelmac() 88 cmd->data.setdelmac.mac_length = ETH_ALEN; in qeth_l2_send_setdelmac() [all …]
|
H A D | qeth_core_main.c | 1 // SPDX-License-Identifier: GPL-2.0 50 /* define dbf - Name, Pages, Areas, Maxlen, Level, View, Handle */ 78 switch (card->info.type) { in qeth_get_cardname() 84 return " Virtual NIC QDIO - OSM"; in qeth_get_cardname() 86 return " Virtual NIC QDIO - OSX"; in qeth_get_cardname() 91 switch (card->info.type) { in qeth_get_cardname() 111 switch (card->info.type) { in qeth_get_cardname_short() 124 switch (card->info.type) { in qeth_get_cardname_short() 126 switch (card->info.link_type) { in qeth_get_cardname_short() 166 spin_lock_irqsave(&card->thread_mask_lock, flags); in qeth_set_allowed_threads() [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> 256 vlan_id = ofdpa_port->internal_vlan_id; in ofdpa_port_vid_to_vlan() 276 return ofdpa_port->bridge_dev && in ofdpa_port_is_slave() 277 !strcmp(ofdpa_port->bridge_dev->rtnl_link_ops->kind, kind); in ofdpa_port_is_slave() 309 entry->key.ig_port.in_pport)) in ofdpa_cmd_flow_tbl_add_ig_port() 310 return -EMSGSIZE; in ofdpa_cmd_flow_tbl_add_ig_port() 312 entry->key.ig_port.in_pport_mask)) in ofdpa_cmd_flow_tbl_add_ig_port() 313 return -EMSGSIZE; in ofdpa_cmd_flow_tbl_add_ig_port() [all …]
|
/linux/net/bridge/ |
H A D | br_multicast.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 93 lockdep_assert_held_once(&br->multicast_lock); in br_sg_port_find() 95 return rhashtable_lookup_fast(&br->sg_port_tbl, sg_p, in br_sg_port_find() 102 return rhashtable_lookup(&br->mdb_hash_tbl, dst, br_mdb_rht_params); in br_mdb_ip_get_rcu() 110 lockdep_assert_held_once(&br->multicast_lock); in br_mdb_ip_get() 113 ent = rhashtable_lookup(&br->mdb_hash_tb in br_mdb_ip_get() [all...] |
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_main.c | 3 * Copyright (c) 2007-2013 Broadcom Corporation 36 #include <linux/dma-mapping.h> 83 #define FW_FILE_NAME_E1 "bnx2x/bnx2x-e1-" FW_FILE_VERSION ".fw" 84 #define FW_FILE_NAME_E1H "bnx2x/bnx2x-e1h-" FW_FILE_VERSION ".fw" 85 #define FW_FILE_NAME_E2 "bnx2x/bnx2x-e2-" FW_FILE_VERSION ".fw" 86 #define FW_FILE_NAME_E1_V15 "bnx2x/bnx2x-e1-" FW_FILE_VERSION_V15 ".fw" 87 #define FW_FILE_NAME_E1H_V15 "bnx2x/bnx2x-e1h-" FW_FILE_VERSION_V15 ".fw" 88 #define FW_FILE_NAME_E2_V15 "bnx2x/bnx2x-e2-" FW_FILE_VERSION_V15 ".fw" 117 MODULE_PARM_DESC(int_mode, " Force interrupt mode other than MSI-X " 124 static int mrrs = -1; [all …]
|
/linux/tools/net/ynl/pyynl/ |
H A D | ynl_gen_c.py | 2 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 20 return name.upper().replace('-', '_') 24 return name.lower().replace('-', '_') 29 Turn a string limit like u32-ma [all...] |
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | t4_hw.c | 4 * Copyright (c) 2003-2016 Chelsio Communications, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 43 * t4_wait_op_done_val - wait until an operation is completed 46 * @mask: a single-bit field within @reg that indicates completion 55 * operation completes and -EAGAIN otherwise. 68 if (--attempts == 0) in t4_wait_op_done_val() 69 return -EAGAIN; in t4_wait_op_done_val() 83 * t4_set_reg_field - set a register field to a value 102 * t4_read_indirect - read indirectly addressed registers [all …]
|
/linux/net/wireless/ |
H A D | nl80211.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * This is the new netlink-based wireless configuration interface. 5 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 6 * Copyright 2013-2014 Intel Mobile Communications GmbH 7 * Copyright 2015-2017 Intel Deutschland GmbH 8 * Copyright (C) 2018-2025 Intel Corporation 32 #include "rdev-op [all...] |
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi_pcol.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2009-2018 Solarflare Communications Inc. 5 * Copyright 2019-2020 Xilinx Inc. 13 /* Power-on reset state */ 35 /* The 'doorbell' addresses are hard-wired to alert the MC when written */ 38 /* The rest of these are firmware-defined */ 46 /* Values to be written to the per-port status dword in shared 71 * | | \--- Response 72 * | \------- Error 73 * \------------------------------ Resync (always set) [all …]
|