Home
last modified time | relevance | path

Searched +full:primary +full:- +full:bond (Results 1 – 24 of 24) sorted by relevance

/linux-6.12.1/drivers/net/bonding/
Dbond_procfs.c1 // SPDX-License-Identifier: GPL-2.0
14 struct bonding *bond = pde_data(file_inode(seq->file)); in bond_info_seq_start() local
24 bond_for_each_slave_rcu(bond, slave, iter) in bond_info_seq_start()
33 struct bonding *bond = pde_data(file_inode(seq->file)); in bond_info_seq_next() local
40 return bond_first_slave_rcu(bond); in bond_info_seq_next()
42 bond_for_each_slave_rcu(bond, slave, iter) { in bond_info_seq_next()
60 struct bonding *bond = pde_data(file_inode(seq->file)); in bond_info_show_master() local
62 struct slave *curr, *primary; in bond_info_show_master() local
65 curr = rcu_dereference(bond->curr_active_slave); in bond_info_show_master()
68 bond_mode_name(BOND_MODE(bond))); in bond_info_show_master()
[all …]
Dbond_options.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * drivers/net/bond/bond_options.c - bonding options
20 static int bond_option_active_slave_set(struct bonding *bond,
22 static int bond_option_miimon_set(struct bonding *bond,
24 static int bond_option_updelay_set(struct bonding *bond,
26 static int bond_option_downdelay_set(struct bonding *bond,
28 static int bond_option_peer_notif_delay_set(struct bonding *bond,
30 static int bond_option_use_carrier_set(struct bonding *bond,
32 static int bond_option_arp_interval_set(struct bonding *bond,
34 static int bond_option_arp_ip_target_add(struct bonding *bond, __be32 target);
[all …]
Dbond_main.c1 // SPDX-License-Identifier: GPL-1.0+
97 /*---------------------------- Module parameters ----------------------------*/
109 static char *primary; variable
147 MODULE_PARM_DESC(mode, "Mode of operation; 0 for balance-rr, "
148 "1 for active-backup, 2 for balance-xor, "
149 "3 for broadcast, 4 for 802.3ad, 5 for balance-tlb, "
150 "6 for balance-alb");
151 module_param(primary, charp, 0);
152 MODULE_PARM_DESC(primary, "Primary network device to use");
154 MODULE_PARM_DESC(primary_reselect, "Reselect primary slave "
[all …]
Dbond_netlink.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * drivers/net/bond/bond_netlink.c - Netlink interface for bonding
43 if (nla_put_u8(skb, IFLA_BOND_SLAVE_MII_STATUS, slave->link)) in bond_fill_slave_info()
47 slave->link_failure_count)) in bond_fill_slave_info()
51 slave_dev->addr_len, slave->perm_hwaddr)) in bond_fill_slave_info()
55 READ_ONCE(slave->queue_id))) in bond_fill_slave_info()
58 if (nla_put_s32(skb, IFLA_BOND_SLAVE_PRIO, slave->prio)) in bond_fill_slave_info()
61 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in bond_fill_slave_info()
65 ad_port = &SLAVE_AD_INFO(slave)->port; in bond_fill_slave_info()
66 agg = SLAVE_AD_INFO(slave)->port.aggregator; in bond_fill_slave_info()
[all …]
Dbond_sysfs.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright(c) 2004-2005 Intel Corporation. All rights reserved.
40 struct bonding *bond; in bonding_show_bonds() local
45 list_for_each_entry_rcu(bond, &bn->dev_list, bond_list) { in bonding_show_bonds()
46 if (res > (PAGE_SIZE - IFNAMSIZ)) { in bonding_show_bonds()
48 if ((PAGE_SIZE - res) > 10) in bonding_show_bonds()
49 res = PAGE_SIZE - 10; in bonding_show_bonds()
53 res += sysfs_emit_at(buf, res, "%s ", bond->dev->name); in bonding_show_bonds()
56 buf[res-1] = '\n'; /* eat the leftover space */ in bonding_show_bonds()
64 struct bonding *bond; in bond_get_by_name() local
[all …]
Dbond_alb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright(c) 1999 - 2004 Intel Corporation. All rights reserved.
37 u8 padding[ETH_ZLEN - ETH_HLEN];
56 static void rlb_purge_src_ip(struct bonding *bond, struct arp_pkt *arp);
57 static void rlb_src_unlink(struct bonding *bond, u32 index);
58 static void rlb_src_link(struct bonding *bond, u32 ip_src_hash,
77 entry->load_history = 1 + entry->tx_bytes / in tlb_init_table_entry()
79 entry->tx_bytes = 0; in tlb_init_table_entry()
82 entry->tx_slave = NULL; in tlb_init_table_entry()
83 entry->next = TLB_NULL_INDEX; in tlb_init_table_entry()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/media/
Drenesas,drif.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Renesas R-Car Gen3 Digital Radio Interface Controller (DRIF)
10 - Ramesh Shanmugasundaram <rashanmu@gmail.com>
11 - Fabrizio Castro <fabrizio.castro.jz@renesas.com>
14 R-Car Gen3 DRIF is a SPI like receive only slave device. A general
17 +---------------------+ +---------------------+
18 | |-----SCK------->|CLK |
19 | Master |-----SS-------->|SYNC DRIFn (slave) |
[all …]
/linux-6.12.1/tools/testing/selftests/drivers/net/bonding/
Dbond_options.sh2 # SPDX-License-Identifier: GPL-2.0
22 ip -n ${s_ns} link set eth0 type bond_slave prio 10
23 [[ $? -ne 0 ]] && skip=0
26 ip -n ${s_ns} -d link show eth0 | grep -q "prio 10"
27 [[ $? -ne 0 ]] && skip=0
37 ip -n ${s_ns} link add bond1 type bond ns_ip6_target ${g_ip6}
38 [[ $? -ne 0 ]] && skip=0
41 ip -n ${s_ns} -d link show bond1 | grep -q "ns_ip6_target ${g_ip6}"
42 [[ $? -ne 0 ]] && skip=0
44 ip -n ${s_ns} link del bond1
[all …]
Ddev_addr_lists.sh2 # SPDX-License-Identifier: GPL-2.0
4 # Test bond device handling of addr lists (dev->uc, mc)
40 # bond driver control paths vary between modes that have a primary slave
47 test_LAG_cleanup "bonding" "active-backup"
58 # Initial state of bond device, up | down
63 ip link add bond1 "$init_state" type bond mode 802.3ad
84 log_test "bonding LACPDU multicast address to slave (from bond $init_state)"
88 # of the bond when enslaving a device. Test both cases.
/linux-6.12.1/Documentation/networking/
Dbonding.rst1 .. SPDX-License-Identifier: GPL-2.0
11 Corrections, HA extensions: 2000/10/03-15:
13 - Willy Tarreau <willy at meta-x.org>
14 - Constantine Gavrilov <const-g at xpert.com>
15 - Chad N. Tindel <ctindel at ieee dot org>
16 - Janice Girouard <girouard at us dot ibm dot com>
17 - Jay Vosburgh <fubar at us dot ibm dot com>
22 - Mitch Williams <mitch.a.williams at intel.com>
35 the original tools from extreme-linux and beowulf sites will not work
119 -----------------------------------------------
[all …]
/linux-6.12.1/include/net/
Dbond_alb.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright(c) 1999 - 2004 Intel Corporation. All rights reserved.
14 #define BOND_ALB_INFO(bond) ((bond)->alb_info) argument
15 #define SLAVE_TLB_INFO(slave) ((slave)->tlb_info)
18 #define BOND_TLB_REBALANCE_INTERVAL 10 /* In seconds, periodic re-balancing.
19 * Used for division - never set
23 #define BOND_ALB_LP_INTERVAL(bond) (bond->params.lp_interval) /* In seconds, periodic send of argument
30 #define BOND_ALB_LP_TICKS(bond) (BOND_ALB_LP_INTERVAL(bond) \ argument
46 #define RLB_UPDATE_RETRY 3 /* 3-ticks - must be smaller than the rlb
78 /* -------------------------------------------------------------------------
[all …]
Dbonding.h1 /* SPDX-License-Identifier: GPL-1.0+ */
3 * Bond several ethernet interfaces into a Cisco, running 'Etherchannel'.
5 * Portions are (c) Copyright 1995 Simon "Guru Aleph-Null" Janes
43 netdev_info(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
45 netdev_warn(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
47 netdev_dbg(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
49 netdev_err(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
51 #define BOND_MODE(bond) ((bond)->params.mode) argument
54 #define bond_slave_list(bond) (&(bond)->dev->adj_list.lower) argument
56 #define bond_has_slaves(bond) !list_empty(bond_slave_list(bond)) argument
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_lag.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) 2018-2021, Intel Corporation. */
29 * ice_lag_set_primary - set PF LAG state as Primary
34 struct ice_pf *pf = lag->pf; in ice_lag_set_primary()
39 if (lag->role != ICE_LAG_UNSET && lag->role != ICE_LAG_BACKUP) { in ice_lag_set_primary()
40 dev_warn(ice_pf_to_dev(pf), "%s: Attempt to be Primary, but incompatible state.\n", in ice_lag_set_primary()
41 netdev_name(lag->netdev)); in ice_lag_set_primary()
45 lag->role = ICE_LAG_PRIMARY; in ice_lag_set_primary()
49 * ice_lag_set_backup - set PF LAG state to Backup
54 struct ice_pf *pf = lag->pf; in ice_lag_set_backup()
[all …]
/linux-6.12.1/Documentation/netlink/specs/
Drt_link.yaml1 # 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 …]
/linux-6.12.1/drivers/infiniband/core/
Droce_gid_mgmt.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
107 gid_attr->gid_type = i; in update_gid()
125 /* No primary slave or the device isn't a slave in bonding */
190 * is_ndev_for_default_gid_filter - Check if a given netdevice
216 * Additionally when event(cookie) netdevice is bond master device, in is_ndev_for_default_gid_filter()
252 * is_upper_ndev_bond_master_filter - Check if a given netdevice
253 * is bond master device of netdevice of the RDMA device of port.
260 * is bond master device and rdma_ndev is its lower netdevice. It might
344 if (ndev->reg_state >= NETREG_UNREGISTERING) in enum_netdev_ipv4_ips()
[all …]
/linux-6.12.1/drivers/media/platform/renesas/
Drcar_drif.c1 // SPDX-License-Identifier: GPL-2.0+
3 * R-Car Gen3 Digital Radio Interface (DRIF) driver
9 * The R-Car DRIF is a receive only MSIOF like controller with an
11 * then this driver uses the SYS-DMAC engine to move the data from
25 * The primary design goal of this controller is to act as a Digital Radio
29 * framework. This driver expects a tuner driver (sub-device) to bind
42 #include <linux/dma-mapping.h>
52 #include <media/v4l2-async.h>
53 #include <media/v4l2-ctrls.h>
54 #include <media/v4l2-device.h>
[all …]
/linux-6.12.1/drivers/net/ethernet/mscc/
Docelot.c1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
30 /* Caller must hold &ocelot->mact_lock */
36 /* Caller must hold &ocelot->mact_lock */
48 /* Caller must hold &ocelot->mact_lock */
90 if (mc_ports & BIT(ocelot->num_phys_ports)) in __ocelot_mact_learn()
109 mutex_lock(&ocelot->mact_lock); in ocelot_mact_learn()
111 mutex_unlock(&ocelot->mact_lock); in ocelot_mact_learn()
122 mutex_lock(&ocelot->mact_lock); in ocelot_mact_forget()
133 mutex_unlock(&ocelot->mact_lock); in ocelot_mact_forget()
145 mutex_lock(&ocelot->mact_lock); in ocelot_mact_lookup()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/
Dmain.c17 * - Redistributions of source code must retain the above
21 * - Redistributions in binary form must reproduce the above
41 #include <linux/dma-mapping.h>
43 #include <linux/io-mapping.h>
48 #include <uapi/rdma/mlx4-abi.h>
57 MODULE_DESCRIPTION("Mellanox ConnectX HCA low-level driver");
75 MODULE_PARM_DESC(msi_x, "0 - don't use MSI-X, 1 - use MSI-X, >1 - limit number of MSI-X irqs to msi…
103 " flow steering when available, set to -1");
147 MODULE_PARM_DESC(log_num_mac, "Log2 max number of MACs per ETH port (1-7)");
151 MODULE_PARM_DESC(log_num_vlan, "Log2 max number of VLANs per ETH port (0-7)");
[all …]
Dport.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
66 mutex_init(&table->mutex); in mlx4_init_mac_table()
68 table->entries[i] = 0; in mlx4_init_mac_table()
69 table->refs[i] = 0; in mlx4_init_mac_table()
70 table->is_dup[i] = false; in mlx4_init_mac_table()
72 table->max = 1 << dev->caps.log_num_macs; in mlx4_init_mac_table()
73 table->total = 0; in mlx4_init_mac_table()
80 mutex_init(&table->mutex); in mlx4_init_vlan_table()
82 table->entries[i] = 0; in mlx4_init_vlan_table()
[all …]
/linux-6.12.1/drivers/net/
Dnet_failover.c1 // SPDX-License-Identifier: GPL-2.0
9 * attached VF as a 'primary' netdev. This enables live migration of
13 * Some of the netdev management routines are based on bond/team driver as
14 * this driver provides active-backup functionality similar to those drivers.
41 primary_dev = rtnl_dereference(nfo_info->primary_dev); in net_failover_open()
48 standby_dev = rtnl_dereference(nfo_info->standby_dev); in net_failover_open()
78 slave_dev = rtnl_dereference(nfo_info->primary_dev); in net_failover_close()
82 slave_dev = rtnl_dereference(nfo_info->standby_dev); in net_failover_close()
103 /* Try xmit via primary netdev followed by standby netdev */ in net_failover_start_xmit()
104 xmit_dev = rcu_dereference_bh(nfo_info->primary_dev); in net_failover_start_xmit()
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
25 # All the following symbols are dependent on NETDEVICES - do not repeat
47 Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet
63 This is essentially a bit-bucket device (i.e. traffic you send to
131 section 6.2 of the NET-3-HOWTO, available from
167 tristate "MAC-VLAN support"
173 iproute2 package starting with the iproute2-2.6.23 release:
181 tristate "MAC-VLAN based tap driver"
187 on the MAC-VLAN network interface, called macvtap. A macvtap device
201 tristate "IP-VLAN support"
[all …]
/linux-6.12.1/Documentation/filesystems/
Dproc.rst1 .. SPDX-License-Identifier: GPL-2.0
24 1.1 Process-Specific Subdirectories
36 3 Per-Process Parameters
37 3.1 /proc/<pid>/oom_adj & /proc/<pid>/oom_score_adj - Adjust the oom-killer
39 3.2 /proc/<pid>/oom_score - Display current oom-killer score
40 3.3 /proc/<pid>/io - Display the IO accounting fields
41 3.4 /proc/<pid>/coredump_filter - Core dump filtering settings
42 3.5 /proc/<pid>/mountinfo - Information about mounts
44 3.7 /proc/<pid>/task/<tid>/children - Information about task children
45 3.8 /proc/<pid>/fdinfo/<fd> - Information about opened file
[all …]
/linux-6.12.1/drivers/media/dvb-frontends/drx39xyj/
Ddrx_driver.h2 Copyright (c), 2004-2005,2007-2010 Trident Microsystems, Inc.
59 /*------------------------------------------------------------------------------
61 ------------------------------------------------------------------------------*/
68 * \retval -EIO Initialization failed.
77 * \retval -EIO Termination failed.
97 * \retval -EIO Failure.
98 * \retval -EINVAL Parameter 'wcount' is not zero but parameter
132 #define TUNER_MODE_SUB0 0x0001 /* for sub-mode (e.g. RF-AGC setting) */
133 #define TUNER_MODE_SUB1 0x0002 /* for sub-mode (e.g. RF-AGC setting) */
134 #define TUNER_MODE_SUB2 0x0004 /* for sub-mode (e.g. RF-AGC setting) */
[all …]
/linux-6.12.1/drivers/net/ethernet/qlogic/qed/
Dqed_dev.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
3 * Copyright (c) 2015-2017 QLogic Corporation
4 * Copyright (c) 2019-2020 Marvell International Ltd.
11 #include <linux/dma-mapping.h>
72 db_entry->db_addr, in qed_db_recovery_dp_entry()
73 db_entry->db_data, in qed_db_recovery_dp_entry()
74 db_entry->db_width == DB_REC_WIDTH_32B ? "32b" : "64b", in qed_db_recovery_dp_entry()
75 db_entry->db_space == DB_REC_USER ? "user" : "kernel", in qed_db_recovery_dp_entry()
76 db_entry->hwfn_idx); in qed_db_recovery_dp_entry()
88 if (db_addr < cdev->doorbells || in qed_db_rec_sanity()
[all …]