Hi all,
These days, I try to install dpdk-rumptcpip on one server. I look at
dpdk-rumptcpip related code. For sending packets, I have a question and make me
confused. Why allocate one mbuf, the packets from the tcp/ip component will be
put this mbuf. If the mbuf can not accommodate the packets from tcp/ip, it
seems the packets will be dropped. Why it designed like this? Whether there are
some content that will be lost? Does anybody give some analysis and
descriptions about that? I will be appreciate.
void
VIFHYPER_SEND(structvirtif_user*viu,
structiovec*iov,size_tiovlen)
{
structrte_mbuf*m;
void*dptr;
unsignedi;
m=rte_pktmbuf_alloc(mbpool);
for(i=0;i<iovlen;i++){
dptr=rte_pktmbuf_append(m,iov[i].iov_len);
if(dptr==NULL){
/* log error somehow? */
rte_pktmbuf_free(m);
break;
}
memcpy(dptr,iov[i].iov_base,iov[i].iov_len);
}
rte_eth_tx_burst(IF_PORTID,0,&m,1);
}------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
rumpkernel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rumpkernel-users