Thread (2 messages) 2 messages, 2 authors, 2020-03-31

Re: [PATCH net-next] hv_netvsc: Remove unnecessary round_up for recv_completion_cnt

From: David Miller <davem@davemloft.net>
Date: 2020-03-31 02:44:42
Also in: linux-hyperv, lkml

From: Haiyang Zhang <haiyangz@microsoft.com>
Date: Mon, 30 Mar 2020 12:29:13 -0700
The vzalloc_node(), already rounds the total size to whole pages, and
sizeof(u64) is smaller than sizeof(struct recv_comp_data). So
round_up of recv_completion_cnt is not necessary, and may cause extra
memory allocation.

To save memory, remove this unnecessary round_up for recv_completion_cnt.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help