[v7,20/20] drivers/failsafe: replace references to slave devices

Message ID 20201015225736.12167-21-stephen@networkplumber.org (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers
Series Replace terms master/slave |

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/iol-broadcom-Functional success Functional Testing PASS
ci/Intel-compilation success Compilation OK
ci/iol-broadcom-Performance success Performance Testing PASS
ci/travis-robot success Travis build: passed
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-testing fail Testing issues
ci/iol-mellanox-Performance success Performance Testing PASS

Commit Message

Stephen Hemminger Oct. 15, 2020, 10:57 p.m. UTC
  The term slave is only used in some comments and can be
replaced with sub devices, as done elsewhere.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 drivers/net/failsafe/failsafe.c         | 6 +++---
 drivers/net/failsafe/failsafe_private.h | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
  

Patch

diff --git a/drivers/net/failsafe/failsafe.c b/drivers/net/failsafe/failsafe.c
index b921e101e69d..83192c2d9928 100644
--- a/drivers/net/failsafe/failsafe.c
+++ b/drivers/net/failsafe/failsafe.c
@@ -229,7 +229,7 @@  fs_eth_dev_create(struct rte_vdev_device *vdev)
 	if (failsafe_mac_from_arg) {
 		/*
 		 * If MAC address was provided as a parameter,
-		 * apply to all probed slaves.
+		 * apply to all probed subdevices.
 		 */
 		FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_PROBED) {
 			ret = rte_eth_dev_default_mac_addr_set(PORT_ID(sdev),
@@ -254,8 +254,8 @@  fs_eth_dev_create(struct rte_vdev_device *vdev)
 		 * If no device has been probed and no ether_addr
 		 * has been provided on the command line, use a random
 		 * valid one.
-		 * It will be applied during future slave state syncs to
-		 * probed slaves.
+		 * It will be applied during future state syncs to
+		 * probed subdevices.
 		 */
 		if (i == priv->subs_tail)
 			rte_eth_random_addr(&mac->addr_bytes[0]);
diff --git a/drivers/net/failsafe/failsafe_private.h b/drivers/net/failsafe/failsafe_private.h
index 6af0ef8471b0..0f9a572af8bd 100644
--- a/drivers/net/failsafe/failsafe_private.h
+++ b/drivers/net/failsafe/failsafe_private.h
@@ -149,7 +149,7 @@  struct fs_priv {
 	/*
 	 * Set of sub_devices.
 	 * subs[0] is the preferred device
-	 * any other is just another slave
+	 * any other is just another sub device
 	 */
 	struct sub_device *subs;  /* shared between processes */
 	uint8_t subs_head; /* if head == tail, no subs */