Skip to content

Commit 9b67c97

Browse files
liangwen12yearcathay4t
authored andcommitted
inclusive language: Use port instead of slave
Signed-off-by: Wen Liang <[email protected]>
1 parent 76af7a8 commit 9b67c97

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/link/add.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ impl BondAddRequest {
4646
self
4747
}
4848

49-
/// Adds the `active_slave` attribute to the bond, where `active_slave`
49+
/// Adds the `active_port` attribute to the bond, where `active_port`
5050
/// is the ifindex of an interface attached to the bond.
5151
/// This is equivalent to `ip link add name NAME type bond active_slave
52-
/// ACTIVE_SLAVE_NAME`.
53-
pub fn active_slave(mut self, active_slave: u32) -> Self {
54-
self.info_data.push(InfoBond::ActivePort(active_slave));
52+
/// ACTIVE_PORT_NAME`.
53+
pub fn active_port(mut self, active_port: u32) -> Self {
54+
self.info_data.push(InfoBond::ActivePort(active_port));
5555
self
5656
}
5757

@@ -161,12 +161,12 @@ impl BondAddRequest {
161161
self
162162
}
163163

164-
/// Adds the `all_slaves_active` attribute to the bond
164+
/// Adds the `all_ports_active` attribute to the bond
165165
/// This is equivalent to `ip link add name NAME type bond all_slaves_active
166-
/// ALL_SLAVES_ACTIVE`.
167-
pub fn all_slaves_active(mut self, all_slaves_active: u8) -> Self {
166+
/// ALL_PORTS_ACTIVE`.
167+
pub fn all_ports_active(mut self, all_ports_active: u8) -> Self {
168168
self.info_data
169-
.push(InfoBond::AllPortsActive(all_slaves_active));
169+
.push(InfoBond::AllPortsActive(all_ports_active));
170170
self
171171
}
172172

@@ -186,12 +186,12 @@ impl BondAddRequest {
186186
self
187187
}
188188

189-
/// Adds the `packets_per_slave` attribute to the bond
189+
/// Adds the `packets_per_port` attribute to the bond
190190
/// This is equivalent to `ip link add name NAME type bond packets_per_slave
191-
/// PACKETS_PER_SLAVE`.
192-
pub fn packets_per_slave(mut self, packets_per_slave: u32) -> Self {
191+
/// PACKETS_PER_PORT`.
192+
pub fn packets_per_port(mut self, packets_per_port: u32) -> Self {
193193
self.info_data
194-
.push(InfoBond::PacketsPerPort(packets_per_slave));
194+
.push(InfoBond::PacketsPerPort(packets_per_port));
195195
self
196196
}
197197

0 commit comments

Comments
 (0)