]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xen/netfront: Comment Correction: Fix Spelling Error and Description of Queue Quantit...
authorChu Guangqing <chuguangqing@inspur.com>
Mon, 3 Nov 2025 03:22:12 +0000 (11:22 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Nov 2025 01:01:01 +0000 (17:01 -0800)
The original comments contained spelling errors and incomplete logical
descriptions, which could easily lead to misunderstandings of the code
logic. The specific modifications are as follows:

Correct the spelling error by changing "inut max" to "but not exceed the
maximum limit";

Add the note "If the user has not specified a value, the default maximum
limit is 8" to clarify the default value logic;

Improve the coherence of the statement to make the queue quantity rules
clearer.

After the modification, the comments can accurately reflect the code
behavior of "taking the smaller value between the number of CPUs and the
default maximum limit of 8 for the number of queues", enhancing code
maintainability.

Signed-off-by: Chu Guangqing <chuguangqing@inspur.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://patch.msgid.link/20251103032212.2462-1-chuguangqing@inspur.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/xen-netfront.c

index a11a0e949400586fce31dd8d141ee09c06a834fb..7c2220366623eb547f2e7625a2f4fc3b0d46c0f9 100644 (file)
@@ -2696,8 +2696,9 @@ static int __init netif_init(void)
 
        pr_info("Initialising Xen virtual ethernet driver\n");
 
-       /* Allow as many queues as there are CPUs inut max. 8 if user has not
-        * specified a value.
+       /* Allow the number of queues to match the number of CPUs, but not exceed
+        * the maximum limit. If the user has not specified a value, the default
+        * maximum limit is 8.
         */
        if (xennet_max_queues == 0)
                xennet_max_queues = min_t(unsigned int, MAX_QUEUES_DEFAULT,