Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/net/bonding/
Dbond_options.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * drivers/net/bond/bond_options.c - bonding options
19 static int bond_option_active_slave_set(struct bonding *bond,
21 static int bond_option_miimon_set(struct bonding *bond,
23 static int bond_option_updelay_set(struct bonding *bond,
25 static int bond_option_downdelay_set(struct bonding *bond,
27 static int bond_option_peer_notif_delay_set(struct bonding *bond,
29 static int bond_option_use_carrier_set(struct bonding *bond,
31 static int bond_option_arp_interval_set(struct bonding *bond,
33 static int bond_option_arp_ip_target_add(struct bonding *bond, __be32 target);
[all …]
Dbond_procfs.c1 // SPDX-License-Identifier: GPL-2.0
13 struct bonding *bond = PDE_DATA(file_inode(seq->file)); in bond_info_seq_start() local
23 bond_for_each_slave_rcu(bond, slave, iter) in bond_info_seq_start()
32 struct bonding *bond = PDE_DATA(file_inode(seq->file)); in bond_info_seq_next() local
39 return bond_first_slave_rcu(bond); in bond_info_seq_next()
41 bond_for_each_slave_rcu(bond, slave, iter) { in bond_info_seq_next()
59 struct bonding *bond = PDE_DATA(file_inode(seq->file)); in bond_info_show_master() local
61 struct slave *curr, *primary; in bond_info_show_master() local
64 curr = rcu_dereference(bond->curr_active_slave); in bond_info_show_master()
67 bond_mode_name(BOND_MODE(bond))); in bond_info_show_master()
[all …]
Dbond_netlink.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * drivers/net/bond/bond_netlink.c - Netlink interface for bonding
41 if (nla_put_u8(skb, IFLA_BOND_SLAVE_MII_STATUS, slave->link)) in bond_fill_slave_info()
45 slave->link_failure_count)) in bond_fill_slave_info()
49 slave_dev->addr_len, slave->perm_hwaddr)) in bond_fill_slave_info()
52 if (nla_put_u16(skb, IFLA_BOND_SLAVE_QUEUE_ID, slave->queue_id)) in bond_fill_slave_info()
55 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in bond_fill_slave_info()
59 ad_port = &SLAVE_AD_INFO(slave)->port; in bond_fill_slave_info()
60 agg = SLAVE_AD_INFO(slave)->port.aggregator; in bond_fill_slave_info()
63 agg->aggregator_identifier)) in bond_fill_slave_info()
[all …]
Dbond_main.c89 /*---------------------------- Module parameters ----------------------------*/
101 static char *primary; variable
139 MODULE_PARM_DESC(mode, "Mode of operation; 0 for balance-rr, "
140 "1 for active-backup, 2 for balance-xor, "
141 "3 for broadcast, 4 for 802.3ad, 5 for balance-tlb, "
142 "6 for balance-alb");
143 module_param(primary, charp, 0);
144 MODULE_PARM_DESC(primary, "Primary network device to use");
146 MODULE_PARM_DESC(primary_reselect, "Reselect primary slave "
149 "1 for only if speed of primary is "
[all …]
Dbond_sysfs.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright(c) 2004-2005 Intel Corporation. All rights reserved.
41 struct bonding *bond; in bonding_show_bonds() local
45 list_for_each_entry(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 += sprintf(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 …]
/kernel/linux/linux-6.6/drivers/net/bonding/
Dbond_options.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * drivers/net/bond/bond_options.c - bonding options
19 static int bond_option_active_slave_set(struct bonding *bond,
21 static int bond_option_miimon_set(struct bonding *bond,
23 static int bond_option_updelay_set(struct bonding *bond,
25 static int bond_option_downdelay_set(struct bonding *bond,
27 static int bond_option_peer_notif_delay_set(struct bonding *bond,
29 static int bond_option_use_carrier_set(struct bonding *bond,
31 static int bond_option_arp_interval_set(struct bonding *bond,
33 static int bond_option_arp_ip_target_add(struct bonding *bond, __be32 target);
[all …]
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_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()
54 if (nla_put_u16(skb, IFLA_BOND_SLAVE_QUEUE_ID, slave->queue_id)) in bond_fill_slave_info()
57 if (nla_put_s32(skb, IFLA_BOND_SLAVE_PRIO, slave->prio)) in bond_fill_slave_info()
60 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in bond_fill_slave_info()
64 ad_port = &SLAVE_AD_INFO(slave)->port; in bond_fill_slave_info()
65 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.
41 struct bonding *bond; in bonding_show_bonds() local
45 list_for_each_entry(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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/bonding/
Dbond_options.sh2 # SPDX-License-Identifier: GPL-2.0
20 ip -n ${s_ns} link set eth0 type bond_slave prio 10
21 [[ $? -ne 0 ]] && skip=0
24 ip -n ${s_ns} -d link show eth0 | grep -q "prio 10"
25 [[ $? -ne 0 ]] && skip=0
35 ip -n ${s_ns} link add bond1 type bond ns_ip6_target ${g_ip6}
36 [[ $? -ne 0 ]] && skip=0
39 ip -n ${s_ns} -d link show bond1 | grep -q "ns_ip6_target ${g_ip6}"
40 [[ $? -ne 0 ]] && skip=0
42 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.
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/
Drenesas,drif.txt1 Renesas R-Car Gen3 Digital Radio Interface controller (DRIF)
2 ------------------------------------------------------------
4 R-Car Gen3 DRIF is a SPI like receive only slave device. A general
7 +---------------------+ +---------------------+
8 | |-----SCK------->|CLK |
9 | Master |-----SS-------->|SYNC DRIFn (slave) |
10 | |-----SD0------->|D0 |
11 | |-----SD1------->|D1 |
12 +---------------------+ +---------------------+
28 two, one of them needs to act as a primary device that accepts common
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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.h2 * Bond several ethernet interfaces into a Cisco, running 'Etherchannel'.
4 * Portions are (c) Copyright 1995 Simon "Guru Aleph-Null" Janes
42 netdev_info(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
44 netdev_warn(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
46 netdev_dbg(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
48 netdev_err(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
50 #define BOND_MODE(bond) ((bond)->params.mode) argument
53 #define bond_slave_list(bond) (&(bond)->dev->adj_list.lower) argument
55 #define bond_has_slaves(bond) !list_empty(bond_slave_list(bond)) argument
58 #define bond_first_slave(bond) \ argument
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/
Dice_lag.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) 2018-2021, Intel Corporation. */
26 * ice_lag_set_primary - set PF LAG state as Primary
31 struct ice_pf *pf = lag->pf; in ice_lag_set_primary()
36 if (lag->role != ICE_LAG_UNSET && lag->role != ICE_LAG_BACKUP) { in ice_lag_set_primary()
37 dev_warn(ice_pf_to_dev(pf), "%s: Attempt to be Primary, but incompatible state.\n", in ice_lag_set_primary()
38 netdev_name(lag->netdev)); in ice_lag_set_primary()
42 lag->role = ICE_LAG_PRIMARY; in ice_lag_set_primary()
46 * ice_lag_set_backup - set PF LAG state to Backup
51 struct ice_pf *pf = lag->pf; in ice_lag_set_backup()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 */
189 /** is_ndev_for_default_gid_filter - Check if a given netdevice
215 * Additionally when event(cookie) netdevice is bond master device, in is_ndev_for_default_gid_filter()
251 * is_upper_ndev_bond_master_filter - Check if a given netdevice
252 * is bond master device of netdevice of the the RDMA device of port.
259 * is bond master device and rdma_ndev is its lower netdevice. It might
343 if (ndev->reg_state >= NETREG_UNREGISTERING) in enum_netdev_ipv4_ips()
[all …]

12