Hi All,<div><br></div><div> Is it possible to map a address like skb->data in to struct page. My requirement is to convert multiple skb</div><div>to a single master skb, having all the data of other skb. i.e, i want add skb->data of multiple skb to a single skb</div>
<div>as the fragments. So instead of making a memcpy every time, i just call skb_add_rx_frag</div><div><br></div><div>my requirement is some thing like this</div><div><br></div><div><b>.</b></div><div><b>.</b></div><div><b>struct page *page = virt_to_page(skb->data);</b></div>
<div><b><br></b></div><div><b>skb_add_rx_frag(master_skb, skb_shinfo(master_skb)->nr_frags, page, off, skb->len)</b></div><div><b>.</b></div><div><b>.</b></div><div><br></div><div>And can some one please tell what is the use of the functions like <b>virt_to_page</b> and <b>kmap_atomic_to_page</b>,</div>
<div>i tried calling virt_to_page(skb->data), but when i print the data in the page address ( page_address(page) ) and</div><div>the data in pointed by skb->data, i came to know its mapping to a wrong page. so can some one please explain</div>
<div>me what is correct way to do this.</div><div><br></div><div><br></div><div>Thanks in advance.</div>