* how does it count the number of contiguous physical pages in map_all_hugepages
@ 2015-01-16 5:32 Jack,Xie Jie
[not found] ` <25CC404E73236E4FB06CE423D5EE8B229B4F34-6NxsTxPJWaIfn/xtwl+l096yYynoYqcQZkel5v8DVj8@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Jack,Xie Jie @ 2015-01-16 5:32 UTC (permalink / raw)
To: dev-VfR2kkLFssw@public.gmane.org
Hi,
I am learning DPDK recently, when I check l2fwd example, I am a little confused, please someone give me a clue.
In function map_all_hugepages called in rte_eal_hugepage_init,
There are lines of source code like below to count the number of contiguous physical pages,
But I check the source code, I just cannot find where is hugepg_tbl[j].physaddr be set before,
how can here check the value of hugepg_tbl[j].physaddr.
/* reserve a virtual area for next contiguous
* physical block: count the number of
* contiguous physical pages. */
for (j = i+1; j < hpi->num_pages[0] ; j++) {
if (hugepg_tbl[j].physaddr !=
hugepg_tbl[j-1].physaddr + hugepage_sz)
break;
}
Thanks !
Jack
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-16 11:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-16 5:32 how does it count the number of contiguous physical pages in map_all_hugepages Jack,Xie Jie
[not found] ` <25CC404E73236E4FB06CE423D5EE8B229B4F34-6NxsTxPJWaIfn/xtwl+l096yYynoYqcQZkel5v8DVj8@public.gmane.org>
2015-01-16 11:01 ` Bruce Richardson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).