Vinod Kolapuram
|
allocating memory for mbuf
|
Vinod Kolapuram
01/19/2010 8:28 PM
post45518
|
allocating memory for mbuf
Hi ,
1. Do we neet to just use malloc to allocate memory for mbuf? In io-net there are inbuilt functions on io-net
structure for allocation and free.
2. Since io-net is not available now for 6.4.0 and above, we don't have to use iov which was part of io-net for porting
to io-pkt right?
3. At the porting point where I am right now makes me feel, that the _iopkt_self structure usage in io-pkt is very
minimal compared to _io_net_self usage in io-net. Even though we are using_iopkt_self struct in the entry function,
looks like most of the functionality is for the thread handling.
4. I have around 512 bytes of data to read from stack and do my modification and then put back on stack to send it to
other machine. From high level its very simple, but when I looking at the structure usage, its getting more entangled in
other complex manipulations. Can any suggest simple steps to achive this using the io-pkt features and functionality.
Thanks
Vinod
|
|
|