Thread (12 messages) flat view 12 messages, 2 authors, 2018-06-21

Re: [net RFC] net/mlx4_en: Use frag stride in crossing page boundary condition

From: Eric Dumazet <hidden>
Date: 2018-06-14 19:12:18


On 06/14/2018 11:56 AM, Saeed Mahameed wrote:
Interestingly for this exact frag_stride we don't have an issue :)
since it goes through a different condition branch
(the page flipping thing):

if (frag_info->frag_stride == PAGE_SIZE / 2) {
    frags->page_offset ^= PAGE_SIZE / 2;
	release = page_count(page) != 1 ||
		  page_is_pfmemalloc(page) ||
		  page_to_nid(page) != numa_mem_id();
I guess you forgot to test on PowerPC where PAGE_SIZE=65536 ?

On PowerPC, the first branch is never taken.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help