Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

xen/netfront: Comment Correction: Fix Spelling Error and Description of Queue Quantity Rules

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>

authored by

Chu Guangqing and committed by
Jakub Kicinski
52665fcc 96c68954

+3 -2
+3 -2
drivers/net/xen-netfront.c
··· 2696 2696 2697 2697 pr_info("Initialising Xen virtual ethernet driver\n"); 2698 2698 2699 - /* Allow as many queues as there are CPUs inut max. 8 if user has not 2700 - * specified a value. 2699 + /* Allow the number of queues to match the number of CPUs, but not exceed 2700 + * the maximum limit. If the user has not specified a value, the default 2701 + * maximum limit is 8. 2701 2702 */ 2702 2703 if (xennet_max_queues == 0) 2703 2704 xennet_max_queues = min_t(unsigned int, MAX_QUEUES_DEFAULT,