| /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 …]
|
| 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 …]
|
| /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/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. 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-bi [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-device lkey or stag that can be 286 /* IB_QP_CREATE_INTEGRITY_EN is supported to implement T10-PI */ 476 default: return -1; in ib_mtu_enum_to_int() 568 default: return -1; in ib_width_enum_to_int() [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/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/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_V1 [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-max or s64-min into its numerical value 31 if name[0] == 'u' and name.endswith('-min'): 33 width = int(name[1:-4]) 35 width -= 1 36 value = (1 << width) - 1 37 if name[0] == 's' and name.endswith('-min'): 38 value = -value - 1 [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-ops.h" 42 /* multicast groups */ 50 NL80211_MCGRP_TESTMODE /* keep last - ifdef! */ 74 int wiphy_idx = -1; in __cfg80211_wdev_from_attrs() [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 …]
|