Commit b99ccb37 authored by Kexin Sun's avatar Kexin Sun Committed by Jakub Kicinski
Browse files

net/hsr: update outdated comments



The function hsr_rcv() was renamed hsr_handle_frame() and moved to
net/hsr/hsr_slave.c by commit 81ba6afd ("net/hsr: Switch from
dev_add_pack() to netdev_rx_handler_register()").

Update all remaining references in the comments accordingly.

Signed-off-by: default avatarKexin Sun <kexinsun@smail.nju.edu.cn>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260225145159.2953-1-kexinsun@smail.nju.edu.cn


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 11c0663a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -742,7 +742,7 @@ int hsr_dev_finalize(struct net_device *hsr_dev, struct net_device *slave[2],
		hsr->proto_ops = &hsr_ops;
	}

	/* Make sure we recognize frames from ourselves in hsr_rcv() */
	/* Make sure we recognize frames from ourselves in hsr_handle_frame() */
	res = hsr_create_self_node(hsr, hsr_dev->dev_addr,
				   slave[1]->dev_addr);
	if (res < 0)
+2 −2
Original line number Diff line number Diff line
@@ -71,8 +71,8 @@ bool hsr_is_node_in_db(struct list_head *node_db,
	return !!find_node_by_addr_A(node_db, addr);
}

/* Helper for device init; the self_node is used in hsr_rcv() to recognize
 * frames from self that's been looped over the HSR ring.
/* Helper for device init; the self_node is used in hsr_handle_frame() to
 * recognize frames from self that's been looped over the HSR ring.
 */
int hsr_create_self_node(struct hsr_priv *hsr,
			 const unsigned char addr_a[ETH_ALEN],
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ static int hsr_netdev_notify(struct notifier_block *nb, unsigned long event,
			}
		}

		/* Make sure we recognize frames from ourselves in hsr_rcv() */
		/* Make sure we recognize frames from ourselves in hsr_handle_frame() */
		port = hsr_port_get_hsr(hsr, HSR_PT_SLAVE_B);
		res = hsr_create_self_node(hsr,
					   master->dev->dev_addr,