mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
netdev-linux: Rename struct nedev_linux field as is_lag_primary.
Recently OVS adopted a policy of using the inclusive naming word list v1
[1, 2].
This patch partially addresses the use of the term master in the
context of LAG devices by using the term primary instead: the
is_lag_master field of struct netdev_linux is renamed is_lag_primary.
A related comment is also updated.
No functional change intended.
[1] df5e5cf
("Documentation: Add section on inclusive language.")
[2] https://inclusivenaming.org/word-lists/
Signed-off-by: Simon Horman <horms@ovn.org>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
This commit is contained in:
@@ -885,7 +885,7 @@ netdev_linux_update__(struct netdev_linux *dev,
|
||||
}
|
||||
|
||||
if (change->primary && netdev_linux_kind_is_lag(change->primary)) {
|
||||
dev->is_lag_master = true;
|
||||
dev->is_lag_primary = true;
|
||||
}
|
||||
|
||||
dev->ifindex = change->if_index;
|
||||
@@ -3703,8 +3703,9 @@ netdev_linux_get_block_id(struct netdev *netdev_)
|
||||
netdev_linux_update_via_netlink(netdev);
|
||||
}
|
||||
|
||||
/* Only assigning block ids to linux netdevs that are LAG masters. */
|
||||
if (netdev->is_lag_master) {
|
||||
/* Only assigning block ids to linux netdevs that are
|
||||
* LAG primary members. */
|
||||
if (netdev->is_lag_primary) {
|
||||
block_id = netdev->ifindex;
|
||||
}
|
||||
ovs_mutex_unlock(&netdev->mutex);
|
||||
@@ -6903,7 +6904,7 @@ netdev_linux_update_via_netlink(struct netdev_linux *netdev)
|
||||
changed = true;
|
||||
}
|
||||
if (change->primary && netdev_linux_kind_is_lag(change->primary)) {
|
||||
netdev->is_lag_master = true;
|
||||
netdev->is_lag_primary = true;
|
||||
}
|
||||
if (changed) {
|
||||
netdev_change_seq_changed(&netdev->up);
|
||||
|
Reference in New Issue
Block a user