]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net/hsr: update outdated comments
authorKexin Sun <kexinsun@smail.nju.edu.cn>
Wed, 25 Feb 2026 14:51:59 +0000 (22:51 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Feb 2026 01:24:58 +0000 (17:24 -0800)
The function hsr_rcv() was renamed hsr_handle_frame() and moved to
net/hsr/hsr_slave.c by commit 81ba6afd6e64 ("net/hsr: Switch from
dev_add_pack() to netdev_rx_handler_register()").

Update all remaining references in the comments accordingly.

Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260225145159.2953-1-kexinsun@smail.nju.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/hsr/hsr_device.c
net/hsr/hsr_framereg.c
net/hsr/hsr_main.c

index d1bfc49b5f017bc7fbbdedcc1eeab4d7e95e56be..5c3eca2235ce7d74ae8f624534d750de88d55541 100644 (file)
@@ -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)
index 50996f4de7f9e725ff11a1d4d74839c199725c16..577fb588bc2f9658ff2301655d158ca5dd67dc87 100644 (file)
@@ -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],
index bc94b07101d80e2645b17488b0fa999cccc2f7f9..33951d9bd3c53351bdfc6bd9f3cf4406676c97ed 100644 (file)
@@ -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,